[Insight-users] ResampleImageFilter::GenerateInputRequestedRegion - typo?

Luis Ibanez luis.ibanez at kitware.com
Wed Apr 25 17:18:21 EDT 2007


Hi Elena,

Thanks for pointing this out.

You are right, this line doesn't have any effect.

A similar problem happens in the following filters:


    itkInverseDeformationFieldImageFilter.txx
    itkResampleImageFilter.txx
    itkVectorResampleImageFilter.txx


We should remove this line from the code.



    Thanks


       Luis


--------------------------
Elena Pavlovskaia wrote:
> Hello,
> 
> I am implementing a filter that has output image size & spacing
> different from the input image. So I follow the code of ResampleImageFilter
> as an example to follow. Its GenerateInputRequestedRegion function has
> the following pair of lines (454 & 455):
> 
>   inputRegion = inputPtr->GetLargestPossibleRegion();
>   inputPtr->SetLargestPossibleRegion(inputRegion);
> 
> I have an impression that the second line does not produce any effect,
> and that it could be safely removed. Is that right?
> 
> Thank you,
> 
> Elena
> 
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 


More information about the Insight-users mailing list