13 #ifndef mitkCropOpenCVImageFilter_h
14 #define mitkCropOpenCVImageFilter_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( );