]> Creatis software - clitk.git/blobdiff - itk/clitkAutoCropFilter.h
Romulo:
[clitk.git] / itk / clitkAutoCropFilter.h
index d060a97ecca5a0c96521f8e165771246f67718d9..94cdb656af69257298ff11684459a5a3877b0cd0 100644 (file)
@@ -35,10 +35,10 @@ namespace clitk {
 
   public:
     /** Standard class typedefs. */
-    typedef AutoCropFilter                         Self;
-    typedef itk::ImageToImageFilter<ImageType, ImageType>  Superclass;
-    typedef itk::SmartPointer<Self>                          Pointer;
-    typedef itk::SmartPointer<const Self>                    ConstPointer;
+    typedef AutoCropFilter                                Self;
+    typedef itk::ImageToImageFilter<ImageType, ImageType> Superclass;
+    typedef itk::SmartPointer<Self>                       Pointer;
+    typedef itk::SmartPointer<const Self>                 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