[Insight-developers] Re: design problem with VectorImage and ImageAdaptor ?

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Mon Mar 13 04:50:16 EST 2006


Hi Luis,

Thanks for you answer.
Is there also a filter to create a VectorImage from several scalar images ?
Also, VectorIndexSelectionCastImageFilter seems to not check the number of  
components. Is there a possibility to get invalid data, or to get a  
segmentation fault with that filter ?

Regards,

Gaetan

On Sat, 11 Mar 2006 22:10:59 +0100, Luis Ibanez <luis.ibanez at kitware.com>  
wrote:

>
> Hi Gaetan,
>
> The filter that you can use for extracting a scalar image
> from a channel of a vector image is the following:
>
>             VectorIndexSelectionCastImageFilter
>
> http://www.itk.org/Insight/Doxygen/html/classitk_1_1VectorIndexSelectionCastImageFilter.html
>
>
> Regards,
>
>
>      Luis
>
>
>
> -----------------------
> Gaetan Lehmann wrote:
> ...
>
>>  I don't like too much adaptor, but it seem that the only class able  
>> to  extract a scalar image from a VectorImage for now.
>> I guess I have to write a filter to extract the channel I'm interested  
>> in.  It would also avoid the efficiency problem your talking about.
>>
> ...
>
>>  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-developers mailing list