A pseudo-filter for creating OpenCV images from MITK images with the option of copying data or referencing it.
More...
#include <mitkImageToOpenCVImageFilter.h>
A pseudo-filter for creating OpenCV images from MITK images with the option of copying data or referencing it.
Definition at line 31 of file mitkImageToOpenCVImageFilter.h.
◆ DoubleRGBPixelType
◆ FloatRGBPixelType
◆ UCRGBPixelType
◆ USRGBPixelType
◆ ImageToOpenCVImageFilter()
mitk::ImageToOpenCVImageFilter::ImageToOpenCVImageFilter |
( |
| ) |
|
|
protected |
◆ ~ImageToOpenCVImageFilter()
mitk::ImageToOpenCVImageFilter::~ImageToOpenCVImageFilter |
( |
| ) |
|
|
overrideprotected |
◆ CheckImage()
bool mitk::ImageToOpenCVImageFilter::CheckImage |
( |
mitk::Image * |
image | ) |
|
◆ Clone()
Pointer mitk::ImageToOpenCVImageFilter::Clone |
( |
| ) |
const |
◆ GetImage()
mitk::Image* mitk::ImageToOpenCVImageFilter::GetImage |
( |
| ) |
|
◆ GetOpenCVMat()
cv::Mat mitk::ImageToOpenCVImageFilter::GetOpenCVMat |
( |
| ) |
|
RUNS the conversion and returns the produced image as cv::Mat.
- Returns
- the produced OpenCVImage or an empty image if an error occured
◆ ItkImageProcessing()
template<typename TPixel , unsigned int VImageDimension>
void mitk::ImageToOpenCVImageFilter::ItkImageProcessing |
( |
itk::Image< TPixel, VImageDimension > * |
image | ) |
|
|
protected |
the actual templated conversion method
◆ mitkClassMacroItkParent()
◆ New()
static Pointer mitk::ImageToOpenCVImageFilter::New |
( |
| ) |
|
|
static |
◆ SetImage()
void mitk::ImageToOpenCVImageFilter::SetImage |
( |
mitk::Image * |
_Image | ) |
|
◆ SetInputFromTimeSlice()
void mitk::ImageToOpenCVImageFilter::SetInputFromTimeSlice |
( |
Image::Pointer |
mitkImage, |
|
|
int |
timeStep, |
|
|
int |
slice |
|
) |
| |
Convenient method to set a certain slice of a 3D or 4D mitk::Image as input to convert it to an openCV image.
This methods sets the input. Call GetOpenCVMat() to get the image.
- Parameters
-
mitkImage | - the image that should be converted to an openCVImage |
timeStep | - the time step, which is converted to openCV |
slice | - the slice which is converted to openCV |
◆ m_Image
◆ m_OpenCVImage
cv::Mat mitk::ImageToOpenCVImageFilter::m_OpenCVImage |
|
protected |
The documentation for this class was generated from the following file: