Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Can the screenshot or icon be transformed (scaled, rotated, skewed ...)? There are quite a few methods on top of my head that could possibly help you:</p> <ul> <li><strong>Simple euclidean distance</strong> as mentioned by @carlosdc (doesn't work with transformed images and you need a threshold).</li> <li><strong><a href="http://en.wikipedia.org/wiki/Cross-correlation" rel="noreferrer">(Normalized) Cross Correlation</a></strong> - a simple metrics which you can use for comparison of image areas. It's more robust than the simple euclidean distance but doesn't work on transformed images and you will again need a threshold.</li> <li><strong>Histogram comparison</strong> - if you use normalized histograms, this method works well and is not affected by affine transforms. The problem is determining the correct threshold. It is also very sensitive to color changes (brightness, contrast etc.). You can combine it with the previous two.</li> <li><strong>Detectors of salient points/areas</strong> - such as <a href="http://en.wikipedia.org/wiki/Maximally_stable_extremal_regions" rel="noreferrer">MSER (Maximally Stable Extremal Regions)</a>, <a href="http://en.wikipedia.org/wiki/SURF" rel="noreferrer">SURF</a> or <a href="http://en.wikipedia.org/wiki/Scale-invariant_feature_transform" rel="noreferrer">SIFT</a>. These are very robust algorithms and they might be too complicated for your simple task. Good thing is that you do not have to have an exact area with only one icon, these detectors are powerful enough to find the right match. A nice evaluation of these methods is in this paper: <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.157.4126&rep=rep1&type=pdf" rel="noreferrer">Local invariant feature detectors: a survey</a>.</li> </ul> <p>Most of these are already implemented in OpenCV - see for example the cvMatchTemplate method (uses histogram matching): <a href="http://dasl.mem.drexel.edu/~noahKuntz/openCVTut6.html" rel="noreferrer">http://dasl.mem.drexel.edu/~noahKuntz/openCVTut6.html</a>. The salient point/area detectors are also available - see <a href="http://opencv.willowgarage.com/documentation/cpp/feature_detection.html" rel="noreferrer">OpenCV Feature Detection</a>.</p>
    singulars
    1. This table or related slice is empty.
    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. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      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