[Insight-users] how to map grayscale to color

Pingkun Yan pingkun.yan at gmail.com
Fri Aug 18 19:58:52 EDT 2006


Hi,

You may look at the "itkScalarToRGBPixelFunctor". It seems to be what
you want. You can find the example usage in the itk watershed
segmentation example.

HTH,
Pingkun

On 8/18/06, kdsfinger at gmail.com <kdsfinger at gmail.com> wrote:
> hi, all
> After finishing segmentation, I'd like to label each region in color
> and display in the widget. Is there any feasible way to map the
> grayscale (the label on the original segmented image) to color rgb?
> Thank you.
> Basically, I am looking for a user defined filter, taking the input
> image, do some calculation for each pixel, and produce an output
> image.
> zl2k
> _______________________________________________
> 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