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.
typename TPoint::CoordRepType CoordinateType
Represent a n-dimensional index in a n-dimensional image.
unsigned long SizeValueType
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
cv::Vec< ValueType, TVector::Dimension > OpenCVDataType
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
typename TPoint::CoordRepType CoordinateType
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
cv::Point3i OpenCVDataType
signed long IndexValueType
Represent a n-dimensional size (bounds) of a n-dimensional image.
cv::Matx< T, NRows, NColumns > OpenCVDataType
cv::Point_< CoordinateType > OpenCVDataType
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
typename TVector::ValueType ValueType
InternalMatrixType & GetVnlMatrix()
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
#define itkConceptMacro(name, concept)
static OpenCVDataType FromITKToOpenCV(const ITKDataType &iP)
vnl_matrix_fixed< T, NRows, NColumns > InternalMatrixType
static ITKDataType FromOpenCVToITK(const OpenCVDataType &iP)
cv::Point3_< CoordinateType > OpenCVDataType