Skip to content

Commit ec59776

Browse files
Merge pull request #23 from divital-coder/master
Fixed precompilation
2 parents 54fc0f2 + aafd4d5 commit ec59776

File tree

3 files changed

+25
-19
lines changed

3 files changed

+25
-19
lines changed

src/MedEye3d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ include(joinpath( "display","reactingToMouseKeyboard","reactToKeyboard","Keyboar
5454
include(joinpath( "display","reactingToMouseKeyboard","reactToKeyboard","OtherKeyboardActions.jl") )
5555
include(joinpath( "display","reactingToMouseKeyboard","reactToKeyboard","WindowControll.jl") )
5656
include(joinpath( "display","reactingToMouseKeyboard","reactToKeyboard","ChangePlane.jl") )
57-
include(joinpath( "display","reactingToMouseKeyboard","reactToKeyboard","reactToKeyboard.jl") )
57+
include(joinpath( "display","reactingToMouseKeyboard","reactToKeyboard","ReactToKeyboard.jl") )
5858

5959
include(joinpath("display", "reactingToMouseKeyboard", "ReactingToInput.jl"))
6060
include(joinpath("higherAbstractions", "DisplayDataManag.jl"))

src/display/GLFW/SegmentationDisplay.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,4 +845,6 @@ With Crosshair rendering added, the keymaps for setting visiblity does not work
845845
With Crosshair rendering added, the keymaps for changing windowing does not work
846846
Allow People to load and visualize custom annotations masks [manual modifications]
847847
In shader and vertices for supervoxels, during the calculation of vertices for supervoxels, make sure to use Float32 for calculation.
848-
"""
848+
Add a sample nifti file in the supervoxel directory, since the function seem to be modifying the original nifti input image
849+
Fix text rendering in single Image display , which is sprouting from reactToScroll.jl file with rendering for supervoxels.
850+
"""

test_script_simplified.jl

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using MedEye3d
2-
using HDF5, NIfTI
32
#Data downloaded from the following google drive links :
43

54
# https://drive.google.com/file/d/1Segr6BC_ma9bKNmM8lzUBaJLQChkAWKA/view?usp=drive_link
@@ -19,37 +18,42 @@ h5NiftiImage = "D:/mingw_installation/home/hurtbadly/Downloads/hdf5.nii.gz"
1918
NOTE : only one type of modality at a time in multi-image is supported.
2019
"""
2120

21+
#For single image display
22+
medEyeStruct = MedEye3d.SegmentationDisplay.displayImage([ctNiftiImage]) #singleImageDisplay
23+
#or we can also just passa the path itself
24+
# medEyeStruct = MedEye3d.SegmentationDisplay.displayImage(petNiftiImage) #singleImageDisplay
2225

2326

27+
#For multi image display
2428
# medEyeStruct = MedEye3d.SegmentationDisplay.displayImage([[ctNiftiImage], [ctNiftiImage]]) #multi image displays
29+
2530
# medEyeStruct = MedEye3d.SegmentationDisplay.displayImage([ctNiftiImage]) #singleImageDisplay
26-
# imm, res, line_indices = MedEye3d.ShaderAndVerticiesForSuperVoxels.get_example_sv_to_render()
27-
# @info "Slice : 41 , Axis : 3 , Plane : Transversal"
28-
# @info imm
29-
# @info res
30-
# @info line_indices
3131

3232

33-
supervoxelDict = MedEye3d.ShadersAndVerticiesForSupervoxels.get_example_sv_to_render(h5File, "tetr_dat")
33+
#Supervoxels
34+
#For conversion of h5 to nifti
35+
# MedEye3d.ShadersAndVerticiesForSupervoxels.populateNiftiWithH5(ctNiftiImage, h5File, h5NiftiImage)
36+
37+
#for visualization
3438

35-
# @info typeof(supervoxel_vertices) #Vector{FLoat32}
36-
# @info typeof(supervoxel_indices) #Vector{UInt32}
39+
# supervoxelDict = MedEye3d.ShadersAndVerticiesForSupervoxels.get_example_sv_to_render(h5File, "tetr_dat")
40+
# medEyeStruct = MedEye3d.SegmentationDisplay.displayImage(h5NiftiImage, svVertAndInd=supervoxelDict)
41+
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"][:, :, :]
3744

38-
medEyeStruct = MedEye3d.SegmentationDisplay.displayImage(h5NiftiImage, svVertAndInd=supervoxelDict)
39-
# #for SIngle you are strictly only supposed to pass it like : [image_ct, imagep]
4045

41-
# displayData = MedEye3d.DisplayDataManag.getDisplayedData(medEyeStruct, [Int32(1)]) #passing the active texture number
4246

47+
#For modification of display data
48+
49+
displayData = MedEye3d.DisplayDataManag.getDisplayedData(medEyeStruct, [Int32(1), Int32(2)]) #passing the active texture number
4350

4451
# #we need to check if the return type of the displayData is a single Array{Float32,3} or a vector{Array{Float32,3}}
4552
# # 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
46-
# fb = h5open(h5File, "r")
47-
48-
# displayData[1][1:128, 1:128, 1:128] = fb["im"][:, :, :]
49-
# # displayData[2][:, :, :] = randn(Float32, size(displayData[2]))
5053

54+
displayData[2][:, :, :] = randn(Float32, size(displayData[2]))
5155

5256
# # @info "look here" typeof(displayData)
53-
# MedEye3d.DisplayDataManag.setDisplayedData(medEyeStruct, displayData)
57+
MedEye3d.DisplayDataManag.setDisplayedData(medEyeStruct, displayData)
5458

5559

0 commit comments

Comments
 (0)