Struct PointsAnnotation¶
Defined in File schemas.hpp
Struct Documentation¶
-
struct PointsAnnotation¶
An array of points on a 2D image.
Public Types
-
enum class PointsAnnotationType : uint8_t¶
Type of points annotation.
Values:
-
enumerator UNKNOWN¶
Unknown points annotation type.
-
enumerator POINTS¶
Individual points: 0, 1, 2, …
-
enumerator LINE_LOOP¶
Closed polygon: 0-1, 1-2, …, (n-1)-n, n-0.
-
enumerator LINE_STRIP¶
Connected line segments: 0-1, 1-2, …, (n-1)-n.
-
enumerator LINE_LIST¶
Individual line segments: 0-1, 2-3, 4-5, …
-
enumerator UNKNOWN¶
Public Members
-
PointsAnnotationType type¶
Type of points annotation to draw.
-
std::vector<Point2> points¶
Points in 2D image coordinates (pixels).
These coordinates use the top-left corner of the top-left pixel of the image as the origin.
-
std::vector<Color> outline_colors¶
Per-point colors, if
type
isPOINTS
, or per-segment stroke colors, iftype
isLINE_LIST
,LINE_STRIP
orLINE_LOOP
.
-
double thickness = 0¶
Stroke thickness in pixels.
-
enum class PointsAnnotationType : uint8_t¶