18 #ifndef itkOpenCVBasicTypeBridge_h
19 #define itkOpenCVBasicTypeBridge_h
26 #include "opencv2/core/version.hpp"
27 #if !defined(CV_VERSION_EPOCH)
29 #include "opencv2/core.hpp"
37 template<
typename TITKData,
typename TOpenCVData >
41 template<
typename TPo
int >
62 #ifdef ITK_USE_CONCEPT_CHECKING
70 template<
typename TPo
int >
92 #ifdef ITK_USE_CONCEPT_CHECKING
116 return OpenCVDataType( static_cast< int >( iP[0] ), static_cast< int >( iP[1] ) );
138 return OpenCVDataType( static_cast< int >( iP[0] ), static_cast< int >( iP[1] ), static_cast< int >( iP[2] ) );
159 return OpenCVDataType( static_cast< int >( iP[0] ), static_cast< int >( iP[1] ) );
163 template<
typename T,
unsigned int NRows,
unsigned int NColumns >
183 template<
typename TVector >
198 std::copy( iP.Begin(), iP.End(), oM.val );
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
A templated class holding a M x N size Matrix.
Represent the size (bounds) of a n-dimensional image.
itk::Matrix< T, NRows, NColumns > ITKDataType
signed long IndexValueType
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
vnl_matrix_fixed< T, NRows, NColumns > InternalMatrixType
TPoint::CoordRepType CoordinateType
itk::Index< 2 > ITKDataType
TPoint::CoordRepType CoordinateType
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
unsigned long SizeValueType
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
itk::Size< 2 > ITKDataType
cv::Point3_< CoordinateType > OpenCVDataType
cv::Matx< T, NRows, NColumns > OpenCVDataType
cv::Point_< CoordinateType > OpenCVDataType
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
cv::Point3i OpenCVDataType
InternalMatrixType & GetVnlMatrix(void)
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
itk::Index< 3 > ITKDataType
TVector::ValueType ValueType
cv::Vec< ValueType, TVector::Dimension > OpenCVDataType
#define itkConceptMacro(name, concept)
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
Represent a n-dimensional index in a n-dimensional image.
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)