13 #ifndef mitkAbstractOpenCVImageFilter_h 14 #define mitkAbstractOpenCVImageFilter_h 18 #include "opencv2/core.hpp" 21 #include <itkObjectFactory.h> 30 itkFactorylessNewMacro(Self);
39 bool OnFilterImage( cv::Mat&
image )
override;
44 void SetCropRegion( cv::Rect cropRegion );
49 void SetCropRegion(
int topLeftX,
int topLeftY,
int bottomRightX,
int bottomRightY );
54 cv::Rect GetCropRegion( );
59 bool GetIsCropRegionEmpty( );
75 #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)
mitk::Image::Pointer image
Interface for image filters on OpenCV images.
bool m_NewCropRegionSet
True if no image was filtered since last set of a crop region.