1
+ // ignore_for_file: constant_identifier_names
2
+
1
3
library cv;
2
4
3
5
import '../core/base.dart' ;
@@ -12,45 +14,45 @@ abstract class ImgHashBase {
12
14
void compute (InputArray inputArr, OutputArray outputArr);
13
15
}
14
16
15
- // PHash is implementation of the PHash algorithm.
17
+ /// PHash is implementation of the PHash algorithm.
16
18
class PHash implements ImgHashBase {
17
19
18
- // Compare compares the hash value between a and b using PHash.
20
+ /// Compare compares the hash value between a and b using PHash.
19
21
//
20
- // For further information, see:
21
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
22
+ /// For further information, see:
23
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
22
24
@override
23
25
double compare (InputArray hashOne, InputArray hashTwo) {
24
26
return _bindings.pHashCompare (hashOne.ptr, hashTwo.ptr);
25
27
}
26
28
27
- // Compute computes hash of the input image using PHash.
29
+ /// Compute computes hash of the input image using PHash.
28
30
//
29
- // For further information, see:
30
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
31
+ /// For further information, see:
32
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
31
33
@override
32
34
void compute (InputArray inputArr, OutputArray outputArr) {
33
35
return _bindings.pHashCompute (inputArr.ptr, outputArr.ptr);
34
36
}
35
37
}
36
38
37
39
38
- // AverageHash is implementation of the AverageHash algorithm.
40
+ /// AverageHash is implementation of the AverageHash algorithm.
39
41
class AverageHash implements ImgHashBase {
40
42
41
- // Compare compares the hash value between a and b using AverageHash.
43
+ /// Compare compares the hash value between a and b using AverageHash.
42
44
//
43
- // For further information, see:
44
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
45
+ /// For further information, see:
46
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
45
47
@override
46
48
double compare (InputArray hashOne, InputArray hashTwo) {
47
49
return _bindings.averageHashCompare (hashOne.ptr, hashTwo.ptr);
48
50
}
49
51
50
- // Compute computes hash of the input image using AverageHash.
52
+ /// Compute computes hash of the input image using AverageHash.
51
53
//
52
- // For further information, see:
53
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
54
+ /// For further information, see:
55
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
54
56
@override
55
57
void compute (InputArray inputArr, OutputArray outputArr) {
56
58
return _bindings.averageHashCompute (inputArr.ptr, outputArr.ptr);
@@ -65,26 +67,26 @@ enum BlockMeanHashMode
65
67
}
66
68
67
69
68
- // BlockMeanHash is implementation of the BlockMeanHash algorithm.
70
+ /// BlockMeanHash is implementation of the BlockMeanHash algorithm.
69
71
class BlockMeanHash implements ImgHashBase {
70
72
71
73
BlockMeanHashMode mode = BlockMeanHashMode .BLOCK_MEAN_HASH_MODE_0 ;
72
74
73
75
BlockMeanHash ({this .mode = BlockMeanHashMode .BLOCK_MEAN_HASH_MODE_0 });
74
76
75
- // Compare compares the hash value between a and b using BlockMeanHash.
77
+ /// Compare compares the hash value between a and b using BlockMeanHash.
76
78
//
77
- // For further information, see:
78
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
79
+ /// For further information, see:
80
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
79
81
@override
80
82
double compare (InputArray hashOne, InputArray hashTwo) {
81
83
return _bindings.blockMeanHashCompare (hashOne.ptr, hashTwo.ptr, mode.index);
82
84
}
83
85
84
- // Compute computes hash of the input image using BlockMeanHash.
86
+ /// Compute computes hash of the input image using BlockMeanHash.
85
87
//
86
- // For further information, see:
87
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
88
+ /// For further information, see:
89
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
88
90
@override
89
91
void compute (InputArray inputArr, OutputArray outputArr) {
90
92
return _bindings.blockMeanHashCompute (inputArr.ptr, outputArr.ptr, mode.index);
@@ -96,78 +98,78 @@ class BlockMeanHash implements ImgHashBase {
96
98
}
97
99
98
100
99
- // ColorMomentHash is implementation of the ColorMomentHash algorithm.
101
+ /// ColorMomentHash is implementation of the ColorMomentHash algorithm.
100
102
class ColorMomentHash implements ImgHashBase {
101
103
102
- // Compare compares the hash value between a and b using ColorMomentHash.
104
+ /// Compare compares the hash value between a and b using ColorMomentHash.
103
105
//
104
- // For further information, see:
105
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
106
+ /// For further information, see:
107
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
106
108
@override
107
109
double compare (InputArray hashOne, InputArray hashTwo) {
108
110
return _bindings.colorMomentHashCompare (hashOne.ptr, hashTwo.ptr);
109
111
}
110
112
111
- // Compute computes hash of the input image using ColorMomentHash.
113
+ /// Compute computes hash of the input image using ColorMomentHash.
112
114
//
113
- // For further information, see:
114
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
115
+ /// For further information, see:
116
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
115
117
@override
116
118
void compute (InputArray inputArr, OutputArray outputArr) {
117
119
return _bindings.colorMomentHashCompute (inputArr.ptr, outputArr.ptr);
118
120
}
119
121
}
120
122
121
123
122
- // MarrHildrethHash is implementation of the MarrHildrethHash algorithm.
124
+ /// MarrHildrethHash is implementation of the MarrHildrethHash algorithm.
123
125
class NewMarrHildrethHash implements ImgHashBase {
124
126
125
127
double alpha = 2.0 ;
126
128
double scale = 1.0 ;
127
129
128
130
NewMarrHildrethHash ({this .alpha = 2.0 , this .scale = 1.0 });
129
131
130
- // Compare compares the hash value between a and b using MarrHildrethHash.
132
+ /// Compare compares the hash value between a and b using MarrHildrethHash.
131
133
//
132
- // For further information, see:
133
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
134
+ /// For further information, see:
135
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
134
136
@override
135
137
double compare (InputArray hashOne, InputArray hashTwo) {
136
138
return _bindings.marrHildrethHashCompare (hashOne.ptr, hashTwo.ptr, alpha, scale);
137
139
}
138
140
139
- // Compute computes hash of the input image using MarrHildrethHash.
141
+ /// Compute computes hash of the input image using MarrHildrethHash.
140
142
//
141
- // For further information, see:
142
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
143
+ /// For further information, see:
144
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
143
145
@override
144
146
void compute (InputArray inputArr, OutputArray outputArr) {
145
147
return _bindings.marrHildrethHashCompute (inputArr.ptr, outputArr.ptr, alpha, scale);
146
148
}
147
149
}
148
150
149
151
150
- // NewRadialVarianceHash is implementation of the NewRadialVarianceHash algorithm.
152
+ /// NewRadialVarianceHash is implementation of the NewRadialVarianceHash algorithm.
151
153
class NewRadialVarianceHash implements ImgHashBase {
152
154
153
155
double sigma = 1 ;
154
156
int numOfAngleLine = 180 ;
155
157
156
158
NewRadialVarianceHash ({this .sigma = 1 , this .numOfAngleLine = 180 });
157
159
158
- // Compare compares the hash value between a and b using RadialVarianceHash.
160
+ /// Compare compares the hash value between a and b using RadialVarianceHash.
159
161
//
160
- // For further information, see:
161
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
162
+ /// For further information, see:
163
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#a444a3e9ec792cf029385809393f84ad5
162
164
@override
163
165
double compare (InputArray hashOne, InputArray hashTwo) {
164
166
return _bindings.radialVarianceHashCompare (hashOne.ptr, hashTwo.ptr, sigma, numOfAngleLine);
165
167
}
166
168
167
- // Compute computes hash of the input image using RadialVarianceHash.
169
+ /// Compute computes hash of the input image using RadialVarianceHash.
168
170
//
169
- // For further information, see:
170
- // https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
171
+ /// For further information, see:
172
+ /// https://docs.opencv.org/master/de/d29/classcv_1_1img__hash_1_1ImgHashBase.html#ae2d9288db370089dfd8aab85d5e0b0f3
171
173
@override
172
174
void compute (InputArray inputArr, OutputArray outputArr) {
173
175
return _bindings.radialVarianceHashCompute (inputArr.ptr, outputArr.ptr, sigma, numOfAngleLine);
0 commit comments