Basic video navigation controls.
This commit is contained in:
parent
8dde87d40b
commit
ff39c9fc95
@ -94,7 +94,7 @@ public:
|
|||||||
cv::Mat targetFrame=get_frame(video,std::clamp(int(frameView),0,int(video.get(cv::CAP_PROP_FRAME_COUNT))));
|
cv::Mat targetFrame=get_frame(video,std::clamp(int(frameView),0,int(video.get(cv::CAP_PROP_FRAME_COUNT))));
|
||||||
for(int y=0;y<targetFrame.rows;y++){
|
for(int y=0;y<targetFrame.rows;y++){
|
||||||
for(int x=0;x<targetFrame.cols;x++){
|
for(int x=0;x<targetFrame.cols;x++){
|
||||||
cv::Vec3b col=targetFrame.at<cv::Vec3b>(cv::Point{x,y});
|
cv::Vec3b col=targetFrame.at<cv::Vec3b>(y,x);
|
||||||
Draw(x,y,{col[2],col[1],col[0]});
|
Draw(x,y,{col[2],col[1],col[0]});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user