[Insight-users] BMP Series Writer

Gavin Baker gavinb+xtk at cs.mu.OZ.AU
Wed Sep 28 05:54:07 EDT 2005


Hello Diego,

On Mon, Sep 26, 2005 at 06:09:10PM -0500, Diego Parada wrote:

> I'm opening a bmp series, but not appears anything.
> When I try to save an image volume only keeps the first slice
> 
> What is happening?
> 
> Thanks.

How are you opening the BMP series?  Are you using the ImageSeriesReader?
Are there any error messages printed on the console?  We would need to know
more about what your code is doing to help.

Please note that the BMP file format is really not appropriate for medical
imaging; it does not support critical metadata, and is incapable of storing
scale, spacing, origin information or storing volumes.  Please look at other
file formats for your data.

As for saving to a BMP file, that will not work because the files cannot
support saving volumes.  (In fact the writer should throw an exception.)
Using the ImageSeriesWriter should work, but again, BMP is really not a good
format for this domain.

MetaIO (.mhd) or one of the other file formats would be an infinitely
preferrable choice.  There are examples and code to batch convert images
between formats (eg. have a look in Examples/IO).

More information on the various file formats ITK supports can be found here:

  http://www.itk.org/Wiki/ITK_File_Formats

Regards,

  :: Gavin

-- 
Gavin Baker                                      Complex Systems Group
http://www.cs.mu.oz.au/~gavinb             The University of Melbourne


More information about the Insight-users mailing list