opencv test

This commit is contained in:
2026-04-29 03:57:50 -05:00
parent 4f43389d62
commit fc9817c379

View File

@@ -103,9 +103,9 @@ void Rubiks::run() {
for( int y=0; y<1080; y++ ) for( int x=0; x<1920; x++ ) {
cv_pixels.at<cv::Vec3b>(y,x)[2] = f.at<cv::Vec3b>(height-y-1,x)[0];
cv_pixels.at<cv::Vec3b>(y,x)[1] = f.at<cv::Vec3b>(height-y-1,x)[1];
cv_pixels.at<cv::Vec3b>(y,x)[0] = f.at<cv::Vec3b>(height-y-1,x)[2];
cv_pixels.at<cv::Vec3b>(y,x)[2] = f.at<cv::Vec3b>(1080-y-1,x)[0];
cv_pixels.at<cv::Vec3b>(y,x)[1] = f.at<cv::Vec3b>(1080-y-1,x)[1];
cv_pixels.at<cv::Vec3b>(y,x)[0] = f.at<cv::Vec3b>(1080-y-1,x)[2];
}
video << cv_pixels;