TemplateTrackerTriangle¶
- class TemplateTrackerTriangle(*args, **kwargs)¶
Bases:
pybind11_object
Overloaded function.
__init__(self: visp._visp.tt.TemplateTrackerTriangle) -> None
Default constructor.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, T: visp._visp.tt.TemplateTrackerTriangle) -> None
Copy constructor.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ColVector, c2: visp._visp.core.ColVector, c3: visp._visp.core.ColVector) -> None
Create a triangle from 3 corners.The coordinates of the points are defined as a 2 dimension vector with coordinates (x,y).
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ImagePoint, c2: visp._visp.core.ImagePoint, c3: visp._visp.core.ImagePoint) -> None
Create a triangle from 3 corners defined as image points.
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, x1: int, y1: int, x2: int, y2: int, x3: int, y3: int) -> None
Create a triangle from 3 corners with coordinates (x1,y1), (x2,y2), (x3,y3).
x coordinate is along the columns
y coordinate is along the rows.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, x1: float, y1: float, x2: float, y2: float, x3: float, y3: float) -> None
Create a triangle from 3 corners with coordinates (x1,y1), (x2,y2), (x3,y3).
x coordinate is along the columns
y coordinate is along the rows.
Methods
Overloaded function.
Return the area of the triangle.
Overloaded function.
Overloaded function.
Note
See getMinx()
Note
See getMaxx()
Note
See getMaxx()
Note
See getMaxy()
Return a triangle with coordinates that are down scaled by a factor 2.
Overloaded function.
Overloaded function.
Overloaded function.
Inherited Methods
Operators
__doc__
Overloaded function.
__module__
Attributes
__annotations__
- __init__(*args, **kwargs)¶
Overloaded function.
__init__(self: visp._visp.tt.TemplateTrackerTriangle) -> None
Default constructor.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, T: visp._visp.tt.TemplateTrackerTriangle) -> None
Copy constructor.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ColVector, c2: visp._visp.core.ColVector, c3: visp._visp.core.ColVector) -> None
Create a triangle from 3 corners.The coordinates of the points are defined as a 2 dimension vector with coordinates (x,y).
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ImagePoint, c2: visp._visp.core.ImagePoint, c3: visp._visp.core.ImagePoint) -> None
Create a triangle from 3 corners defined as image points.
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, x1: int, y1: int, x2: int, y2: int, x3: int, y3: int) -> None
Create a triangle from 3 corners with coordinates (x1,y1), (x2,y2), (x3,y3).
x coordinate is along the columns
y coordinate is along the rows.
__init__(self: visp._visp.tt.TemplateTrackerTriangle, x1: float, y1: float, x2: float, y2: float, x3: float, y3: float) -> None
Create a triangle from 3 corners with coordinates (x1,y1), (x2,y2), (x3,y3).
x coordinate is along the columns
y coordinate is along the rows.
- getCorner(*args, **kwargs)¶
Overloaded function.
getCorner(self: visp._visp.tt.TemplateTrackerTriangle, i: int) -> visp._visp.core.ColVector
The coordinates are returned as a 2 dimension vector (x,y).
- Parameters:
- i
Allowed values are 0, 1 or 2.
- Returns:
if i = 0, return corner 1 coordinates,
if i = 1, return corner 2 coordinates,
if i = 2, return corner 3 coordinates.
getCorner(self: visp._visp.tt.TemplateTrackerTriangle, i: int, x: float, y: float) -> tuple[float, float]
Returns the coordinates of a triangle corner.
- Parameters:
- i
Allowed values are 0, 1 or 2.
if i = 0, return corner 1 coordinates,
if i = 1, return corner 2 coordinates,
if i = 2, return corner 3 coordinates.
- x
The coordinate of the corner along horizontal axis.
- y
The coordinate of the corner along vertical axis.
- Returns:
A tuple containing:
x: The coordinate of the corner along horizontal axis.
y: The coordinate of the corner along vertical axis.
- getCorners(*args, **kwargs)¶
Overloaded function.
getCorners(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ColVector, c2: visp._visp.core.ColVector, c3: visp._visp.core.ColVector) -> None
Returns the coordinates of the triangle corners as a 2 dimension vector (x,y).
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
getCorners(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ImagePoint, c2: visp._visp.core.ImagePoint, c3: visp._visp.core.ImagePoint) -> None
Returns the coordinates of the triangle corners as an image point.
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
getCorners(self: visp._visp.tt.TemplateTrackerTriangle, c: list[visp._visp.core.ImagePoint]) -> list[visp._visp.core.ImagePoint]
Returns the coordinates of the triangle corners as a 3 dimension vector of image points.
- Parameters:
- c
3 dimension vector of image points that correspond to the triangle corners.
- Returns:
A tuple containing:
c: 3 dimension vector of image points that correspond to the triangle corners.
- getMaxx(self) float ¶
Note
See getMinx()
- Returns:
The maximal x coordinate (along the columns of the image) of the points that are in the triangle.
- getMaxy(self) float ¶
Note
See getMaxx()
- Returns:
The maximal y coordinate (along the rows of the image) of the points that are in the triangle.
- getMinx(self) float ¶
Note
See getMaxx()
- Returns:
The minimal x coordinate (along the columns of the image) of the points that are in the triangle.
- getMiny(self) float ¶
Note
See getMaxy()
- Returns:
The minimal y coordinate (along the rows of the image) of the points that are in the triangle.
- getPyramidDown(self) visp._visp.tt.TemplateTrackerTriangle ¶
Return a triangle with coordinates that are down scaled by a factor 2.
- getSize(*args, **kwargs)¶
Overloaded function.
getSize(self: visp._visp.tt.TemplateTrackerTriangle, w: float, h: float) -> tuple[float, float]
Get the size of the triangle bounding box.
- Parameters:
- w
Bounding box width.
- h
Bounding box height.
- Returns:
A tuple containing:
w: Bounding box width.
h: Bounding box height.
getSize(self: visp._visp.tt.TemplateTrackerTriangle, w: int, h: int) -> tuple[int, int]
Get the size of the triangle bounding box.
- Parameters:
- w
Bounding box width.
- h
Bounding box height.
- Returns:
A tuple containing:
w: Bounding box width.
h: Bounding box height.
- inTriangle(*args, **kwargs)¶
Overloaded function.
inTriangle(self: visp._visp.tt.TemplateTrackerTriangle, ip: visp._visp.core.ImagePoint) -> bool
Indicates if an image point is in the triangle.
- Parameters:
- ip
Image point to consider.
inTriangle(self: visp._visp.tt.TemplateTrackerTriangle, i: int, j: int) -> bool
Indicates if a point with coordinates (i,j) is in the triangle.
- Parameters:
- i
Coordinate along the rows.
- j
Coordinate along the columns.
inTriangle(self: visp._visp.tt.TemplateTrackerTriangle, i: float, j: float) -> bool
Indicates if a point with coordinates (i,j) is in the triangle.
- Parameters:
- i
Coordinate along the rows.
- j
Coordinate along the columns.
- init(*args, **kwargs)¶
Overloaded function.
init(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ColVector, c2: visp._visp.core.ColVector, c3: visp._visp.core.ColVector) -> None
Initializes a triangle from 3 corners.The coordinates of the points are defined as a 2 dimension vector with coordinates (x,y).
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
init(self: visp._visp.tt.TemplateTrackerTriangle, c1: visp._visp.core.ImagePoint, c2: visp._visp.core.ImagePoint, c3: visp._visp.core.ImagePoint) -> None
Initializes a triangle from 3 corners defined as image points.
- Parameters:
- c1
First corner.
- c2
Second corner.
- c3
Third corner.
init(self: visp._visp.tt.TemplateTrackerTriangle, x1: int, y1: int, x2: int, y2: int, x3: int, y3: int) -> None
Initializes a triangle from 3 corners with coordinates (x1,y1), (x2,y2), (x3,y3).
x coordinate is along the columns
y coordinate is along the rows.
init(self: visp._visp.tt.TemplateTrackerTriangle, x1: float, y1: float, x2: float, y2: float, x3: float, y3: float) -> None
Initializes a triangle from 3 corners with coordinates (x1,y1), (x2,y2), (x3,y3).
x coordinate is along the columns
y coordinate is along the rows.