[Insight-users] converting from rgb to hsi , lab space etc

Luis Ibanez luis.ibanez at kitware.com
Sun Aug 5 09:57:39 EDT 2007


Hi Shiva,

Currently there are no filters in ITK for performing a conversion
between RGB and other color spaces.

However, You can easily implement this functionality by writing
an ImageAdaptor, or a filter deriving from the UnaryFunctorFilter,
and just writing the Functor that converts one RGB triplet to the
corresponding type of the output color space.

BTW: If you implement the filter, we encourage you to submit it
      as a contribution to the Insight Journal.

You will find a description of ImageAdaptors and the UnaryFunctor
filters in the ITK Software Guide:

            http://www.itk.org/ItkSoftwareGuide.pdf


Please let us know if you have any questions on how to implements
these filters.



   Thanks,


       Luis



-------------------
shiva kumar wrote:
> Dear Reader
> I have been using itk and found it very helpful.
> I want to know how to convert from rgb to hsi, lab spaces using this
> as that is crucial for my work.
> Thanking you
> Shiva Kumar
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> 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