[Insight-users] Filtering all channels of a VectorImage

David Doria daviddoria at gmail.com
Wed Apr 27 14:52:09 EDT 2011


2011/4/27 Gaëtan Lehmann <gaetan.lehmann at jouy.inra.fr>:
>
> Le 27 avr. 11 à 20:20, David Doria a écrit :
>
>> On Wed, Apr 27, 2011 at 3:27 AM, Julien Malik <julien.malik at c-s.fr> wrote:
>>>
>>> Hello,
>>>
>>> We have such a filter in OTB.
>>> You might want to check :
>>>
>>> http://hg.orfeo-toolbox.org/OTB/file/94265b241df9/Code/BasicFilters/otbPerBandVectorImageFilter.h
>>>
>>> http://hg.orfeo-toolbox.org/OTB/file/94265b241df9/Code/BasicFilters/otbPerBandVectorImageFilter.txx
>>>
>>> Julien
>>
>> I took the liberty of pulling everything necessary out of OTB so you
>> guys can easily look at the implementation:
>> http://review.source.kitware.com/#change,1521
>>
>> I don't know about the inside, but the interface is FANTASTIC!
>>
>> typedef itk::MeanImageFilter<ImageType, ImageType> MeanFilterType;
>> typedef itk::ChannelByChannelVectorImageFilter<VectorImageType,
>> VectorImageType, MeanFilterType>
>> ChannelByChannelVectorImageFilterType;
>
>
> David,
>
> There may be licenses issues, as this code was first develop with a cecill
> (GPL like) licence.
>
> Gaëtan
>
>
> --
> 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
>
>

OK. I wasn't proposing pushing this as is, simply letting people try
it out without having to download/build/learn OTB.

David


More information about the Insight-users mailing list