Class SAMAnnotationPoint

Namespace
NT2I.ONNX.Abstractions
Assembly
NT2I.ONNX.Abstractions.dll

Représente un point d'annotation (prompt) pour le modèle SAM, avec des coordonnées et un label.

public class SAMAnnotationPoint : ISAMAnnotationPoint
Inheritance
SAMAnnotationPoint
Implements
Derived
Inherited Members

Constructors

SAMAnnotationPoint(AnnotationLabelEnum, float, float)

Initialise une nouvelle instance de la classe SAMAnnotationPoint.

public SAMAnnotationPoint(AnnotationLabelEnum label, float x, float y)

Parameters

label AnnotationLabelEnum

Le label du point (positif ou négatif).

x float

La coordonnée X du point.

y float

La coordonnée Y du point.

Properties

Label

Obtient le label du point (positif/avant-plan ou négatif/arrière-plan).

public AnnotationLabelEnum Label { get; }

Property Value

AnnotationLabelEnum

X

Obtient ou définit la coordonnée X du point.

public float X { get; set; }

Property Value

float

Y

Obtient ou définit la coordonnée Y du point.

public float Y { get; set; }

Property Value

float

Methods

ToString()

Retourne une représentation sous forme de chaîne de caractères de l'objet.

public override string ToString()

Returns

string

Une chaîne représentant les propriétés du point.