X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=itk%2FclitkAutoCropFilter.h;h=98ab74f8fa7b3ab9a7817da518478b83a40abd5c;hb=4cfd18a5e026b6b20a4dfbdd32606b0fc18883b5;hp=d060a97ecca5a0c96521f8e165771246f67718d9;hpb=682faa996059bfeee148e3d65ffa5cec4dadf3e2;p=clitk.git diff --git a/itk/clitkAutoCropFilter.h b/itk/clitkAutoCropFilter.h index d060a97..98ab74f 100644 --- a/itk/clitkAutoCropFilter.h +++ b/itk/clitkAutoCropFilter.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 CLITKAUTOCROPFILTER_H #define 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