[Insight-users] LabelOverlayImageFilter - specific color map

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Jul 6 18:01:55 EDT 2009


Hi Martin,

I've just commited your patch to ITK cvs.

Thanks!

Gaëtan


Le 23 avr. 09 à 01:35, Martin Kavec a écrit :

> Hi Gaetan,
>
> you may find the diff files of my changes attached. The tests, which  
> I have
> done showed that the changes should work fine and should not affect  
> the
> original functionality. Attached you may also find an example of an
> elliptical mask being colored with a seemingly useless color map  
> (fMRI).
>
> Best,
>
> Martin
>
> On Tuesday 21 April 2009 10:06:10 Gaëtan Lehmann wrote:
>> Le 21 avr. 09 à 05:32, Martin Kavec a écrit :
>>> Hi,
>>>
>>> I was playing the past few days with LabelOverlayImageFilter.
>>>
>>> I think it could be a nice extension of the filter if it would allow
>>> application of a user defined color map. There is already a
>>> mechanism to
>>> AddColor(r,g,b) to the LabelToRGBFunctor, which is used by the  
>>> overlay
>>> filter, so the only think to implement is erasing m_Colors vector
>>> and add the
>>> missing interface(s) for adding a color.
>>
>> Hi Martin,
>>
>> Would it be possible for you to provide a patch?
>> I would be pleased to review it, and commit it in ITK cvs.
>>
>> Also, have you looked at Nick's contribution
>> http://insight-journal.org/browse/publication/285 ?
>> The colors are not associated to a specific pixel value, but maybe it
>> would be ok for you?
>>
>> Regards,
>>
>> Gaëtan
> < 
> itkLabelOverlayFunctor 
> .h 
> .diff 
> > 
> < 
> itkLabelOverlayImageFilter 
> .h 
> .diff 
> > 
> < 
> itkLabelOverlayImageFilter 
> .txx.diff><itkLabelToRGBFunctor.h.diff><customLUT.png>

-- 
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  http://www.itk.org
http://www.mandriva.org  http://www.bepo.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Ceci est une signature ?lectronique PGP
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090707/44a80110/attachment.pgp>


More information about the Insight-users mailing list