Back to Aurora Vision Library website

You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » CreateCoordinateSystemFromPoint

CreateCoordinateSystemFromPoint


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a coordinate system with the specified origin.

Applications: Most often used to define an object alignment from results of 1D Edge Detection or Blob Analysis.

Syntax

C++
C#
 
void avl::CreateCoordinateSystemFromPoint
(
	const avl::Point2D& inPoint,
	float inAngle,
	float inScale,
	float inScaleDivisor,
	avl::CoordinateSystem2D& outCoordinateSystem
)

Parameters

Name Type Range Default Description
Input value inPoint const Point2D& Origin of the created coordinate system
Input value inAngle float
Input value inScale float 0.001 - 1.0f
Input value inScaleDivisor float 0.001 - 1.0f
Output value outCoordinateSystem CoordinateSystem2D&

Hints

  • Pass inPoint to a computed point, where you want to anchor a new coordinate system.
  • Optionally set inAngle to define the rotation.
  • Optionally set inScale and inScaleDivisor to obtain a custom scale.

Examples

A local coordinate system created from a point. Here, the point is located with a 1D Edge Detection filter.

Remarks

Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.