Ask Your Question

s093294's profile - activity

2020-09-24 04:38:48 -0600 received badge  Notable Question (source)
2019-02-09 04:22:41 -0600 received badge  Popular Question (source)
2014-10-20 06:12:06 -0600 asked a question Dense Features extraction in Opencv

Is there anyway to extract dense sift/surf features with opencv.

With dense I mean, that in a regular grid of some size, compute features at each vertex.

2014-08-12 13:40:33 -0600 asked a question why do BestOf2NearestMatcher change keypoints position

What is the point of

    Point2f p = features1.keypoints[m.queryIdx].pt;
    p.x -= features1.img_size.width * 0.5f;
    p.y -= features1.img_size.height * 0.5f;
    src_points.at<Point2f>(0, static_cast<int>(i)) = p;

    p = features2.keypoints[m.trainIdx].pt;
    p.x -= features2.img_size.width * 0.5f;
    p.y -= features2.img_size.height * 0.5f;
    dst_points.at<Point2f>(0, static_cast<int>(i)) = p;

in BestOf2NearestMatcher ?

the surf homography example dont seem to do this, but simply uses the points as is.

The reason why i ask is that I see a small ofset (permanent) in warped images if I use the BestOf2NearestMatcher to estimate H, but not if just using the translated points.

I made the following test and was able to verify that the point translations are causing my issues.

    for (size_t i = 0; i < good_matches.size(); i++)
    {
        //-- Get the keypoints from the good matches
        obj.push_back(features1.keypoints[good_matches[i].queryIdx].pt);
        scene.push_back(features2.keypoints[good_matches[i].trainIdx].pt);
        const cv::DMatch& m = good_matches[i];

        cv::Point2f p = features1.keypoints[m.queryIdx].pt;
        p.x -= features1.img_size.width * 0.5f;
        p.y -= features1.img_size.height * 0.5f;
        src_points.at<cv::Point2f>(0, static_cast<int>(i)) = p;

        p = features2.keypoints[m.trainIdx].pt;
        p.x -= features2.img_size.width * 0.5f;
        p.y -= features2.img_size.height * 0.5f;
        dst_points.at<cv::Point2f>(0, static_cast<int>(i)) = p;
    }


    info.H = findHomography(src_points, dst_points, cv::RANSAC); //this is wronge
    info.H = findHomography(obj, scene, cv::RANSAC); //this is correct

I would like to take benefit of the BestOf2NearestMatcher instead of manually finding best matches.

2014-03-14 05:22:14 -0600 received badge  Editor (source)
2014-03-05 08:23:46 -0600 commented question Should add color profile embedder in next version

Any chance that you have some code that can read the IIQ file format to opencv cv::Mat for model IQ180 ?

2014-02-27 03:41:03 -0600 commented question Opening Nikon .NEF raw files in opencv?

Thanks anyhow. Just abit anoyed with it. We are using view NX from nikon right now which is an awesome tool but I need to automate this.

2014-02-27 03:27:00 -0600 commented question Opening Nikon .NEF raw files in opencv?

Thats not the problem. I already tried that and also confirmed that a Red car is actual red. I found out how to tell libraw to use the camera WB, and the image is more truth to its colors, but still to light

2014-02-26 10:20:32 -0600 commented question Opening Nikon .NEF raw files in opencv?
2014-02-26 09:24:29 -0600 commented question Opening Nikon .NEF raw files in opencv?

I just tried libraw outside opencv environement and opened the ppm image it generated from the nef. It have done something to the colors. Will try your link and see if the same results will be present there. If so it must be something in libraw that is manipulating the image.

2014-02-26 08:00:12 -0600 commented question Opening Nikon .NEF raw files in opencv?

http://lclevy.free.fr/nef/index.html (the problem fits with the specs of the 160x120 extra image)

2014-02-26 07:58:33 -0600 asked a question Opening Nikon .NEF raw files in opencv?

I tried to open a .nef file in my opencv application. Everything worked but the image was 160x120 pixels instead of the full size. No errors.

What do it take to open raw .nef files and then use them.

I updated my issues at : http://stackoverflow.com/questions/22355491/libraw-is-making-my-images-too-bright-compared-to-nikons-own-converter