Ask Your Question

Yoanis Gil's profile - activity

2018-05-08 08:36:31 -0600 marked best answer How to de-interlace a frame

I was just wondering what would be the right way to deinterlace images coming from a video (interlace one of course). My code sort of looks like this:

VideoCapture cap("video.mp4",  cv::CAP_FFMPEG); // open the default camera
if(!cap.isOpened())  // check if we succeeded
    return -1;

for(;;)
{
    Mat frame;
    cap >> frame; // get a new frame from camera
    imshow("frame", frame);
    if(waitKey(30) >= 0) break;
}
// the camera will be deinitialized automatically in VideoCapture destructor
return 0;

but now I'm not entirely sure how to run the algorithm to de-interlace any given frame. Any ideas?

2018-05-04 18:06:52 -0600 asked a question How to de-interlace a frame

How to de-interlace a frame I was just wondering what would be the right way to deinterlace images coming from a video (