@opencvjs/types 4.10.0-release.3 → 4.10.0-release.5
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.
|
@@ -59,15 +59,15 @@ export declare class RotatedRect {
|
|
|
59
59
|
*/
|
|
60
60
|
public constructor(point1: Point2f, point2: Point2f, point3: Point2f);
|
|
61
61
|
|
|
62
|
-
public boundingRect(): Rect;
|
|
62
|
+
public static boundingRect(rect: RotatedRect): Rect;
|
|
63
63
|
|
|
64
|
-
public boundingRect2f():
|
|
64
|
+
public static boundingRect2f(rect: RotatedRect): Rect;
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* returns 4 vertices of the rectangle
|
|
68
68
|
*
|
|
69
|
-
* @param
|
|
70
|
-
* topRight, bottomRight
|
|
69
|
+
* @param rect The rotated rectangle
|
|
70
|
+
* @returns Array of 4 points in order: bottomLeft, topLeft, topRight, bottomRight
|
|
71
71
|
*/
|
|
72
|
-
public points(
|
|
72
|
+
public static points(rect: RotatedRect): Point2f[];
|
|
73
73
|
}
|
|
@@ -3051,7 +3051,7 @@ export declare const ROTATE_90_COUNTERCLOCKWISE: RotateFlags; // initializer: =
|
|
|
3051
3051
|
* [borderInterpolate], [copyMakeBorder]
|
|
3052
3052
|
*
|
|
3053
3053
|
*/
|
|
3054
|
-
export type BorderTypes =
|
|
3054
|
+
export type BorderTypes = number;
|
|
3055
3055
|
|
|
3056
3056
|
/**
|
|
3057
3057
|
* Various border types, image boundaries are denoted with `|`
|
|
@@ -3059,7 +3059,7 @@ export type BorderTypes = any;
|
|
|
3059
3059
|
* [borderInterpolate], [copyMakeBorder]
|
|
3060
3060
|
*
|
|
3061
3061
|
*/
|
|
3062
|
-
export type CmpTypes =
|
|
3062
|
+
export type CmpTypes = number;
|
|
3063
3063
|
|
|
3064
3064
|
/**
|
|
3065
3065
|
* Various border types, image boundaries are denoted with `|`
|
|
@@ -3067,7 +3067,7 @@ export type CmpTypes = any;
|
|
|
3067
3067
|
* [borderInterpolate], [copyMakeBorder]
|
|
3068
3068
|
*
|
|
3069
3069
|
*/
|
|
3070
|
-
export type DecompTypes =
|
|
3070
|
+
export type DecompTypes = number;
|
|
3071
3071
|
|
|
3072
3072
|
/**
|
|
3073
3073
|
* Various border types, image boundaries are denoted with `|`
|
|
@@ -3075,7 +3075,7 @@ export type DecompTypes = any;
|
|
|
3075
3075
|
* [borderInterpolate], [copyMakeBorder]
|
|
3076
3076
|
*
|
|
3077
3077
|
*/
|
|
3078
|
-
export type DftFlags =
|
|
3078
|
+
export type DftFlags = number;
|
|
3079
3079
|
|
|
3080
3080
|
/**
|
|
3081
3081
|
* Various border types, image boundaries are denoted with `|`
|
|
@@ -3083,7 +3083,7 @@ export type DftFlags = any;
|
|
|
3083
3083
|
* [borderInterpolate], [copyMakeBorder]
|
|
3084
3084
|
*
|
|
3085
3085
|
*/
|
|
3086
|
-
export type GemmFlags =
|
|
3086
|
+
export type GemmFlags = number;
|
|
3087
3087
|
|
|
3088
3088
|
/**
|
|
3089
3089
|
* Various border types, image boundaries are denoted with `|`
|
|
@@ -3091,7 +3091,7 @@ export type GemmFlags = any;
|
|
|
3091
3091
|
* [borderInterpolate], [copyMakeBorder]
|
|
3092
3092
|
*
|
|
3093
3093
|
*/
|
|
3094
|
-
export type NormTypes =
|
|
3094
|
+
export type NormTypes = number;
|
|
3095
3095
|
|
|
3096
3096
|
/**
|
|
3097
3097
|
* Various border types, image boundaries are denoted with `|`
|
|
@@ -3099,4 +3099,4 @@ export type NormTypes = any;
|
|
|
3099
3099
|
* [borderInterpolate], [copyMakeBorder]
|
|
3100
3100
|
*
|
|
3101
3101
|
*/
|
|
3102
|
-
export type RotateFlags =
|
|
3102
|
+
export type RotateFlags = number;
|
package/lib/opencv/helpers.d.ts
CHANGED
|
@@ -145,7 +145,7 @@ export declare function setDelayFunction(...a: any[]): any;
|
|
|
145
145
|
export declare class EmscriptenEmbindInstance {
|
|
146
146
|
isAliasOf(other: any): bool;
|
|
147
147
|
clone(): any;
|
|
148
|
-
delete():
|
|
148
|
+
delete(): void;
|
|
149
149
|
isDeleted(): boolean;
|
|
150
150
|
deleteLater(): any;
|
|
151
151
|
}
|
|
@@ -557,7 +557,7 @@ export declare const THRESH_TRIANGLE: ThresholdTypes; // initializer: = 16
|
|
|
557
557
|
* [adaptiveThreshold]
|
|
558
558
|
*
|
|
559
559
|
*/
|
|
560
|
-
export type AdaptiveThresholdTypes =
|
|
560
|
+
export type AdaptiveThresholdTypes = number;
|
|
561
561
|
|
|
562
562
|
/**
|
|
563
563
|
* adaptive threshold algorithm
|
|
@@ -565,7 +565,7 @@ export type AdaptiveThresholdTypes = any;
|
|
|
565
565
|
* [adaptiveThreshold]
|
|
566
566
|
*
|
|
567
567
|
*/
|
|
568
|
-
export type DistanceTransformLabelTypes =
|
|
568
|
+
export type DistanceTransformLabelTypes = number;
|
|
569
569
|
|
|
570
570
|
/**
|
|
571
571
|
* adaptive threshold algorithm
|
|
@@ -573,7 +573,7 @@ export type DistanceTransformLabelTypes = any;
|
|
|
573
573
|
* [adaptiveThreshold]
|
|
574
574
|
*
|
|
575
575
|
*/
|
|
576
|
-
export type DistanceTransformMasks =
|
|
576
|
+
export type DistanceTransformMasks = number;
|
|
577
577
|
|
|
578
578
|
/**
|
|
579
579
|
* adaptive threshold algorithm
|
|
@@ -581,7 +581,7 @@ export type DistanceTransformMasks = any;
|
|
|
581
581
|
* [adaptiveThreshold]
|
|
582
582
|
*
|
|
583
583
|
*/
|
|
584
|
-
export type DistanceTypes =
|
|
584
|
+
export type DistanceTypes = number;
|
|
585
585
|
|
|
586
586
|
/**
|
|
587
587
|
* adaptive threshold algorithm
|
|
@@ -589,7 +589,7 @@ export type DistanceTypes = any;
|
|
|
589
589
|
* [adaptiveThreshold]
|
|
590
590
|
*
|
|
591
591
|
*/
|
|
592
|
-
export type FloodFillFlags =
|
|
592
|
+
export type FloodFillFlags = number;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* adaptive threshold algorithm
|
|
@@ -597,7 +597,7 @@ export type FloodFillFlags = any;
|
|
|
597
597
|
* [adaptiveThreshold]
|
|
598
598
|
*
|
|
599
599
|
*/
|
|
600
|
-
export type GrabCutClasses =
|
|
600
|
+
export type GrabCutClasses = number;
|
|
601
601
|
|
|
602
602
|
/**
|
|
603
603
|
* adaptive threshold algorithm
|
|
@@ -605,7 +605,7 @@ export type GrabCutClasses = any;
|
|
|
605
605
|
* [adaptiveThreshold]
|
|
606
606
|
*
|
|
607
607
|
*/
|
|
608
|
-
export type GrabCutModes =
|
|
608
|
+
export type GrabCutModes = number;
|
|
609
609
|
|
|
610
610
|
/**
|
|
611
611
|
* adaptive threshold algorithm
|
|
@@ -613,4 +613,4 @@ export type GrabCutModes = any;
|
|
|
613
613
|
* [adaptiveThreshold]
|
|
614
614
|
*
|
|
615
615
|
*/
|
|
616
|
-
export type ThresholdTypes =
|
|
616
|
+
export type ThresholdTypes = number;
|
|
@@ -567,8 +567,8 @@ export declare const WARP_POLAR_LINEAR: WarpPolarMode; // initializer: = 0
|
|
|
567
567
|
|
|
568
568
|
export declare const WARP_POLAR_LOG: WarpPolarMode; // initializer: = 256
|
|
569
569
|
|
|
570
|
-
export type InterpolationFlags =
|
|
570
|
+
export type InterpolationFlags = number;
|
|
571
571
|
|
|
572
|
-
export type InterpolationMasks =
|
|
572
|
+
export type InterpolationMasks = number;
|
|
573
573
|
|
|
574
|
-
export type WarpPolarMode =
|
|
574
|
+
export type WarpPolarMode = number;
|