Skip to content

Commit 3fc1c0c

Browse files
committed
feat: add more information on transform() tips
1 parent dbc5a6a commit 3fc1c0c

File tree

4 files changed

+524
-27
lines changed

4 files changed

+524
-27
lines changed

docs/features/geometry/geometry.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Geometric operations in image processing involve transforming the spatial coordi
88

99
### Methods
1010

11-
| Can be applied on | Images | Masks |
12-
| --------------------------------------------------------------------------------------------------------------------------- | ------- | -------- |
13-
| [Flip(`flip`)](./flip.md 'internal link on flip') | ✅ | ❌ |
14-
| [Resize(`resize`)](./resize.md 'internal link on resize') | ✅ | ❌ |
15-
| [Rotate(`rotate`)](./rotate.md 'internal link on rotate') | ✅ | ❌ |
16-
| [Transform(`transform`)](./transform.md 'internal link on transform') | ✅ | ❌ |
17-
| [Transform and rotate(`transformRotate`)](./transform-and-rotate 'internal link on transformRotate') | ✅ | ❌ |
18-
| [Get perspective warp matrix(`getPerspectiveWarp`)](./get-perspective-warp-matrix.md 'internal link on getPerspectiveWarp') | - | - |
11+
| Can be applied on | Images | Masks |
12+
| ------------------------------------------------------------------------------------------------------------------------ | ------- | -------- |
13+
| [Flip(`flip`)](./flip 'internal link on flip') | ✅ | ❌ |
14+
| [Resize(`resize`)](./resize 'internal link on resize') | ✅ | ❌ |
15+
| [Rotate(`rotate`)](./rotate 'internal link on rotate') | ✅ | ❌ |
16+
| [Transform(`transform`)](./transform 'internal link on transform') | ✅ | ❌ |
17+
| [Transform and rotate(`transformRotate`)](./transform-and-rotate 'internal link on transformRotate') | ✅ | ❌ |
18+
| [Get perspective warp matrix(`getPerspectiveWarp`)](./get-perspective-warp-matrix 'internal link on getPerspectiveWarp') | - | - |

docs/tutorials/applying-transform-function-on-images.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ const stretchedImage = image.transform(transformationMatrix);
123123
![Stretched image](./images/transformations/lennaStretched.png)
124124

125125
:::note
126-
ImageJS also has [`resize`](../features/geometry/resize.md) function that allows to scale an image.
126+
ImageJS also has [`resize`](../features/geometry/resize) function that allows to scale an image.
127127
The current tutorial just demonstrates the basic principle behind transformation of such kind.
128128
:::
129129

@@ -162,7 +162,7 @@ const flippedImage = image.transform(flipMatrix);
162162

163163
![Flipped image](./images/transformations/lennaFlipped.png)
164164
:::note
165-
ImageJS also has [`flip`](../features/geometry/flip.md) function that allows to flip an image.
165+
ImageJS also has [`flip`](../features/geometry/flip) function that allows to flip an image.
166166
Current tutorial just demonstrates the basic principle behind transformation of such kind.
167167
:::
168168

@@ -302,7 +302,7 @@ const rotateAroundCenterImage = image.transform(
302302
![Rotated by center image](./images/transformations/lennaRotatedCenter.png)
303303

304304
:::note
305-
Image-js also has [`rotate()`](../features/geometry/rotate.md) and [`transformRotate()`](../features/geometry/transform-and-rotate.md) functions. `rotate()` function allows rotating an image by multiple of 90 degrees.
305+
Image-js also has [`rotate()`](../features/geometry/rotate) and [`transformRotate()`](../features/geometry/transform-and-rotate) functions. `rotate()` function allows rotating an image by multiple of 90 degrees.
306306
`transformRotate()` allows rotating an image by any degree. It also allows choosing the axe of rotation. So, for rotation, you have other functions that allow you to perform it.
307307
:::
308308

0 commit comments

Comments
 (0)