TemplateTrackerWarp

class TemplateTrackerWarp

Bases: pybind11_object

Methods

__init__

getDistanceBetweenZoneAndWarpedZone

Compute the distance between a zone and its associated warped zone.

getNbParam

Get the number of parameters of the warping function.

setNbParam

Set the number of parameters of the warping function.

warpTriangle

Warp a triangle and store the result in a new zone.

warpZone

Warp a zone and store the result in a new zone.

Inherited Methods

Operators

__doc__

__init__

__module__

Attributes

__annotations__

__init__(*args, **kwargs)
getDistanceBetweenZoneAndWarpedZone(self, Z: visp._visp.tt.TemplateTrackerZone, p: visp._visp.core.ColVector) float

Compute the distance between a zone and its associated warped zone.

Parameters:
Z: visp._visp.tt.TemplateTrackerZone

Zone to consider.

p: visp._visp.core.ColVector

Parameters of the warping function.

getNbParam(self) int

Get the number of parameters of the warping function.

Returns:

Number of parameters.

setNbParam(self, nb: int) None

Set the number of parameters of the warping function.

Parameters:
nb: int

New number of parameters.

warpTriangle(self: visp._visp.tt.TemplateTrackerWarp, in: visp._visp.tt.TemplateTrackerTriangle, p: visp._visp.core.ColVector, out: visp._visp.tt.TemplateTrackerTriangle) None

Warp a triangle and store the result in a new zone.

Parameters:
in

Triangle to warp.

p

Parameters of the warping function. These parameters are estimated by the template tracker and returned using vpTemplateTracker::getp() .

out

Resulting triangle.

warpZone(self: visp._visp.tt.TemplateTrackerWarp, in: visp._visp.tt.TemplateTrackerZone, p: visp._visp.core.ColVector, out: visp._visp.tt.TemplateTrackerZone) None

Warp a zone and store the result in a new zone.

Parameters:
in

Zone to warp.

p

Parameters of the warping function. These parameters are estimated by the template tracker and returned using vpTemplateTracker::getp() .

out

Resulting zone.