| 382 | } |
| 383 | |
| 384 | double 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. |
no test coverage detected