1 // -------------------------------------------------------------------------
2 // @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 // -------------------------------------------------------------------------
5 #ifndef __CPEXTENSIONS__ALGORITHMS__REGIONOFINTERESTIMAGECALCULATOR__H__
6 #define __CPEXTENSIONS__ALGORITHMS__REGIONOFINTERESTIMAGECALCULATOR__H__
9 #include <itkObjectFactory.h>
11 namespace cpExtensions
17 template< class _TImage >
18 class RegionOfInterestImageCalculator
23 typedef RegionOfInterestImageCalculator Self;
24 typedef itk::Object Superclass;
25 typedef itk::SmartPointer< Self > Pointer;
26 typedef itk::SmartPointer< const Self > ConstPointer;
28 typedef _TImage TImage;
29 typedef typename _TImage::IndexType TIndex;
30 typedef typename _TImage::PixelType TPixel;
34 itkTypeMacro( RegionOfInterestImageCalculator, itkObject );
36 itkGetConstObjectMacro( Image, _TImage );
37 itkGetConstMacro( BackgroundValue, TPixel );
38 itkGetConstMacro( Minimum, TIndex );
39 itkGetConstMacro( Maximum, TIndex );
41 itkSetConstObjectMacro( Image, _TImage );
42 itkSetMacro( BackgroundValue, TPixel );
48 RegionOfInterestImageCalculator( );
49 virtual ~RegionOfInterestImageCalculator( );
52 // Purposely not implemented
53 RegionOfInterestImageCalculator( const Self& );
54 void operator=( const Self& );
57 typename _TImage::ConstPointer m_Image;
58 TPixel m_BackgroundValue;
67 #ifndef ITK_MANUAL_INSTANTIATION
68 # include <cpExtensions/Algorithms/RegionOfInterestImageCalculator.hxx>
69 #endif // ITK_MANUAL_INSTANTIATION
71 #endif // __CPEXTENSIONS__ALGORITHMS__REGIONOFINTERESTIMAGECALCULATOR__H__