Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I don't see a factory cv.CV_SORT_ASK in this format. You can loop arr.size() and push arr.get(i) to a standard array. Then arr.sort() on multiple factors.

Sort x/y coordinate on a generalized grid unit, i.e. 25%, 50%, to allow minor pixel differences. Also, perceptually, a second centroid 3% to the right but 300% larger could be promoted.