#include <mitkCropOpenCVImageFilter.h>
Public Member Functions | |
mitkClassMacro (CropOpenCVImageFilter, AbstractOpenCVImageFilter) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
CropOpenCVImageFilter () | |
bool | OnFilterImage (cv::Mat &image) override |
Crops image to rectangle given by mitk::CropOpenCVImageFilter::SetCropRegion. | |
void | SetCropRegion (cv::Rect cropRegion) |
Set region of interest for cropping. | |
void | SetCropRegion (int topLeftX, int topLeftY, int bottomRightX, int bottomRightY) |
Set region of interest for cropping. | |
cv::Rect | GetCropRegion () |
Returns region, which was set by mitk::CropOpenCVImageFilter::SetCropRegion(). | |
bool | GetIsCropRegionEmpty () |
![]() | |
mitkClassMacroItkParent (AbstractOpenCVImageFilter, itk::Object) | |
virtual bool | FilterImage (cv::Mat &image, int id=INVALID_IMAGE_ID) |
Protected Attributes | |
cv::Rect | m_CropRegion |
Defines the region which will be cropped from the image. | |
bool | m_NewCropRegionSet |
True if no image was filtered since last set of a crop region. | |
![]() | |
int | m_CurrentImageId |
Additional Inherited Members | |
![]() | |
static int | INVALID_IMAGE_ID = -1 |
![]() | |
AbstractOpenCVImageFilter () | |
int | GetCurrentImageId () |
Definition at line 25 of file mitkCropOpenCVImageFilter.h.
mitk::CropOpenCVImageFilter::CropOpenCVImageFilter | ( | ) |
Definition at line 17 of file mitkCropOpenCVImageFilter.cpp.
cv::Rect mitk::CropOpenCVImageFilter::GetCropRegion | ( | ) |
Returns region, which was set by mitk::CropOpenCVImageFilter::SetCropRegion().
Definition at line 97 of file mitkCropOpenCVImageFilter.cpp.
bool mitk::CropOpenCVImageFilter::GetIsCropRegionEmpty | ( | ) |
Definition at line 102 of file mitkCropOpenCVImageFilter.cpp.
mitk::CropOpenCVImageFilter::itkCloneMacro | ( | Self | ) |
mitk::CropOpenCVImageFilter::itkFactorylessNewMacro | ( | Self | ) |
mitk::CropOpenCVImageFilter::mitkClassMacro | ( | CropOpenCVImageFilter | , |
AbstractOpenCVImageFilter | ) |
|
overridevirtual |
Crops image to rectangle given by mitk::CropOpenCVImageFilter::SetCropRegion.
Implements mitk::AbstractOpenCVImageFilter.
Definition at line 22 of file mitkCropOpenCVImageFilter.cpp.
void mitk::CropOpenCVImageFilter::SetCropRegion | ( | cv::Rect | cropRegion | ) |
Set region of interest for cropping.
Definition at line 67 of file mitkCropOpenCVImageFilter.cpp.
void mitk::CropOpenCVImageFilter::SetCropRegion | ( | int | topLeftX, |
int | topLeftY, | ||
int | bottomRightX, | ||
int | bottomRightY ) |
Set region of interest for cropping.
Definition at line 92 of file mitkCropOpenCVImageFilter.cpp.
|
protected |
Defines the region which will be cropped from the image.
Definition at line 65 of file mitkCropOpenCVImageFilter.h.
|
protected |
True if no image was filtered since last set of a crop region.
Definition at line 70 of file mitkCropOpenCVImageFilter.h.