Convert

class Convert

Bases: pybind11_object

Bridges over other frameworks like OpenCV.

Methods

__init__

convertFromOpenCV

Overloaded function.

convertToOpenCV

Overloaded function.

Inherited Methods

Operators

__doc__

__init__

__module__

Attributes

__annotations__

__init__(*args, **kwargs)
static convertFromOpenCV(*args, **kwargs)

Overloaded function.

  1. convertFromOpenCV(from: cv::KeyPoint, to: visp._visp.core.ImagePoint) -> None

Convert a cv::KeyPoint to a vpImagePoint .

Parameters:
from

cv::KeyPoint to convert.

to

vpImagePoint converted.

  1. convertFromOpenCV(from: cv::Point_<float>, to: visp._visp.core.ImagePoint) -> None

Convert a cv::Point2f to a vpImagePoint .

Parameters:
from

cv::Point2f to convert.

to

vpImagePoint converted.

  1. convertFromOpenCV(from: cv::Point_<double>, to: visp._visp.core.ImagePoint) -> None

Convert a cv::Point2d to a vpImagePoint .

Parameters:
from

cv::Point2d to convert.

to

vpImagePoint converted.

  1. convertFromOpenCV(from: cv::Point3_<float>, to: visp._visp.core.Point, cameraFrame: bool = false) -> None

Convert a cv::Point3f to a vpPoint .

Parameters:
from

cv::Point3f to convert.

to

vpPoint converted.

cameraFrame

If true, convert into the camera frame, otherwise in the object frame.

  1. convertFromOpenCV(from: cv::Point3_<double>, to: visp._visp.core.Point, cameraFrame: bool = false) -> None

Convert a cv::Point3d to a vpPoint .

Parameters:
from

cv::Point3d to convert.

to

vpPoint converted.

cameraFrame

If true, convert into the camera frame, otherwise in the object frame.

static convertToOpenCV(*args, **kwargs)

Overloaded function.

  1. convertToOpenCV(from: visp._visp.core.ImagePoint, to: cv::Point_<float>) -> None

Convert a vpImagePoint to a cv::Point2f.

Parameters:
from

vpImagePoint to convert.

to

cv::Point2f converted.

  1. convertToOpenCV(from: visp._visp.core.ImagePoint, to: cv::Point_<double>) -> None

Convert a vpImagePoint to a cv::Point2d.

Parameters:
from

vpImagePoint to convert.

to

cv::Point2d converted.

  1. convertToOpenCV(from: visp._visp.core.Point, to: cv::Point3_<float>, cameraFrame: bool = false) -> None

Convert a vpPoint to a cv::Point3f.

Parameters:
from

vpPoint to convert.

to

cv::Point3f converted.

cameraFrame

If true, convert from coordinates in the camera frame, otherwise in the object frame.

  1. convertToOpenCV(from: visp._visp.core.Point, to: cv::Point3_<double>, cameraFrame: bool = false) -> None

Convert a vpPoint to a cv::Point3d.

Parameters:
from

vpPoint to convert.

to

cv::Point3d converted.

cameraFrame

If true, convert from coordinates in the camera frame, otherwise in the object frame.