[Insight-users] Problems in reading .mhd files

Bill Lorensen bill.lorensen at gmail.com
Tue Nov 20 21:30:10 EST 2012


Are you using Cmake to configure your project? If so, please provide
your CMakeLists.txt file.

If you are not using CMake, what is the reason?

On Tue, Nov 20, 2012 at 7:31 PM, Tanweer Rashid <trash001 at odu.edu> wrote:
> Hi,
>
> I am having problems reading a .MHD file. I get the following error:
>
> d:\programfiles\itk\include\itk-4.2\itkimagefilereader.hxx:143:
>  Could not create IO object for file C:\Users\trash001\Desktop\sphere.mhd
>   Tried to create one of the following:
>   You probably failed to set a file suffix, or
>      set the suffix to an unsupported type.
>
>
> My code is as follows:
>
> typedef itk::Image<float, 3> VolumeType;
> typedef itk::ImageFileReader<VolumeType> VolumeReaderType;
>
> VolumeReaderType::Pointer reader = VolumeReaderType::New();
> reader->SetFileName("C:\\Users\\trash001\\Desktop\\sphere.mhd");
> reader->Update();
>
>
> Thanks,
> --
> Tanweer Rashid
> MSVE Dept.
> Old Dominion University
>
>
> _____________________________________
> 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


More information about the Insight-users mailing list