Function swri_image_util::GetEllipsePoints

Function Documentation

std::vector<tf2::Vector3> swri_image_util::GetEllipsePoints(const cv::Mat &ellipse, const tf2::Vector3 &center, double scale, int32_t num_points)

Gets a list of points on the perimeter of an ellipse.

Parameters:
  • ellipse[in] The ellipse represented as a 2x2 float matrix.

  • center[in] The center of the ellipse.

  • scale[in] A scale factor.

  • num_points[in] The number of points to use.

Returns:

A list of points on the perimeter of the ellipse if successful. An empty list otherwise.