@@ -125,6 +125,10 @@ Several methods have been renamed for consistency:
125
125
126
126
` img.getChannel() ` ➡️ ` img.extractChannel() `
127
127
128
+ ` img.rotateLeft() ` and ` img.rotateRight() ` ➡️ ` img.rotate() `
129
+
130
+ ` img.flipX() ` and ` img.flipY() ` ➡️ ` img.flip() `
131
+
128
132
Consistent naming follows common conventions ("draw\* " for rendering, "clone" for copying objects).
129
133
130
134
### Compatibility requirements
@@ -140,6 +144,11 @@ The following deprecated features have been removed:
140
144
- ` paintLabels() ` - Feature was removed due to dependency issues. We plan to add it back in the future updates.
141
145
- ` warpingFourPoints() ` - Use ` getPerspectiveWarp() ` + ` transform() ` .
142
146
- 32-bit color depth has been currently deprecated. We plan to add it back in the future updates as well.
147
+ - ` CMYK ` and ` HSL ` color models have been deprecated. We plan to add it in the future updates.
148
+ - ` insert() ` has been deprecated. We plan to add it in the future updates.
149
+ - ` abs() ` has been deprecated. Currently 32-bit images are not supported.
150
+ - ` paintMasks() ` has been deprecated. Use ` paintMask() ` + ` for ` loop.
151
+ - ` mergeRois() ` has been deprecated. We plan to add it in the future updates.
143
152
144
153
## 🆕 New Features
145
154
@@ -202,6 +211,21 @@ const warped = img.transform(matrix);
202
211
203
212
** Use case** : Rectification of a perspective angle of an image. You can learn more about it [ here] ( ../docs/Features/Geometry/Get%20Perspective%20Warp%20Matrix ) .
204
213
214
+ ### ` merge() `
215
+
216
+ ` merge() ` allows combining several one-channel images into one image. It is the opposite of ` split() ` :
217
+
218
+ ``` ts
219
+ // Creates 3 grayscale images;
220
+ const img2 = new Image (2 , 2 , { colorModel: ' GREY' , bitDepth: 8 }).fill (0 );
221
+ const img1 = new Image (2 , 2 , { colorModel: ' GREY' , bitDepth: 8 }).fill (0 );
222
+ const img3 = new Image (2 , 2 , { colorModel: ' GREY' , bitDepth: 8 }).fill (255 );
223
+ // Creates RGB image. In this case, it creates blue 2x2 image.
224
+ const img4 = merge ([img1 , img2 , img3 ]);
225
+ ```
226
+
227
+ ** Use case** : Combination of multiple channels into one image after they were.
228
+
205
229
## 🚀 Getting Started
206
230
207
231
To get started with ImageJS, we recommend visiting our [ "Get started"] ( ../docs/Getting%20started ) guide
0 commit comments