@techstark/opencv-js 4.9.0-release.2 → 4.9.0-release.3

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.
@@ -26,6 +26,11 @@ export declare class Point {
26
26
  x: number;
27
27
  y: number;
28
28
  }
29
+ export declare class Circle {
30
+ constructor(center: Point, radius: number);
31
+ center: Point;
32
+ radius: number;
33
+ }
29
34
  export declare class Size {
30
35
  constructor(width: number, height: number);
31
36
  width: number;
@@ -1 +1 @@
1
- {"version":3,"file":"_hacks.js","sourceRoot":"","sources":["../../../../src/types/opencv/_hacks.ts"],"names":[],"mappings":";AAAA,uGAAuG;;;AAwFvG,wBAAsE;AA5EtD,2FA4Ee,MAAG,OA5ER;AACV,iGA2Ee,MAAG,OA3EF;AAChB,4FA0Ee,MAAG,OA1EP;AA2E3B,kBAAgB"}
1
+ {"version":3,"file":"_hacks.js","sourceRoot":"","sources":["../../../../src/types/opencv/_hacks.ts"],"names":[],"mappings":";AAAA,uGAAuG;;;AA8FvG,wBAAsE;AAlFtD,2FAkFe,MAAG,OAlFR;AACV,iGAiFe,MAAG,OAjFF;AAChB,4FAgFe,MAAG,OAhFP;AAiF3B,kBAAgB"}
@@ -1,4 +1,4 @@
1
- import { bool, double, float, InputArray, int, Moments, OutputArray, OutputArrayOfArrays, Point, Point2f, Rect, RotatedRect } from "./_types";
1
+ import { bool, Circle, double, float, InputArray, int, Moments, OutputArray, OutputArrayOfArrays, Point, Point2f, Rect, RotatedRect } from "./_types";
2
2
  /**
3
3
  * The function [cv::approxPolyDP] approximates a curve or a polygon with another curve/polygon with
4
4
  * less vertices so that the distance between them is less or equal to the specified precision. It uses
@@ -415,12 +415,8 @@ export declare function minAreaRect(points: InputArray): RotatedRect;
415
415
  * The function finds the minimal enclosing circle of a 2D point set using an iterative algorithm.
416
416
  *
417
417
  * @param points Input vector of 2D points, stored in std::vector<> or Mat
418
- *
419
- * @param center Output center of the circle.
420
- *
421
- * @param radius Output radius of the circle.
422
418
  */
423
- export declare function minEnclosingCircle(points: InputArray, center: any, radius: any): void;
419
+ export declare function minEnclosingCircle(points: InputArray): Circle;
424
420
  /**
425
421
  * The function finds a triangle of minimum area enclosing the given set of 2D points and returns its
426
422
  * area. The output for a given 2D point set is shown in the image below. 2D points are depicted in
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techstark/opencv-js",
3
- "version": "4.9.0-release.2",
3
+ "version": "4.9.0-release.3",
4
4
  "description": "OpenCV JavaScript version for node.js or browser",
5
5
  "main": "dist/opencv.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -32,6 +32,12 @@ export declare class Point {
32
32
  public y: number;
33
33
  }
34
34
 
35
+ export declare class Circle {
36
+ public constructor(center: Point, radius: number);
37
+ public center: Point;
38
+ public radius: number;
39
+ }
40
+
35
41
  export declare class Size {
36
42
  public constructor(width: number, height: number);
37
43
  public width: number;
@@ -1,5 +1,6 @@
1
1
  import {
2
2
  bool,
3
+ Circle,
3
4
  double,
4
5
  float,
5
6
  InputArray,
@@ -12,6 +13,7 @@ import {
12
13
  Rect,
13
14
  RotatedRect,
14
15
  } from "./_types";
16
+
15
17
  /*
16
18
  * # Structural Analysis and Shape Descriptors
17
19
  *
@@ -530,16 +532,10 @@ export declare function minAreaRect(points: InputArray): RotatedRect;
530
532
  * The function finds the minimal enclosing circle of a 2D point set using an iterative algorithm.
531
533
  *
532
534
  * @param points Input vector of 2D points, stored in std::vector<> or Mat
533
- *
534
- * @param center Output center of the circle.
535
- *
536
- * @param radius Output radius of the circle.
537
535
  */
538
536
  export declare function minEnclosingCircle(
539
537
  points: InputArray,
540
- center: any,
541
- radius: any,
542
- ): void;
538
+ ): Circle;
543
539
 
544
540
  /**
545
541
  * The function finds a triangle of minimum area enclosing the given set of 2D points and returns its