17 #ifndef mitkAbstractOpenCVImageFilter_h
18 #define mitkAbstractOpenCVImageFilter_h
25 #include <itkObjectFactory.h>
34 itkFactorylessNewMacro(Self)
43 bool OnFilterImage( cv::Mat& image )
override;
48 void SetCropRegion( cv::Rect cropRegion );
53 void SetCropRegion(
int topLeftX,
int topLeftY,
int bottomRightX,
int bottomRightY );
58 cv::Rect GetCropRegion( );
63 bool GetIsCropRegionEmpty( );
79 #endif // mitkAbstractOpenCVImageFilter_h
cv::Rect m_CropRegion
Defines the region which will be cropped from the image.
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkClassMacro(className, SuperClassName)
Interface for image filters on OpenCV images.
bool m_NewCropRegionSet
True if no image was filtered since last set of a crop region.