Make imgproc.hpp independent from C API
This commit is contained in:
@@ -296,8 +296,8 @@ void App::run()
|
||||
workBegin();
|
||||
|
||||
// Change format of the image
|
||||
if (make_gray) cvtColor(frame, img_aux, CV_BGR2GRAY);
|
||||
else if (use_gpu) cvtColor(frame, img_aux, CV_BGR2BGRA);
|
||||
if (make_gray) cvtColor(frame, img_aux, COLOR_BGR2GRAY);
|
||||
else if (use_gpu) cvtColor(frame, img_aux, COLOR_BGR2BGRA);
|
||||
else frame.copyTo(img_aux);
|
||||
|
||||
// Resize image
|
||||
@@ -351,8 +351,8 @@ void App::run()
|
||||
throw std::runtime_error("can't create video writer");
|
||||
}
|
||||
|
||||
if (make_gray) cvtColor(img_to_show, img, CV_GRAY2BGR);
|
||||
else cvtColor(img_to_show, img, CV_BGRA2BGR);
|
||||
if (make_gray) cvtColor(img_to_show, img, COLOR_GRAY2BGR);
|
||||
else cvtColor(img_to_show, img, COLOR_BGRA2BGR);
|
||||
|
||||
video_writer << img;
|
||||
}
|
||||
|
Reference in New Issue
Block a user