diff --git a/tools/dataset/record.cc b/tools/dataset/record.cc index 1c7d397..4a4276d 100644 --- a/tools/dataset/record.cc +++ b/tools/dataset/record.cc @@ -106,10 +106,10 @@ int main(int argc, char *argv[]) { cv::Mat left_img( left_frame->height(), left_frame->width(), CV_8UC3, left_frame->data()); - cv::cvtColor(left_img, left_img, CV_BGR2RGB); cv::Mat right_img( right_frame->height(), right_frame->width(), CV_8UC3, right_frame->data()); + cv::cvtColor(left_img, left_img, CV_BGR2RGB); cv::cvtColor(right_img, right_img, CV_BGR2RGB); cv::hconcat(left_img, right_img, img); } else {