Ask Your Question

sbaush's profile - activity

2020-07-03 03:54:16 -0600 received badge  Notable Question (source)
2018-08-14 13:11:51 -0600 received badge  Popular Question (source)
2016-05-31 03:08:29 -0600 asked a question Template matching optimization (matchTemplate)

I'm writing an algorithm that uses template matching function provided by OpenCV. I'm interested in normalized cross-correlation (NCC) method.

I noticed that the performance of the OpenCV algorithm is not so good as I expected.

I read "OpenCV performance on template matching" on stackoverflow (http://stackoverflow.com/questions/71...), in particular the Chris's answer that is very deep and interesting.

I also read a lot of paper about new techniques that perform NCC template matching faster than FFT/DFT.

Is in your opinion the machTemplate function implemented in OpenCV library the best implementation in terms of performance?

What is in your opinion the best paper that I have to use to re-implement a the template mathing function in a faster way? (or do you know if it is available a faster implementation?)

I tested also pyramidal approaches, but I'm interested in template matching without resize.

2015-03-02 09:41:24 -0600 received badge  Supporter (source)
2014-09-12 08:26:50 -0600 received badge  Editor (source)
2014-09-12 08:25:41 -0600 asked a question Calculate convexHull area

Hi all, I'm writing a simple algorithm to extract features from simple objects.

I want to calculate the solidity of an object using this formula: Solidity = Area / AreaConvexHull

Here is a sample of my code:

vector<Point> points;
vector<int> hull;
convexHull(Mat(points), hull, true);
double area = contourArea(points);
double areaConvexHull = /* ??? */
double solidity = area / areaConvexHull;

How can I calculate the convexHull area in your opinion?