From 9c5f0e4d3d6b33e09d0413439ed7a867e3d85faa Mon Sep 17 00:00:00 2001 From: David Sarrut Date: Mon, 14 Dec 2015 08:44:01 +0100 Subject: [PATCH] add include --- itk/clitkCropLikeImageFilter.h | 43 +++++++++++++++++----------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/itk/clitkCropLikeImageFilter.h b/itk/clitkCropLikeImageFilter.h index c8fae32..cc7623f 100644 --- a/itk/clitkCropLikeImageFilter.h +++ b/itk/clitkCropLikeImageFilter.h @@ -1,7 +1,7 @@ /*========================================================================= Program: vv http://www.creatis.insa-lyon.fr/rio/vv - Authors belong to: + Authors belong to: - University of LYON http://www.universite-lyon.fr/ - Léon Bérard cancer center http://www.centreleonberard.fr - CREATIS CNRS laboratory http://www.creatis.insa-lyon.fr @@ -21,18 +21,19 @@ // clitk #include "clitkBoundingBoxUtils.h" +#include "clitkImageCommon.h" // itk #include namespace clitk { - + //-------------------------------------------------------------------- /* Perform various cropping operation on a image */ //-------------------------------------------------------------------- - + template class ITK_EXPORT CropLikeImageFilter: public itk::ImageToImageFilter { public: @@ -41,10 +42,10 @@ namespace clitk { typedef itk::ImageToImageFilter Superclass; typedef itk::SmartPointer Pointer; typedef itk::SmartPointer ConstPointer; - + /** Method for creation through the object factory. */ itkNewMacro(Self); - + /** Run-time type information (and related methods). */ itkTypeMacro(CropLikeImageFilter, ImageToImageFilter); @@ -64,7 +65,7 @@ namespace clitk { // Set Background if 'like' is greater than input itkSetMacro(BackgroundValue, PixelType); - itkGetConstMacro(BackgroundValue, PixelType); + itkGetConstMacro(BackgroundValue, PixelType); /** ImageDimension constants */ itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); @@ -75,11 +76,11 @@ namespace clitk { protected: CropLikeImageFilter(); virtual ~CropLikeImageFilter() {} - + virtual void GenerateOutputInformation(); virtual void GenerateData(); virtual void GenerateInputRequestedRegion(); - + PixelType m_BackgroundValue; RegionType m_OutputRegion; RegionType m_Region; @@ -88,41 +89,41 @@ namespace clitk { PointType m_Origin; const itk::ImageBase * m_LikeImage; std::vector m_CropAlongThisDimension; - + PointType m_StartPoint; // start point in physical world - IndexType m_StartSourceIndex; // start index in "source" image - IndexType m_StartDestIndex; // start index in "destination" image - + IndexType m_StartSourceIndex; // start index in "source" image + IndexType m_StartDestIndex; // start index in "destination" image + PointType m_StopPoint; // stop point in physical world - IndexType m_StopSourceIndex; // stop index in "source" image - IndexType m_StopDestIndex; // stop index in "destination" image - + IndexType m_StopSourceIndex; // stop index in "source" image + IndexType m_StopDestIndex; // stop index in "destination" image + private: CropLikeImageFilter(const Self&); //purposely not implemented void operator=(const Self&); //purposely not implemented - + }; // end class //-------------------------------------------------------------------- //-------------------------------------------------------------------- - // Convenient function + // Convenient function template typename ImageType::Pointer ResizeImageLike(const ImageType * input, - const itk::ImageBase * like, + const itk::ImageBase * like, typename ImageType::PixelType BG); template typename ImageType::Pointer ResizeImageLike(const ImageType * input, - typename itk::ImageBase::RegionType * like, + typename itk::ImageBase::RegionType * like, typename ImageType::PixelType BG); template typename ImageType::Pointer - ResizeImageLike(const ImageType * input, - typename itk::BoundingBox::Pointer bb, + ResizeImageLike(const ImageType * input, + typename itk::BoundingBox::Pointer bb, typename ImageType::PixelType BG); -- 2.47.1