You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Computes a perspective transformation matrix to rectify a quadrilateral region into a rectangle.
29
+
*
30
+
* This function takes four corner points of a distorted quadrilateral (e.g., a document photographed at an angle) and calculates the transformation matrix needed to "unwarp" it into a rectangular image.
31
+
* The output dimensions can be specified or calculated automatically based on the input geometry.
32
32
* @param pts - 4 reference corners of the new image.
33
-
* @param options - PerspectiveWarpOptions
33
+
* @param options - PerspectiveWarpOptions.
34
34
* @returns - Matrix from 4 points.
35
35
*/
36
36
exportfunctiongetPerspectiveWarp(
@@ -58,7 +58,10 @@ export function getPerspectiveWarp(
0 commit comments