Note that there are some explanatory texts on larger screens.

plurals
  1. PODoes Bruteforce matching work with FREAK descriptors?
    primarykey
    data
    text
    <p>I've been making an application on the smartphone for Android, where 2 images can be compared (one on the SD card, one from the camera). There I use a FREAK descriptor on a limited amount of keypoints (i filtered out the 500 best ones according to the response). When I try to match it with BRUTEFORCE_SL2, it gives back 0 matches.</p> <p>Is this because FREAK and Bruteforce don't work well together? Or did I do something wrong in the code?</p> <p>Matching happens with</p> <pre><code>MatOfDMatch matches = new MatOfDMatch(); matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_SL2); matcher.match(descriptors,descriptors1,matches); MatOfDMatch goedematches = new MatOfDMatch(); double max_dist = 0; double min_dist = 100; //if (descriptors.cols() == descriptors1.cols()) //{ for( int i = 0; i &lt; descriptors.rows(); i++ ) { double dist = matches.toArray()[i].distance; if( dist &lt; min_dist ) min_dist = dist; if( dist &gt; max_dist ) max_dist = dist; } // should only draw good matches for( int i = 0; i &lt; descriptors.rows(); i++ ) { MatOfDMatch temp = new MatOfDMatch(); if( matches.toArray()[i].distance &lt; 3*min_dist ) { temp.fromArray(matches.toArray()[i]); goedematches.push_back(temp); } // } } Log.d("LOG!", "Number of good matches= " + goedematches.size()); </code></pre> <p>When I just do the </p> <pre><code>matcher.match(descriptors,descriptors1,matches); </code></pre> <p>and read out the matches with</p> <pre><code>Log.d("LOG!", "Number of good matches= " + matches.size()); </code></pre> <p>I get about 450 even if I take a picture of something that doesn't even look like my image.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload