Class SAMAnnotationRectangle

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

Représente une annotation de type rectangle (prompt) pour le modèle SAM.

public class SAMAnnotationRectangle : SAMAnnotationPoint, ISAMAnnotationRectangle, ISAMAnnotationPoint
Inheritance
SAMAnnotationRectangle
Implements
Inherited Members

Constructors

SAMAnnotationRectangle(float, float, float, float)

Initialise une nouvelle instance de la classe SAMAnnotationRectangle.

public SAMAnnotationRectangle(float x, float y, float width, float height)

Parameters

x float

La coordonnée X du coin supérieur gauche du rectangle.

y float

La coordonnée Y du coin supérieur gauche du rectangle.

width float

La largeur du rectangle.

height float

La hauteur du rectangle.

Properties

Height

Obtient ou définit la hauteur du rectangle.

public float Height { get; set; }

Property Value

float

Width

Obtient ou définit la largeur du rectangle.

public float Width { 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 rectangle.