X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAutoCropFilter.h;h=94cdb656af69257298ff11684459a5a3877b0cd0;hb=cb5f6e9c4ca38eb5a304eb2b278ce049d2ca838b;hp=d060a97ecca5a0c96521f8e165771246f67718d9;hpb=682faa996059bfeee148e3d65ffa5cec4dadf3e2;p=clitk.git diff --git a/itk/clitkAutoCropFilter.h b/itk/clitkAutoCropFilter.h index d060a97..94cdb65 100644 --- a/itk/clitkAutoCropFilter.h +++ b/itk/clitkAutoCropFilter.h @@ -35,10 +35,10 @@ namespace clitk { public: /** Standard class typedefs. */ - typedef AutoCropFilter Self; - typedef itk::ImageToImageFilter Superclass; - typedef itk::SmartPointer Pointer; - typedef itk::SmartPointer ConstPointer; + typedef AutoCropFilter Self; + typedef itk::ImageToImageFilter Superclass; + typedef itk::SmartPointer Pointer; + typedef itk::SmartPointer ConstPointer; /** Method for creation through the object factory. */ itkNewMacro(Self); @@ -58,6 +58,11 @@ namespace clitk { // LabelImage information (BG) void SetBackgroundValue(ImagePixelType p); + + // Use a border + itkSetMacro(UseBorder, bool); + itkGetConstMacro(UseBorder, bool); + itkBooleanMacro(UseBorder); /** ImageDimension constants */ itkStaticConstMacro(ImageDimension, unsigned int, ImageType::ImageDimension); @@ -72,6 +77,7 @@ namespace clitk { ImagePixelType m_BackgroundValue; ImageRegionType m_Region; ImagePointer m_labeImage; + bool m_UseBorder; private: AutoCropFilter(const Self&); //purposely not implemented