Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <mitkCropOpenCVImageFilter.h>
Public Member Functions | |
mitkClassMacro (CropOpenCVImageFilter, AbstractOpenCVImageFilter) | |
Pointer | Clone () const |
CropOpenCVImageFilter () | |
bool | OnFilterImage (cv::Mat &image) override |
Crops image to rectangle given by mitk::CropOpenCVImageFilter::SetCropRegion. More... | |
void | SetCropRegion (cv::Rect cropRegion) |
Set region of interest for cropping. More... | |
void | SetCropRegion (int topLeftX, int topLeftY, int bottomRightX, int bottomRightY) |
Set region of interest for cropping. More... | |
cv::Rect | GetCropRegion () |
Returns region, which was set by mitk::CropOpenCVImageFilter::SetCropRegion(). More... | |
bool | GetIsCropRegionEmpty () |
Public Member Functions inherited from mitk::AbstractOpenCVImageFilter | |
mitkClassMacroItkParent (AbstractOpenCVImageFilter, itk::Object) | |
virtual bool | FilterImage (cv::Mat &image, int id=INVALID_IMAGE_ID) |
Static Public Member Functions | |
static Pointer | New () |
Protected Attributes | |
cv::Rect | m_CropRegion |
Defines the region which will be cropped from the image. More... | |
bool | m_NewCropRegionSet |
True if no image was filtered since last set of a crop region. More... | |
Protected Attributes inherited from mitk::AbstractOpenCVImageFilter | |
int | m_CurrentImageId |
Additional Inherited Members | |
Static Public Attributes inherited from mitk::AbstractOpenCVImageFilter | |
static int | INVALID_IMAGE_ID |
Protected Member Functions inherited from mitk::AbstractOpenCVImageFilter | |
AbstractOpenCVImageFilter () | |
int | GetCurrentImageId () |
Definition at line 29 of file mitkCropOpenCVImageFilter.h.
mitk::CropOpenCVImageFilter::CropOpenCVImageFilter | ( | ) |
Definition at line 22 of file mitkCropOpenCVImageFilter.cpp.
Pointer mitk::CropOpenCVImageFilter::Clone | ( | ) | const |
cv::Rect mitk::CropOpenCVImageFilter::GetCropRegion | ( | ) |
Returns region, which was set by mitk::CropOpenCVImageFilter::SetCropRegion().
Definition at line 102 of file mitkCropOpenCVImageFilter.cpp.
References m_CropRegion.
bool mitk::CropOpenCVImageFilter::GetIsCropRegionEmpty | ( | ) |
Definition at line 107 of file mitkCropOpenCVImageFilter.cpp.
References m_CropRegion.
mitk::CropOpenCVImageFilter::mitkClassMacro | ( | CropOpenCVImageFilter | , |
AbstractOpenCVImageFilter | |||
) |
|
static |
|
overridevirtual |
Crops image to rectangle given by mitk::CropOpenCVImageFilter::SetCropRegion.
Implements mitk::AbstractOpenCVImageFilter.
Definition at line 27 of file mitkCropOpenCVImageFilter.cpp.
References m_CropRegion, m_NewCropRegionSet, and MITK_WARN.
void mitk::CropOpenCVImageFilter::SetCropRegion | ( | cv::Rect | cropRegion | ) |
Set region of interest for cropping.
Definition at line 72 of file mitkCropOpenCVImageFilter.cpp.
References m_CropRegion, MITK_WARN, and mitkThrow.
Referenced by SetCropRegion().
void mitk::CropOpenCVImageFilter::SetCropRegion | ( | int | topLeftX, |
int | topLeftY, | ||
int | bottomRightX, | ||
int | bottomRightY | ||
) |
Set region of interest for cropping.
Definition at line 97 of file mitkCropOpenCVImageFilter.cpp.
References SetCropRegion().
|
protected |
Defines the region which will be cropped from the image.
Definition at line 69 of file mitkCropOpenCVImageFilter.h.
Referenced by GetCropRegion(), GetIsCropRegionEmpty(), OnFilterImage(), and SetCropRegion().
|
protected |
True if no image was filtered since last set of a crop region.
Definition at line 74 of file mitkCropOpenCVImageFilter.h.
Referenced by OnFilterImage().