Ask Your Question

AmosZhu's profile - activity

2015-07-20 08:01:24 -0600 asked a question opencv_contrib + opencv 3 using xfeature::SURF unexpeted handle 0xc0000005

I am working in the VS2013 with C++. Every time I call the function xfeature::SURF::create(), I will get crush. image description

#include <opencv2/features2d.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/xfeatures2d/nonfree.hpp>


int main(int argc, char* argv[])
{

    cv::Mat image = cv::imread("1.jpg", cv::IMREAD_GRAYSCALE);
    std::vector<cv::KeyPoint> keyPoints;
    cv::Mat descriptor;
    //cv::imshow("demo",image);
    cv::Ptr<cv::xfeatures2d::SURF> surf = cv::xfeatures2d::SURF::create();
    //surf->detectAndCompute(image.getUMat(cv::ACCESS_READ), 0, keyPoints, descriptor);

    return 0;
}
2015-06-14 00:28:44 -0600 asked a question Use resize to shrink image cause problem

When I use cv::resize to shrink a size of 1200800 image to 350400, the output image become gray and incline.

But if I shrink to size 200*100, or other size whenever width<300 the image is fine. How to solve such problem, cheers.