X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkCropLikeImageFilter.h;h=c8fae32891eef1c3a7b1f305fcf4e3fbb716cb06;hb=e6e296da58762731b5ea8bc019fd2741f375b43e;hp=d3290ac9fbff980b8abe347e0c8138a58aad945d;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/itk/clitkCropLikeImageFilter.h b/itk/clitkCropLikeImageFilter.h index d3290ac..c8fae32 100644 --- a/itk/clitkCropLikeImageFilter.h +++ b/itk/clitkCropLikeImageFilter.h @@ -19,6 +19,10 @@ #ifndef CLITKCROPLIKEIMAGEFILTER_H #define CLITKCROPLIKEIMAGEFILTER_H +// clitk +#include "clitkBoundingBoxUtils.h" + +// itk #include namespace clitk { @@ -65,6 +69,9 @@ namespace clitk { /** ImageDimension constants */ itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); + // I dont want to verify inputs information + virtual void VerifyInputInformation() { } + protected: CropLikeImageFilter(); virtual ~CropLikeImageFilter() {} @@ -97,6 +104,28 @@ namespace clitk { }; // end class //-------------------------------------------------------------------- + + //-------------------------------------------------------------------- + // Convenient function + template + typename ImageType::Pointer + ResizeImageLike(const ImageType * input, + const itk::ImageBase * like, + typename ImageType::PixelType BG); + + template + typename ImageType::Pointer + ResizeImageLike(const ImageType * input, + typename itk::ImageBase::RegionType * like, + typename ImageType::PixelType BG); + + template + typename ImageType::Pointer + ResizeImageLike(const ImageType * input, + typename itk::BoundingBox::Pointer bb, + typename ImageType::PixelType BG); + + } // end namespace clitk //--------------------------------------------------------------------