MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / ShapeHeight

Function ShapeHeight

jni/stasm/misc.cpp:384–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

382}
383
384double ShapeHeight(const Shape& shape) // height of shape in pixels
385{
386 CV_Assert(shape.rows > 1);
387 double xmin, xmax, ymin, ymax;
388 ShapeMinMax(xmin, xmax, ymin, ymax, shape);
389 return ABS(ymax - ymin);
390}
391
392// Jitter points at 0,0 if any. We do this because if both x and y coords
393// of a point are zero, Stasm takes that to mean that the point is unused.

Callers 2

EyeMouthDistFunction · 0.85
InterEyeDistFunction · 0.85

Calls 2

ShapeMinMaxFunction · 0.85
ABSFunction · 0.85

Tested by

no test coverage detected