Hi
I have hours-long video and I want to enlarge some frames (of my own choosing) of the video by using super resolution. I'm not interested in processing all the frames (and it'd too slow to process all of them). How can I achieve this?
Note: I've tried the following approach but it doesn't work.
Ptr<SuperResolution> srobj = createSuperResolution_BTVL1();
Ptr<FrameSource> frameSource = createFrameSource_Video("video.mpg");
srobj->setInput(frameSource);
for(;;)
{
if(certain frames)
{
// if certain frame numbers, skip the frame
frameSource->nextFrame(someMatfile);
continue;
}
// perform super resolution
srobj->nextFrame(frame_super);
}
Thanks.