9 #ifndef YARP_CV_CV_INL_H
10 #define YARP_CV_CV_INL_H
81 yarpImage.getRawImage(), yarpImage.getRowSize());
82 if (convert_code_to_cv<T>::value >= 0)
84 ::cv::cvtColor(outMat, outMat, convert_code_to_cv<T>::value);
93 constexpr
size_t align_8_bytes = 8;
94 constexpr
size_t align_4_bytes = 4;
104 if (cvImage.step % align_8_bytes == 0) {
105 outImg.setQuantum(align_8_bytes);
107 else if (cvImage.step % align_4_bytes == 0) {
108 outImg.setQuantum(align_4_bytes);
110 outImg.setExternal(cvImage.data, cvImage.cols, cvImage.rows);
114 #endif // YARP_CV_CV_INL_H