Struct RotatedRect
Defined in File RotatedRect.hpp
Struct Documentation
-
struct RotatedRect
RotatedRect structure.
Public Functions
-
RotatedRect() = default
-
inline bool isNormalized() const
-
inline RotatedRect normalize(unsigned int width, unsigned int height) const
Normalize the rotated rectangle. The normalized rectangle will have center and size coordinates in range [0,1]
- Returns:
Normalized rotated rectangle
-
inline RotatedRect denormalize(unsigned int width, unsigned int height, bool force = false) const
Denormalize the rotated rectangle. The denormalized rectangle will have center and size coordinates in range [0, width] and [0, height]
- Returns:
Denormalized rotated rectangle
-
inline std::array<dai::Point2f, 4> getPoints() const
Get the 4 corner points of the rotated rectangle
- Returns:
4 corner points
-
inline std::array<float, 4> getOuterRect() const
Returns the outer non-rotated rectangle
- Returns:
[minx, miny, maxx, maxy]
-
RotatedRect() = default