Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 3D Spatial Transforms » ProjectPointPerspective

ProjectPointPerspective


Converts a point through a perspective projection, parallel to the Z axis.

Syntax

C++
C#
 
void avl::ProjectPointPerspective
(
	const avl::Point3D& inPoint3D,
	const avl::Point2D& inCenter,
	const avl::Point3D& inFocalPoint,
	float inFocalLength,
	avl::Point2D& outPoint2D
)

Parameters

Name Type Default Description
inPoint3D const Point3D&
inCenter const Point2D& Center of projection, i.e. the target for projected points (x_focal, y_focal, z)
inFocalPoint const Point3D& The camera center, i.e. the point we measure (x, y, z) against
inFocalLength float The multiplier for the x and y coordinates, which is divided by z. If negative, projects in opposite direction.
outPoint2D Point2D&

Errors

Error type Description
DomainError Projected point coplanar with the Focal Point, but not equal to it.