Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You should skip frames before you pass frameSource to srobj:

Ptr<FrameSource> frameSource = createFrameSource_Video("video.mpg");
Mat frame;
for(int i = 0; i < skip; ++i)
{
    frameSource->nextFrame(frame);
}

Ptr<SuperResolution> srobj = createSuperResolution_BTVL1();
srobj->setInput(frameSource);