[Insight-users] Image5.cxx sample throws exception

Luis Ibanez luis.ibanez at kitware.com
Mon Aug 16 18:44:54 EDT 2004


Hi Ulrike,

Thanks for pointing this out.

We just added some comments to the Wiki FAQ,
http://www.itk.org/Wiki/ITK_FAQ#What_3D_file_formats_can_ITK_import_and_export.3F
regarding the use of JPEG, PNG and BMP formats
for storing 3D datasets.

Please let us know if you find any other
issues with the documentation.


   Thanks


      Luis



--------------------------
Ulrike Rinehart wrote:

> Thanks Luis,
> 
> I got it to work by specifying a file with extension .mha. The documentation
> at
> http://www.itk.org/Wiki/Itk_FAQ#What_3D_file_formats_can_ITK_import_and_expo
> rt.3F indicates that 3-D is supported in JPEG, which is why I tried JPG
> first. Now I know better.
> 
> Ulrike 
> 
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com] 
> Sent: Monday, August 16, 2004 12:03 PM
> To: Ulrike Rinehart
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Image5.cxx sample throws exception
> 
> 
> Hi Ulrike,
> 
> The JPEG writer does not support 3D images.
> 
> You can however use the ImageSeriesWriter in order
> to save a 3D volume as a set of JPEG files, each
> one containing a single 2D slice of your volume.
> 
> 
> For an example on how to use the ImageSeriesWriter
> please look at
> 
> 
>       Insight/Examples/IO
>          ImageReadImageSeriesWrite.cxx
> 
> 
> If you just want to use the Image5.cxx example,
> you may want to use any of the fileformats that
> support 3D datasets in a single file, such as:
> 
>     - MetaImage
>     - Analyze
>     - Gipl
>     - VTK
> 
> 
> 
> Regards,
> 
> 
>      Luis
> 
> 
> -----------------------
> Ulrike Rinehart wrote:
> 
>>This is probably an easy question to answer. I am simply building 
>>Image5.exe from the examples directory, specifying output.jpg as the 
>>command line parameter. It throws the following exception: JPEG ImageIO 
>>(0022F858) JPEG Writer can only write 2-dimensional images. Going by the 
>>documentation, the JPEG writer supports 3-D image. Are there any flags I 
>>need to set when building ITK to get support for 3D?
>>
>> 
>>
>>Ulrike
>>
>>
>>------------------------------------------------------------------------
>>
>>_______________________________________________
>>Insight-users mailing list
>>Insight-users at itk.org
>>http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 
> 
> 
> 








More information about the Insight-users mailing list