[SCIFIO] Error reading a 32-bit nrrd image via ITK

Joe Ping-Lin Hsiao phsiao at cs.unc.edu
Fri Oct 25 15:43:19 CDT 2013


Mike,

I added the following three lines of code to itkSCIFIOImageIOTest.cxx,
right before the line "typedef itk::ImageFileWriter< ImageType >
WriterType;":

reader->Update();
itk::ImageIOBase* io2 = reader->GetImageIO();
std::cout << "spacing: " << io2->GetSpacing(0) << " " << io2->GetSpacing(1)
<< " " << io2->GetSpacing(2) << std::endl;

And I run the following command with the same test image "sample_5.nrrd":

SCIFIOTestDriver.exe itkSCIFIOImageIOTest sample_5.nrrd aa.ome.tiff -w -d 3
-t float

the spacing output is different with and without "reader->SetImageIO( io
);".

According to the ITK::ImageBase (
http://www.itk.org/Doxygen/html/classitk_1_1ImageBase.html#a2d92ff5736deb71ffd0f1e43201b4c96),
spacing is the size of a pixel in physical space.

Thanks for taking time looking into this.

Joe






On Fri, Oct 25, 2013 at 10:36 AM, Mark Hiner <hinerm at gmail.com> wrote:

>
> I also found the SCIFIO reader reports different 'Voxel sizes'
>>
>
> Can you tell me what steps you used to check the voxel sizes with the
> ITK-SCIFIO plugin?
>
> No need to make another thread, I will look into it when I get time.
>
> Thanks!
> - Mark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://scif.io/pipermail/scifio/attachments/20131025/ad0cf7a8/attachment-0002.html>


More information about the SCIFIO mailing list