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
xfloatLa coordonnée X du coin supérieur gauche du rectangle.
yfloatLa coordonnée Y du coin supérieur gauche du rectangle.
widthfloatLa largeur du rectangle.
heightfloatLa hauteur du rectangle.
Properties
Height
Obtient ou définit la hauteur du rectangle.
public float Height { get; set; }
Property Value
Width
Obtient ou définit la largeur du rectangle.
public float Width { get; set; }
Property Value
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.