[Insight-users] Filtering all channels of a VectorImage

Julien Malik julien.malik at c-s.fr
Wed Apr 27 03:27:48 EDT 2011


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

Le 27/04/2011 07:57, Gaëtan Lehmann a écrit :
>
> Le 27 avr. 11 à 03:07, David Doria a écrit :
>
>> Lately I've needed to run some filters on a VectorImage. The filters 
>> only work on single channel inputs. To get around this, my process to 
>> filter each channel separately has been:
>>
>> 1) Use VectorIndexSelectionCastImageFilter to decompose the image 
>> into its separate channels
>> 2) In a loop, run a filter on each channel
>> 3) Use ImageToVectorImageFilter to assemble the output from the 
>> output of the filter on each channel.
>>
>> Is this a reasonable process?
>
> It is.
>
>> Is a more automated way to do this?
>>
>
> Not at this time.
> It's in my plan for a quite long time to make a 
> ChannelByChannelImageFilter similar to the SliceBySliceImageFilter, 
> but it is not done yet.
>
> Gaëtan
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110427/27c96aa2/attachment.htm>


More information about the Insight-users mailing list