But when i use axial, sagittal, coronal dicom images in three directories to display.
It works bad. It seems all the dicom image is parallel, no orthogonal。
ImageSeriesReader assumes that all the images it gets belong to the same series, meaning having the same size and orientation and only differing by spatial position. By supplying it with multiple series you are violating that assumption.
AddImageFilter doesn’t work. JoinSeriesImageFilter also fails.
The error output is “Inputs do not occupy the same physical space!”
I have no idea about it. Means to translate the 3d image to the same origin or spacing or direction?
Is there a class for processing multi series of dicom images in different direction?
What you need to do is pick some image grid (from the first image, or from the highest resolution image, or from the lowest resolution image, or some other similar criterion), determine bounding box which encompasses all the images and resample all the images onto that grid. Then you can use AddImageFilter.
If you don’t want to implement all of that, take a look at this and this, as @fbudin mentioned in this post.
Hi everyone, I have a similar problem…i have a 3D volume and i want to display the axial, sagittal and coronal slices on the same window…do u have any suggestions/classes/example i could use?
I need also to ‘scroll’ up and down my volume…for example, if im in the axial slice and click with the left button (or i do smt else), it would show me the ‘higher’ slice of that plane…
Thanks in advance
Also, you could take a look at a more primitive, but much simpler viewer which I wrote. It is called SegComparer, and is available here. And in addition to visualizing images, it can visualize and quantitatively compare different segmentations (e.g. manual and automatic).
Edit: that is research code from 5 years ago. Provided as-is, without support.
Hi dzenanz and thank u for your answer. Unfortunately, i have to do this using only ITK/VTK.
I have to read 200 dicom images, create a volume, segment the liver vessels and visualize them in a bynary mask. I also have to ‘highlight’ the vessels in my volume (i thought of simply ‘adding’ my mask to my volume) and to cut the volume and display the slices in axial,sagittal and coronal planes…