[Insight-developers] Read-Write Lab-color tiff images
Luis Ibanez
luis.ibanez at kitware.com
Fri Sep 25 09:29:13 EDT 2009
Hi /lexis,
One mechanism that you could use is the MetaDataDictionnary.
This is a (key,value) pair table that you can associate to an
image. You can add arbitrary key,value pairs to this table.
In your case, you could add the specification of the color
space.
The TIFFImageIO class could be modified for adding this
pairs to the meta data dictionnary at read time, and to
use them for conversions at write time.
You may find useful to look at how we use the MetaDataDictionnary
for DICOM image tags. In particular, take a look at the class
GDCMImageIO.
Search for "MetaDataDictionnary" in
Insight/Code/IO/itkGDCMImageIO.cxx
Please let us know if you find any problems.
BTW: Of it will be great if you would contribute your
modifications of the TIFFImageIO class back to ITK :-)
Thanks
Luis
-------------------------------
Алексей Тихвинский wrote:
> Hello.
>
> I want to implement a functionality to read/write tiff images with Lab-color spaces such as CIE L*a*b*, ICC (Adobe) L*a*b* and ITU L*a*b*.
> A problem I face now is how to propagate color space information between TIFFImageIO class and Image class.
>
> 1. TIFFImageIO must know color space when image is writing to set PHOTOMETRIC tag properly.
> 2. TIFFImageIO should know if Lab<>RGB (or Lab<>Grayscale) conversion is needed during read/write operations.
>
> Is there some generic functionality in ITK library to do that or I need to create some new?
>
> Thank you!
> /lexis
> _______________________________________________
> 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-developers
>
More information about the Insight-developers
mailing list