| 374 | } |
| 375 | |
| 376 | double ShapeWidth(const Shape& shape) // width of shape in pixels |
| 377 | { |
| 378 | CV_Assert(shape.rows > 1); |
| 379 | double xmin, xmax, ymin, ymax; |
| 380 | ShapeMinMax(xmin, xmax, ymin, ymax, shape); |
| 381 | return ABS(xmax - xmin); |
| 382 | } |
| 383 | |
| 384 | double ShapeHeight(const Shape& shape) // height of shape in pixels |
| 385 | { |
no test coverage detected