X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkCropLikeImageFilter.h;h=9c12d784dfd0543436bf30c6604b8d5b94cc0c4c;hb=aeb947ddd800ab06cf4916c9371bca3832056b4f;hp=d288dc4034d792ef34e554fd370c36a2ce6d536a;hpb=709d3deddba827afcff948a7ebfe8d4908e72f8f;p=clitk.git diff --git a/itk/clitkCropLikeImageFilter.h b/itk/clitkCropLikeImageFilter.h index d288dc4..9c12d78 100644 --- a/itk/clitkCropLikeImageFilter.h +++ b/itk/clitkCropLikeImageFilter.h @@ -3,7 +3,7 @@ Authors belong to: - University of LYON http://www.universite-lyon.fr/ - - Léon Bérard cancer center http://oncora1.lyon.fnclcc.fr + - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr This software is distributed WITHOUT ANY WARRANTY; without even @@ -14,7 +14,7 @@ - BSD See included LICENSE.txt file - CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html - ======================================================================-====*/ + ===========================================================================**/ #ifndef CLITKCROPLIKEIMAGEFILTER_H #define CLITKCROPLIKEIMAGEFILTER_H @@ -64,8 +64,9 @@ namespace clitk { /** ImageDimension constants */ itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); - - // void Update() { GenerateOutputInformation(); GenerateData(); } + + // I dont want to verify inputs information + virtual void VerifyInputInformation() { } protected: CropLikeImageFilter(); @@ -82,7 +83,6 @@ namespace clitk { bool m_LikeFilenameIsGiven; PointType m_Origin; const itk::ImageBase * m_LikeImage; - //typename ImageType::Pointer m_LikeImage; std::vector m_CropAlongThisDimension; PointType m_StartPoint; // start point in physical world @@ -100,6 +100,15 @@ namespace clitk { }; // end class //-------------------------------------------------------------------- + + //-------------------------------------------------------------------- + // Convenient function + template + typename ImageType::Pointer + ResizeImageLike(const ImageType * input, + const itk::ImageBase * like, + typename ImageType::PixelType BG); + } // end namespace clitk //--------------------------------------------------------------------