[Insight-users] ImageFileReaderException
Bill Lorensen
bill.lorensen at gmail.com
Fri Oct 26 08:41:21 EDT 2012
Look like the i/o factories are not initialized properly. What does your
CMakeLists.txt file look like?
On Fri, Oct 26, 2012 at 12:18 AM, xianjun.sun.ext_CRC <
xianjun.sun.ext at united-imaging.com> wrote:
> Hello all, ****
>
> ** **
>
> I tried to read a .nii file, but when debug reader->Update(), an
> exception happened. Could anyone help me ?****
>
> ** **
>
> try****
>
> {****
>
> fixedImageReader->Update();****
>
> }****
>
> catch( itk::ExceptionObject & excp )****
>
> {****
>
> std::cerr << "Exception thrown while reading the image" << std::endl;*
> ***
>
> std::cerr << excp << std::endl;****
>
> }****
>
> ** **
>
> Exception thrown while reading the image****
>
> ** **
>
> itk::ImageFileReaderException (0044F158) Location: ****
>
> "void __thiscall itk::ImageFileReader<class itk::Image<short,3>,class****
>
> itk::DefaultConvertPixelTraits<short> >::GenerateOutputInformation(void)"*
> ***
>
> File: c:\program files (x86)\itk\include\itk-4.2\itkimagefilereader.hxx***
> *
>
> Line: 143****
>
> Description: Could not create IO object for file E:\Atlas\data_case5.nii*
> ***
>
> Tried to create one of the following:****
>
> You probably failed to set a file suffix, or****
>
> set the suffix to an unsupported type.****
>
> ****
>
> ** **
>
> Actually, I used itk\Examples\IO\ImageReadWrite.cxx to read the same
> .nii file, it could be read out rightly. ****
>
> ** **
>
> I am using:****
>
> - VS 2010****
>
> - Windows 7 64 bit. ****
>
> and the platform I build my C++ projects is Win32.****
>
> ** **
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
--
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121026/f1f875b5/attachment-0001.htm>
More information about the Insight-users
mailing list