SegmentInfo<T>

Models & Types · AiDotNet.ComputerVision.Segmentation.Common

Metadata for a single segment in panoptic/instance output.

Constructors

Constructor Summary
SegmentInfo()

Properties

Property Summary
T Score { get; set; } Confidence score in [0, 1].
T[] BoundingBox { get; set; } Bounding box [x1, y1, x2, y2] in pixel coordinates (for thing segments).
ValueTuple<T, T>? Centroid { get; set; } Centroid (x, y) of the segment.
bool IsThing { get; set; } Whether this is a “thing” (true) or “stuff” (false) segment.
int Area { get; set; } Area of this segment in pixels.
int ClassId { get; set; } Class ID of this segment.
int Id { get; set; } Unique segment ID.
string ClassName { get; set; } Class name (if available).