1 // -------------------------------------------------------------------------
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // -------------------------------------------------------------------------
5 #ifndef __cpExtensions__Algorithms__ImageToBoundingBoxFromThreshold__h__
6 #define __cpExtensions__Algorithms__ImageToBoundingBoxFromThreshold__h__
10 namespace cpExtensions
16 template< class _TImage >
17 class ImageToBoundingBoxFromThreshold
21 typedef ImageToBoundingBoxFromThreshold Self;
22 typedef itk::Object Superclass;
23 typedef itk::SmartPointer< Self > Pointer;
24 typedef itk::SmartPointer< const Self > ConstPointer;
26 typedef _TImage TImage;
27 typedef typename TImage::PixelType TPixel;
28 typedef typename TImage::IndexType TIndex;
29 typedef typename TImage::RegionType TRegion;
33 itkTypeMacro( ImageToBoundingBoxFromThreshold, itkObject );
35 itkGetConstObjectMacro( Image, TImage );
36 itkGetConstMacro( LowerThreshold, TPixel );
37 itkGetConstMacro( UpperThreshold, TPixel );
38 itkGetConstMacro( Region, TRegion );
40 itkSetConstObjectMacro( Image, TImage );
41 itkSetMacro( LowerThreshold, TPixel );
42 itkSetMacro( UpperThreshold, TPixel );
43 itkSetMacro( Region, TRegion );
49 ImageToBoundingBoxFromThreshold( );
50 virtual ~ImageToBoundingBoxFromThreshold( );
53 // Purposely not implemented.
54 ImageToBoundingBoxFromThreshold( const Self& );
55 void operator=( const Self& );
58 typename TImage::ConstPointer m_Image;
59 TPixel m_LowerThreshold;
60 TPixel m_UpperThreshold;
68 #ifndef ITK_MANUAL_INSTANTIATION
69 # include <cpExtensions/Algorithms/ImageToBoundingBoxFromThreshold.hxx>
70 #endif // ITK_MANUAL_INSTANTIATION
72 #endif // __cpExtensions__Algorithms__ImageToBoundingBoxFromThreshold__h__