Back to FabImage Library website
You are here: Start » Function Reference » Geometry 2D » Geometry 2D Constructions » CreateCoordinateSystemFromPoint
Header: | FIL.h |
---|---|
Namespace: | fil |
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 fil::CreateCoordinateSystemFromPoint ( const fil::Point2D& inPoint, float inAngle, float inScale, float inScaleDivisor, fil::CoordinateSystem2D& outCoordinateSystem )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inPoint | const Point2D& | Origin of the created coordinate system | ||
![]() |
inAngle | float | |||
![]() |
inScale | float | 0.001 - ![]() |
1.0f | |
![]() |
inScaleDivisor | float | 0.001 - ![]() |
1.0f | |
![]() |
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.