[Insight-users] itk::AutoCropLabelMapFilter changes image origin?
sebastian ordas
sebastian.ordas at gmail.com
Tue May 31 22:46:24 EDT 2011
sorry, my mistake: let me just confirm that itkAutoCropLabelMapFilter
keeps the origin on its output perfectly well.
thank you!
sebastian
On 5/29/2011 5:24 PM, Gaëtan Lehmann wrote:
>
> 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
>
>
More information about the Insight-users
mailing list