peterbraden/node-opencv — pull request #108 by ytham (2014-03-01 07:22:17+00:00)
Title: Add matchTemplate and minMaxLoc for template matching

Added matchTemplate and minMaxLoc functions for template matching to Matrix.

Usage is slightly different in this case and conforms more closely to what we'd expect to see in Javascript.

matchTemplate:
outMat = inMat.matchTemplate("filename.ext", optionalArg);
Output is a cv::Mat of match intensity.

minMaxLoc:
result = matchMat.minMaxLoc();
result is an object of the form:
{
minVal: int,
maxVal: int,
minLoc: {
x: int,
y: int
},
maxLoc: {
x: int,
y: int
},
}