Super resolution outputs blank green frames.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Super resolution outputs blank green frames.

opencv-users mailing list
 I am trying to do super-resolution using OpenCV 2.4.10.
Below is the relevant super-resolution part of the code.


     for(int i = 0; i < SKIP; ++i)
    {
        frame_source->nextFrame(frame);
    }
    super_res->setInput(frame_source);
    cv::VideoWriter writer;

    std::cout<<"starting SR"<<std::endl;
    for(int i=0;;++i){
        std::cout<<"processing frame :"<<i<<std::endl;
        cv::Mat result;
        super_res->nextFrame(result);
        if(result.empty())break;
        if (!writer.isOpened())
                writer.open(output_video_name, CV_FOURCC('X', 'V', 'I',
'D'), 25.0, result.size());
        writer << result;
    }

While the program executes error free, in the output all i am getting are
blank green frames. Could anybody point me as why that is happening?

regards,
D.Patel
Loading...