[Insight-users] itk::AutoCropLabelMapFilter changes image origin?

Gaëtan Lehmann gaetan.lehmann at jouy.inra.fr
Sun May 29 16:24:35 EDT 2011


Hi Sebastian,

Le 23 mai 11 à 18:34, sebastian ordas a écrit :

> Dear List,
>
> I´ve been using itkAutoCropLabelMapFilter for cropping a set of  
> labels in my labeled image.
> The generated indexes retrieved by GetMinIndex(), GetMaxIndex() are  
> correct: if I create a region and use it in a ROI filter, I would  
> get the pretended result
>
> However, if I take the output of the filter and pass it through  
> LabelMapToLabelImageFilter, the resulting image will be shifted.
>
> Is that the pretended use of the filter? Should I set the origin of  
> the input image to the output?


The image shouldn't be shifted.

Can provide a minimum test program to reproduce that problem?

Thanks,

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

-------------- 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/20110529/0980203c/attachment.pgp>


More information about the Insight-users mailing list