|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Region MayaFlux::Kakshya::normalised_points_tight_region | ( | std::span< const glm::vec2 > | points, |
| uint32_t | pixel_w, | ||
| uint32_t | pixel_h | ||
| ) |
Compute the tight pixel-space Region enclosing a set of normalised points.
Iterates points to find the axis-aligned bounding box in normalised image space, then delegates to normalised_rect_to_region. Coordinate convention is identical: origin top-left, +Y downward, output inclusive pixel integers as { y0, x0 } / { y1, x1 }.
Returns a zero-area Region at { 0, 0 } / { 0, 0 } if points is empty.
| points | Normalised image-space points in [0, 1] x [0, 1]. |
| pixel_w | Source image width in pixels. |
| pixel_h | Source image height in pixels. |
Definition at line 392 of file CoordUtils.cpp.
References normalised_rect_to_region(), and points.
Here is the call graph for this function: