The interactive viewer allows a user to select a folder with one set of dicom images. The viewer assembles the images in order and displays them as one 3D dataset. User can then scroll through and look at axial, sagittal, and coronal views. A zoom feature and measuring tool have also been added.
plz tell me how can i use this? When i 'dcm3DViewer' in matlab and give this function to path it runs and dispaly a window showing three sub window. I am adding floder to them but there is not any any further working of button ahead? How can i add images to them?
I need to display brain scans sagittal, axial and coronal views. I have run 3DViewer but it throws the error msg that 'You selected a folder that does not contain .dcm images'. Please guide me through this!
After having made the changes suggested by Kallie, I am still getting the same " You selected a folder that does not contain .dcm images" error. It seems that line 412 in the gatherImages function:
threedarray = zeros(size(topimage,1),size(topimage,2),size(d,1));
is throwing up an "out of memory" error. I'm not running anything else, so surely there is enough memory to display a dicom image...
Any suggestions please?
Those functions are indeed the issue. the files should use array indexing instead of structure indexing.
in sortDirectory :
d = dir('*.dcm'); instead of ls
metadata = dicominfo(d(i).name);
topimage = dicomread(d(1).name);
metadata = dicominfo(d(1).name);
Cool submission! Thank you
I have the same problem as Ghizelda agerweij.
i've the same probleme as Ghizelda agerweij
The .dcm images are sorted by instance number. I'm guessing that the file might contain sets of images that are not compatible (maybe they have overlapping instance numbers?) As a test you could copy out my "sortDirectory" function and "gatherImages" function and see if they work on your folder.
Thanks for the nice file for 3d DICOM viewer. There is only one problem. After compiling the file, I get an error: " You selected a folder that does not contain .dcm images"
Why? I am current that I have .dcm images. All the images are PET/CT scan images. Are there different .dcm images/files?
I think that the problem is between lines 86-119.
How can i convert into matlab gui? thanks!
Ehm i want find a mode to convert *.m to a gui interface but i can't do it.
Updated to include an App file for R2012b
Can Capture a an image as a figure.
Bug removed: axial, coronal views can now scroll through entire set without ever hitting an error.