traits for Affine3

pull/2173/head
Anatoly Baksheev 11 years ago
parent cd57c4e189
commit 7b28f730f4
  1. 18
      modules/core/include/opencv2/core/affine.hpp

@ -134,8 +134,24 @@ namespace cv
static cv::Vec3f operator*(const cv::Affine3f& affine, const cv::Vec3f& vector); static cv::Vec3f operator*(const cv::Affine3f& affine, const cv::Vec3f& vector);
static cv::Vec3d operator*(const cv::Affine3d& affine, const cv::Vec3d& vector); static cv::Vec3d operator*(const cv::Affine3d& affine, const cv::Vec3d& vector);
}
template<typename _Tp> class DataType< Affine3<_Tp> >
{
public:
typedef Affine3<_Tp> value_type;
typedef Affine3<typename DataType<_Tp>::work_type> work_type;
typedef _Tp channel_type;
enum { generic_type = 0,
depth = DataType<channel_type>::depth,
channels = 16,
fmt = DataType<channel_type>::fmt + ((channels - 1) << 8),
type = CV_MAKETYPE(depth, channels)
};
typedef Vec<channel_type, channels> vec_type;
};
}
/////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////

Loading…
Cancel
Save