Skip to content

Commit 248e989

Browse files
committed
docs: update getPerspectiveWarp
1 parent 9e400c3 commit 248e989

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/Features/Geometry/Get Perspective Warp Matrix.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ sidebar_position: 41
66

77
_Returns a perspective transformation matrix from source points that transforms a quadrilateral._
88

9+
[Options and parameters of `getPerspectiveWarp` function](https://image-js.github.io/image-js-typescript/functions/getPerspectiveWarp.html)
10+
911
`getPerspectiveWarp` function takes 4 corner points (source quadrilateral) and then calculates the 3×3 perspective transformation matrix that allows removing [perspective distortion](https://en.wikipedia.org/wiki/Perspective_distortion).
1012
The function also returns width and height of the new image.
1113
If they were put as option's parameters it just returns indicated width and height, otherwise it calculates new width and height from given source points.
@@ -39,7 +41,7 @@ const projectedImage = image.transform(matrix.matrix, {
3941

4042
### Parameters and default values
4143

42-
- `sourcePoints`
44+
- `pts`
4345

4446
- `options`
4547

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"@orama/plugin-secure-proxy": "^3.0.5",
3434
"clsx": "^1.2.1",
3535
"hast-util-is-element": "^1.1.0",
36-
"image-js": "0.0.0-next-646dc2b006",
36+
"image-js": "0.0.0-next-1a96bf38e6",
3737
"immer": "^9.0.19",
3838
"prism-react-renderer": "^2.1.0",
3939
"react": "^18.2.0",

0 commit comments

Comments
 (0)