@@ -19,7 +19,7 @@ NOTE : only one type of modality at a time in multi-image is supported.
1919"""
2020
2121# For single image display
22- # medEyeStruct = MedEye3d.SegmentationDisplay.displayImage([ctNiftiImage]) #singleImageDisplay
22+ medEyeStruct = MedEye3d. SegmentationDisplay. displayImage ([ctNiftiImage]) # singleImageDisplay
2323# or we can also just passa the path itself
2424# medEyeStruct = MedEye3d.SegmentationDisplay.displayImage(petNiftiImage) #singleImageDisplay
2525
@@ -39,18 +39,21 @@ NOTE : only one type of modality at a time in multi-image is supported.
3939# supervoxelDict = MedEye3d.ShadersAndVerticiesForSupervoxels.get_example_sv_to_render(h5File, "tetr_dat")
4040# medEyeStruct = MedEye3d.SegmentationDisplay.displayImage(h5NiftiImage, svVertAndInd=supervoxelDict)
4141
42+ # This is for when we have a ctNiftiImage and we were testing modifying the display data from hdf5 so we sill image and supervoxels
43+ # displayData[1][1:128, 1:128, 1:128] = fb["im"][:, :, :]
44+
45+
4246
4347# For modification of display data
4448
45- # displayData = MedEye3d.DisplayDataManag.getDisplayedData(medEyeStruct, [Int32(1)]) #passing the active texture number
49+ displayData = MedEye3d. DisplayDataManag. getDisplayedData (medEyeStruct, [Int32 (1 ), Int32 ( 2 )]) # passing the active texture number
4650
4751# #we need to check if the return type of the displayData is a single Array{Float32,3} or a vector{Array{Float32,3}}
4852# # now in this case we are setting random noise over the manualModif Texture voxel layer, and the manualModif texture defaults to 2 for active number
4953
50- # displayData[1][1:128, 1:128, 1:128] = fb["im"][:, :, :]
51- # # displayData[2][:, :, :] = randn(Float32, size(displayData[2]))
54+ displayData[2 ][:, :, :] = randn (Float32, size (displayData[2 ]))
5255
5356# # @info "look here" typeof(displayData)
54- # MedEye3d.DisplayDataManag.setDisplayedData(medEyeStruct, displayData)
57+ MedEye3d. DisplayDataManag. setDisplayedData (medEyeStruct, displayData)
5558
5659
0 commit comments