1 // -------------------------------------------------------------------------
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // -------------------------------------------------------------------------
5 #ifndef __cpExtensions__Algorithms__ImageToBoundingBoxFromThreshold__h__
6 #define __cpExtensions__Algorithms__ImageToBoundingBoxFromThreshold__h__
9 #include <itkObjectFactory.h>
11 namespace cpExtensions
17 template< class _TImage >
18 class ImageToBoundingBoxFromThreshold
22 typedef ImageToBoundingBoxFromThreshold Self;
23 typedef itk::Object Superclass;
24 typedef itk::SmartPointer< Self > Pointer;
25 typedef itk::SmartPointer< const Self > ConstPointer;
27 typedef _TImage TImage;
28 typedef typename TImage::PixelType TPixel;
29 typedef typename TImage::IndexType TIndex;
30 typedef typename TImage::RegionType TRegion;
34 itkTypeMacro( ImageToBoundingBoxFromThreshold, itkObject );
36 itkGetConstObjectMacro( Image, TImage );
37 itkGetConstMacro( LowerThreshold, TPixel );
38 itkGetConstMacro( UpperThreshold, TPixel );
39 itkGetConstMacro( Region, TRegion );
40 itkGetConstMacro( PAD, unsigned int );
42 itkSetConstObjectMacro( Image, TImage );
43 itkSetMacro( LowerThreshold, TPixel );
44 itkSetMacro( UpperThreshold, TPixel );
45 itkSetMacro( Region, TRegion );
46 itkSetMacro( PAD, unsigned int );
52 ImageToBoundingBoxFromThreshold( );
53 virtual ~ImageToBoundingBoxFromThreshold( );
56 // Purposely not implemented.
57 ImageToBoundingBoxFromThreshold( const Self& );
58 void operator=( const Self& );
61 typename TImage::ConstPointer m_Image;
62 TPixel m_LowerThreshold;
63 TPixel m_UpperThreshold;
72 #ifndef ITK_MANUAL_INSTANTIATION
73 # include <cpExtensions/Algorithms/ImageToBoundingBoxFromThreshold.hxx>
74 #endif // ITK_MANUAL_INSTANTIATION
76 #endif // __cpExtensions__Algorithms__ImageToBoundingBoxFromThreshold__h__