util: change RGBA to RGB 50/285250/2
authorTae-Young Chung <ty83.chung@samsung.com>
Thu, 8 Dec 2022 05:59:56 +0000 (14:59 +0900)
committerTae-Young Chung <ty83.chung@samsung.com>
Fri, 9 Dec 2022 00:10:12 +0000 (09:10 +0900)
[Issue type] update

RGB colorspace is used in mediavision testsuite. It has to be
changed to RGBA to use visualizer utility. With this commit,
RGB can be used without changing color space.

Change-Id: I3e15bf0457414f4a2bf27990f954dea73c9e2abc
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
test/testsuites/common/visualizer/src/mv_util_visualizer_2d.cpp

index 0b69bf82a7eaee9460dc89b1705297c50d65fc8b..9be4bb548c50e53206b6874f600e9d8d5415762f 100644 (file)
@@ -42,8 +42,8 @@ public:
 
                cv::Mat _frame, frame;
 
-               _frame = cv::Mat(cv::Size(width, height), CV_8UC4, buffer);
-               cv::cvtColor(_frame, frame, cv::COLOR_RGBA2BGR);
+               _frame = cv::Mat(cv::Size(width, height), CV_8UC3, buffer);
+               cv::cvtColor(_frame, frame, cv::COLOR_RGB2BGR);
 
                std::vector<int> qualityType;
                std::vector<uchar> buff;