[Insight-users] how to map grayscale to color

kdsfinger at gmail.com kdsfinger at gmail.com
Sat Aug 19 08:21:32 EDT 2006


That's even better. Is there any restriction to the number of segments
(<unsigned char or < unsigned short)? Thanks a lot.
zl2k

On 8/19/06, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>
> Hi,
>
> You may want to look at the label overlay contribution I have submited to
> the insight journal.
> It produce a similar result, but with a more distinct set of colors and
> some options to manage the background. Another class in this contrib let
> you show the labels superimposed onto the original image.
>
> http://insight-journal.org/dspace/bitstream/1926/172/5/Label_overlay.pdf
> http://insight-journal.org/dspace/bitstream/1926/172/4/labelOverlay.tar.gz
>
> All the colored images in the following article where also obtained with
> those classes:
> http://insight-journal.org/dspace/bitstream/1926/202/2/The_watershed_transform_in_ITK_-_discussion_and_new_developments.pdf
>
> Regards,
>
> Gaetan
>
>
> Le Sat, 19 Aug 2006 01:58:52 +0200, Pingkun Yan <pingkun.yan at gmail.com> a
> écrit:
>
> > 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
> >>
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
>
> --
> Gaëtan Lehmann
> Biologie du Développement et de la Reproduction
> INRA de Jouy-en-Josas (France)
> tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
> http://voxel.jouy.inra.fr
>


More information about the Insight-users mailing list