17 #ifndef mitkOpenCVToMitkImageFilter_h
18 #define mitkOpenCVToMitkImageFilter_h
21 #include <MitkOpenCVVideoSupportExports.h>
27 #include <itkFastMutexLock.h>
50 template <
typename TPixel,
unsigned int VImageDimension>
51 static Image::Pointer ConvertCVMatToMitkImage(
const cv::Mat input);
54 itkFactorylessNewMacro(
Self)
60 void SetOpenCVImage(const IplImage* image);
66 void SetOpenCVMat(const
cv::Mat& image);
67 itkGetMacro(OpenCVMat,
cv::Mat);
80 void InsertOpenCVImageAsMitkTimeSlice(const
cv::Mat openCVImage,
Image::
Pointer mitkImage,
int timeStep);
85 virtual ~OpenCVToMitkImageFilter();
87 virtual
void GenerateData() override;
99 #endif // mitkOpenCVToMitkImageFilter_h
Superclass of all classes generating Images (instances of class Image) as output. ...
itk::RGBPixel< float > FloatRGBPixelType
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
itk::RGBPixel< double > DoubleRGBPixelType
itk::RGBPixel< unsigned char > UCRGBPixelType
#define mitkClassMacro(className, SuperClassName)
Filter for creating MITK RGB Images from an OpenCV image.
Image class for storing images.
itk::RGBPixel< unsigned short > USRGBPixelType