[Insight-users] Reading MHD/RAW problem
Bill Lorensen
bill.lorensen at gmail.com
Wed Sep 16 08:47:28 EDT 2009
I just downloaded your data and it read fine with
Testing/Code/IO/itkMetaImageIOTest.
Bill
On Wed, Sep 16, 2009 at 6:54 AM, <itkvtk123 at gmx.net> wrote:
> I want to read RAW data using a MHD file.
> Unfortunately, it never reads the entire file - regardless which pixel type I specify.
>
> My code
>
> typedef signed short PixelType;
> typedef itk::Image<PixelType, 3> Image3DType;
> typedef itk::ImageSeriesReader<Image3DType> SeriesReaderType;
>
> ...
>
> SeriesReaderType::Pointer reader = SeriesReaderType::New();
> reader->SetFileName("C:/LungConeBeam.mhd");
>
> try
> {
> reader->Update();
> }
>
> ...
>
> results always in
> "MetaImage: M_ReadElements: data not read completely"
> "ideal = 5242880 : actual = 131072"
>
>
> The image is 256x256 px (type float) with 20 Slices.
>
> You can get the data at
> http://www.creatis.insa-lyon.fr/~dsarrut/vv/lowResolution/LungConeBeam.mhd
> http://www.creatis.insa-lyon.fr/~dsarrut/vv/lowResolution/LungConeBeam.raw
>
> Where is the problem?
>
> Thank you.
> --
> Neu: GMX Doppel-FLAT mit Internet-Flatrate + Telefon-Flatrate
> für nur 19,99 Euro/mtl.!* http://portal.gmx.net/de/go/dsl02
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> 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
>
More information about the Insight-users
mailing list