From fd06680d815fbdd06316e3da6ac4c8641618de1f Mon Sep 17 00:00:00 2001 From: Aron Rubin Date: Tue, 12 Dec 2017 21:23:47 -0500 Subject: [PATCH] Fixed type passing to opencv to use basic instead of aggregate. (#1010) * Fixed type passing to opencv to use basic instead of aggregate. * Change tabs to spaces. --- dlib/opencv/to_open_cv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlib/opencv/to_open_cv.h b/dlib/opencv/to_open_cv.h index f5756f159..02b7bf6fc 100644 --- a/dlib/opencv/to_open_cv.h +++ b/dlib/opencv/to_open_cv.h @@ -24,9 +24,10 @@ namespace dlib return cv::Mat(); typedef typename image_traits::pixel_type type; + typedef typename pixel_traits::basic_pixel_type basic_pixel_type; if (pixel_traits::num == 1) { - return cv::Mat(num_rows(img), num_columns(img), cv::DataType::type, image_data(img), width_step(img)); + return cv::Mat(num_rows(img), num_columns(img), cv::DataType::type, image_data(img), width_step(img)); } else {