[Insight-users] LabelOverlayImageFilter - specific color map

Bill Lorensen bill.lorensen at gmail.com
Tue Jul 7 18:19:45 EDT 2009


I tried compiling with VS6 today after the updates and all is well...

On Tue, Jul 7, 2009 at 5:31 PM, Luis Ibanez<luis.ibanez at kitware.com> wrote:
>
> Gaetan, Martin,
>
> Please note that the API of the patch was improved this morning.
>
> All Get() methods in ITK should be const.
>
>
> Also, up to this morning, the new code was not compiling in
> Visual Studio 6.0:
>
>  http://www.cdash.org/CDash/viewBuildError.php?buildid=372563
>
>
>  error C2244:
> 'LabelOverlayImageFilter<TInputImage,TLabelImage,TOutputImage>::AddColor' :
> unable to resolve function overload
>
>
> The typedefs that were added this morning,
> may help Visual Studio 6.0 to understand the AddColor() declaration.
>
>
> We will see in tomorrow's  Dashboards..
>
>
>
>    Luis
>
>
>
> ------------------------------
> Gaëtan Lehmann wrote:
>>
>> 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>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> _____________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list