[Insight-users] ImageSeriesReader from 2D to 4D

Jose Ignacio Prieto joseignacio.prieto at gmail.com
Wed Aug 7 19:19:23 EDT 2013


Hi all, I am trying to modify ImageSeriesReader to load 4D cardiac images
from a series of 2d nonenhanced phillips dicom files. I have changed the
ImageIO file, and now it recognizes the number of slices in the Z direction
and the number of mri phases, so I return a 4D object. The problem I have
is that ImageSeriesReader is supposed to pass a n-1 series to a n
dimensions object. I have modified
ImageSeriesReader::GenerateOutputInformation to detect this 4d objects and
pass spacing, origin, direction, largestregion, numofcomponents from the
reader to the "output" object. After that I modify "ValidSize" in
ImageSeriesReader:299 to set the Z and T dimension to 1 instead of just the
last one, so I have a ValidSize [x,y,1,1]. But then in
ImageSeriesReader:367 (propagateRequestedRegion) it tries to load the full
4d dimensions from a single slice, instead of a region the size of
ValidSize. I think the main problem is that imageseriesreader uses the same
reader to get the image information and for loading each slice.
Does anybody has a hint on how to fix it? I could attach the code I have,
but its not worth because it doesn't work.
Thanks!

-- 
José Ignacio Prieto
celular(nuevo): 94348182
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130807/7117d14d/attachment.htm>


More information about the Insight-users mailing list