Ask Your Question
0

Superresolution: error superRes->set("opticalFlow", of);

asked 2013-12-03 21:00:15 -0500

we use the opencv sample code : super_resolution.cpp it can run correctly at those codes:

    if (useCuda)
        superRes = createSuperResolution_BTVL1_GPU();
    else
        superRes = createSuperResolution_BTVL1();

    Ptr<DenseOpticalFlowExt> of = createOptFlow(optFlow, useCuda);

    if (of.empty())
        exit(-1);

but, when it run at this line, it got wrong:

  superRes->set("opticalFlow", of);

it refers "error 0xC0000005: access conflict"

how I deal with it? ps: we use CPU mode, thanks

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-24 09:53:30 -0500

conceptgame gravatar image

I supposed that createOptFlow(optFlow, useCuda); is the same function as in the super_resolution.cpp example. Did you try just like this to be sure that there is no mismatch:

Ptr<SuperResolution> superRes = createSuperResolution_BTVL1();
Ptr<DenseOpticalFlowExt> of = cv::superres::createOptFlow_DualTVL1();
superRes->set("opticalFlow", of);

If it still do not work, can you provide the whole error message (access conflict)?

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2013-12-03 21:00:15 -0500

Seen: 231 times

Last updated: Jan 24 '14