MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkOpenCVMitkConversionTest.cpp File Reference
#include "mitkImageToOpenCVImageFilter.h"
#include "mitkOpenCVToMitkImageFilter.h"
#include <mitkTestingMacros.h>
#include <mitkITKImageImport.h>
#include <mitkImageAccessByItk.h>
#include <mitkIOUtil.h>
#include "mitkImageReadAccessor.h"
#include "mitkImageSliceSelector.h"
#include <itkRGBPixel.h>
#include <iostream>

Go to the source code of this file.

Typedefs

typedef itk::RGBPixel< unsigned char > TestUCRGBPixelType
 

Functions

template<typename TPixel , unsigned int VImageDimension>
void ComparePixels (itk::Image< itk::RGBPixel< TPixel >, VImageDimension > *image)
 
void ReadImageDataAndConvertForthAndBack (std::string imageFileName)
 
void ConvertCVMatForthAndBack (mitk::Image::Pointer inputForCVMat, std::string imageFileName)
 
int mitkOpenCVMitkConversionTest (int argc, char *argv[])
 

Variables

cv::Size testImageSize
 
cv::Point pos1
 
cv::Point pos2
 
cv::Point pos3
 
cv::Vec3b color1
 
cv::Vec3b color2
 
cv::Vec3b color3
 
uchar greyValue1
 
uchar greyValue2
 
uchar greyValue3
 

Typedef Documentation

◆ TestUCRGBPixelType

typedef itk::RGBPixel< unsigned char > TestUCRGBPixelType

Definition at line 29 of file mitkOpenCVMitkConversionTest.cpp.

Function Documentation

◆ ComparePixels()

template<typename TPixel , unsigned int VImageDimension>
void ComparePixels ( itk::Image< itk::RGBPixel< TPixel >, VImageDimension > * image)

Documentation Test for image conversion of OpenCV images and mitk::Images. It tests the classes OpenCVToMitkImageFilter and ImageToOpenCVImageFilter

Definition at line 129 of file mitkOpenCVMitkConversionTest.cpp.

◆ ConvertCVMatForthAndBack()

void ConvertCVMatForthAndBack ( mitk::Image::Pointer inputForCVMat,
std::string imageFileName )

Definition at line 200 of file mitkOpenCVMitkConversionTest.cpp.

◆ mitkOpenCVMitkConversionTest()

int mitkOpenCVMitkConversionTest ( int argc,
char * argv[] )

Definition at line 60 of file mitkOpenCVMitkConversionTest.cpp.

◆ ReadImageDataAndConvertForthAndBack()

void ReadImageDataAndConvertForthAndBack ( std::string imageFileName)

Definition at line 166 of file mitkOpenCVMitkConversionTest.cpp.

Variable Documentation

◆ color1

cv::Vec3b color1

Definition at line 37 of file mitkOpenCVMitkConversionTest.cpp.

◆ color2

cv::Vec3b color2

Definition at line 38 of file mitkOpenCVMitkConversionTest.cpp.

◆ color3

cv::Vec3b color3

Definition at line 39 of file mitkOpenCVMitkConversionTest.cpp.

◆ greyValue1

uchar greyValue1

Definition at line 41 of file mitkOpenCVMitkConversionTest.cpp.

◆ greyValue2

uchar greyValue2

Definition at line 42 of file mitkOpenCVMitkConversionTest.cpp.

◆ greyValue3

uchar greyValue3

Definition at line 43 of file mitkOpenCVMitkConversionTest.cpp.

◆ pos1

cv::Point pos1

Definition at line 33 of file mitkOpenCVMitkConversionTest.cpp.

◆ pos2

cv::Point pos2

Definition at line 34 of file mitkOpenCVMitkConversionTest.cpp.

◆ pos3

cv::Point pos3

Definition at line 35 of file mitkOpenCVMitkConversionTest.cpp.

◆ testImageSize

cv::Size testImageSize

Definition at line 31 of file mitkOpenCVMitkConversionTest.cpp.