<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi ITK users,<div><br></div><div>I've been using the itk::ImageSeriesReader with itk::GDCMImageIO to read a DICOM volume from a </div><div>series of slices with success.</div><div><br></div><div>Here is part of the code I've been using:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">itk::ImageSeriesReader<itk::Image<double, 3> >::Pointer reader = itk::ImageSeriesReader<ITK3DImage>::New();</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">reader->SetFileNames(fileNames);</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 12px/normal Monaco; ">reader->SetImageIO(dcmIO);</div></div><div><br></div><div>At this time, I don't know what is the scalar component type of my 3D image, so I specify double as the templated image type.</div><div>If the image is in fact stored as bytes, I am using 8 times the memory needed, which is quite annoying for large datasets.</div><div><br></div><div>I currently cast it back to its native type once it is read.</div><div><br></div><div>Does anybody have a suggestion on how I could check the native type of the image before reading it?</div><div>What I'd like to do is something like: read the header (not the data) to check the native type, then create my image with</div><div>that type. </div><div><br></div><div>Note that I have the same issue with other image IO, so it is not a DICOM specific issue.</div><div><br></div><div>Thanks!</div><div><br></div><div>Mathieu</div><div><br></div><div><br></div><div><br></div></body></html>