ImageEn, unit ievision

TIEVisionMath.findHomography

TIEVisionMath.findHomography

Declaration

function findHomography(const srcPoints: TIEVisionVectorPoint2f; const dstPoints: TIEVisionVectorPoint2f; method: TIEVisionHomographyMethod): TIEVisionMatrix; safecall;

Description

Find a perspective transformation between two planes.
Parameter Description
srcPoints Coordinates of the points in the original plane
dstPoints Coordinates of the points in the target plane
method Method used to compute a homography matrix

Returns the perspective transformation matrix between the source and the destination planes.


Note:
A shortcut method for this is available: OrbDetectAndDeskew
Use IEVisionMatrixToMatrix to easily extrat the matrix

Example

hmat := IEVisionLib().createMath().findHomography(orb.getPoints1(), orb.getPoints2(), ievRANSAC);

See Also

isValidHomography
detect
getMatchingGraph
getPoints1
getPoints2
warpPerspective
IEVisionMatrixToMatrix