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>
64 #ifdef ITK_USE_CONCEPT_CHECKING
70 template <
typename TPo
int>
94 #ifdef ITK_USE_CONCEPT_CHECKING
110 oP[0] = static_cast<itk::IndexValueType>(iP.x);
111 oP[1] = static_cast<itk::IndexValueType>(iP.y);
116 static OpenCVDataType
119 return OpenCVDataType(static_cast<int>(iP[0]), static_cast<int>(iP[1]));
133 oP[0] = static_cast<itk::IndexValueType>(iP.x);
134 oP[1] = static_cast<itk::IndexValueType>(iP.y);
135 oP[2] = static_cast<itk::IndexValueType>(iP.z);
140 static OpenCVDataType
143 return OpenCVDataType(static_cast<int>(iP[0]), static_cast<int>(iP[1]), static_cast<int>(iP[2]));
157 oP[0] = static_cast<itk::SizeValueType>(iP.width);
158 oP[1] = static_cast<itk::SizeValueType>(iP.height);
163 static OpenCVDataType
166 return OpenCVDataType(static_cast<int>(iP[0]), static_cast<int>(iP[1]));
170 template <
typename T,
unsigned int VRows,
unsigned int VColumns>
182 static OpenCVDataType
191 template <
typename TVector>
204 static OpenCVDataType
208 std::copy(iP.Begin(), iP.End(), oM.val);