[Insight-users] Change image information (parameters for origin, spacing, etc.)

Luis Ibanez luis.ibanez at kitware.com
Wed Mar 17 18:40:59 EDT 2010


Hi Darren,

Here are some file formats that you may want to consider:
(in order of suggested preference)


1) MetaImage
    Advantage: simplicity, readable by ITK and VTK applications
    Disadvantage: some microscopy applications may not read it.

2) VTK (legacy)
    Advantage: simplicity, readable by VTK and ITK applications
    Disadvantage: it doesn't carry orientation information

3) Nifti
    Advantage: supported by the brain research community
    Disadvantage: not readable by VTK


You may want to stay away from TIFF, JPEG, PNG since,
as you already noticed, they don't properly carry information
about the image grid (origin, spacing, orientation).

DICOM is a popular option but it is a great headache.


I use with option (1) MetaImage most of the time.


It may be worth for you to identify the software applications
that you want to use for managing this data, so that their
reading capabilities can be used as a reference.


    Regards,


          Luis


-----------------------------------------------------------------------------------------------------
On Wed, Mar 17, 2010 at 5:44 PM, Darren Weber
<darren.weber.lists at gmail.com> wrote:
>
> Hi,
>
> The input images are .tif files that were exported from third-party
> microscopy software.  The .tif images do not contain accurate values for the
> pixel spacing.
>
> I've got a basic ITK program to change the image information, using the
> itkChangeInformationImageFilter.
>
> When writing an output file, what is your preferred image format to store
> the parameters (origin, spacing, etc.) so that ITK programs will read them
> correctly?
>
> It would be great to use an image format that is commonly used in image
> processing, rather than a very specific format that is only useful in ITK.
>
> TIA,
> Darren
>
>
> _____________________________________
> 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.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