18 #ifndef itkOpenCVBasicTypeBridge_h 19 #define itkOpenCVBasicTypeBridge_h 30 template<
typename TITKData,
typename TOpenCVData >
34 template<
typename TPo
int >
52 return OpenCVDataType( iP[0], iP[1] );
55 #ifdef ITK_USE_CONCEPT_CHECKING 63 template<
typename TPo
int >
82 return OpenCVDataType( iP[0], iP[1], iP[2] );
85 #ifdef ITK_USE_CONCEPT_CHECKING 109 return OpenCVDataType( static_cast< int >( iP[0] ), static_cast< int >( iP[1] ) );
131 return OpenCVDataType( static_cast< int >( iP[0] ), static_cast< int >( iP[1] ), static_cast< int >( iP[2] ) );
152 return OpenCVDataType( static_cast< int >( iP[0] ), static_cast< int >( iP[1] ) );
156 template<
typename T,
unsigned int NRows,
unsigned int NColumns >
176 template<
typename TVector >
185 return ITKDataType( iP.val );
191 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
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
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)