[Insight-users] how to map grayscale to color

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sun Aug 20 04:41:51 EDT 2006


Le Sun, 20 Aug 2006 02:47:33 +0200, <kdsfinger at gmail.com> a écrit:

> On 8/19/06, Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr> wrote:
>> Le Sat, 19 Aug 2006 14:21:32 +0200, <kdsfinger at gmail.com> a écrit:
>>
>> > That's even better. Is there any restriction to the number of segments
>> > (<unsigned char or < unsigned short)? Thanks a lot.
>>
>> No, there is no such restriction. The label must be integral, but that's
>> all.
>> Please submit a (small) review if you find it useful, or think to some
>> things to enhance :-)
>>
>> Thanks,
>>
>> Gaetan
>>
>> > 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
>> >>
>>
>>
>>
>> --
>> 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
>>
>
> Sure, I am going to try it. Where to submit the comments?

You only have to register at  
http://insight-journal.org/InsightJournalManager/custom_register.php and  
to post your comments in a new review at  
http://insight-journal.org/InsightJournalManager/view_reviews.php?back=publications.php%3Fjournalid%3D4%26order%3Drating%26revision_display%3Dlatest&pubid=79  
.
The review template can seem a little too complewx for this kind of small  
contribution. Just fill what you find relevant :-)

Thanks,

Gaetan



-- 
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