image-js 0.36.0 → 0.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -196,7 +196,11 @@ export declare class Image {
196
196
  options?: { border?: Array<number> },
197
197
  ): Array<number>;
198
198
 
199
- // cannyEdge
199
+ cannyEdge(options?: {
200
+ gaussianBlur?: number;
201
+ lowThreshold?: number;
202
+ highThreshold?: number;
203
+ }): Image;
200
204
  convolution(kernel: Kernel, options?: ConvolutionOptions): Image;
201
205
  extract(
202
206
  mask: Image,
@@ -10,6 +10,9 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
10
10
  * @memberof Image
11
11
  * @instance
12
12
  * @param {object} [options]
13
+ * @param {number} [options.gaussianBlur=1.1] - Sigma parameter for the gaussian filter step
14
+ * @param {number} [options.lowThreshold=10] - Low threshold for the hysteresis procedure
15
+ * @param {number} [options.highThreshold=30] - High threshold for the hysteresis procedure
13
16
  * @return {Image}
14
17
  */
15
18
  function cannyEdge(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "image-js",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Image processing and manipulation in JavaScript",
5
5
  "keywords": [
6
6
  "image",
@@ -4,6 +4,9 @@ import cannyEdgeDetector from 'canny-edge-detector';
4
4
  * @memberof Image
5
5
  * @instance
6
6
  * @param {object} [options]
7
+ * @param {number} [options.gaussianBlur=1.1] - Sigma parameter for the gaussian filter step
8
+ * @param {number} [options.lowThreshold=10] - Low threshold for the hysteresis procedure
9
+ * @param {number} [options.highThreshold=30] - High threshold for the hysteresis procedure
7
10
  * @return {Image}
8
11
  */
9
12
  export default function cannyEdge(options) {