@@ -4,7 +4,7 @@ use std::fmt::Error as FmtError;
4
4
5
5
/// Error codes
6
6
#[ repr( C ) ]
7
- #[ derive( Clone , Copy , Debug ) ]
7
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
8
8
pub enum AfError {
9
9
/// The function returned successfully
10
10
SUCCESS = 0 ,
@@ -106,7 +106,7 @@ impl Error for AfError {
106
106
}
107
107
108
108
/// Types of Array data type
109
- #[ derive( Copy , Clone ) ]
109
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
110
110
pub enum Aftype {
111
111
/// 32 bit float
112
112
F32 = 0 ,
@@ -135,7 +135,7 @@ pub enum Aftype {
135
135
}
136
136
137
137
/// Dictates the interpolation method to be used by a function
138
- #[ derive( Copy , Clone ) ]
138
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
139
139
pub enum InterpType {
140
140
/// Nearest Neighbor interpolation method
141
141
NEAREST = 0 ,
@@ -148,7 +148,7 @@ pub enum InterpType {
148
148
}
149
149
150
150
/// Helps determine how to pad kernels along borders
151
- #[ derive( Copy , Clone ) ]
151
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
152
152
pub enum BorderType {
153
153
/// Pad using zeros
154
154
ZERO = 0 ,
@@ -157,7 +157,7 @@ pub enum BorderType {
157
157
}
158
158
159
159
/// Used by `regions` function to identify type of connectivity
160
- #[ derive( Copy , Clone ) ]
160
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
161
161
pub enum Connectivity {
162
162
/// North-East-South-West (N-E-S-W) connectivity from given pixel/point
163
163
FOUR = 4 ,
@@ -166,7 +166,7 @@ pub enum Connectivity {
166
166
}
167
167
168
168
/// Helps determine the size of output of convolution
169
- #[ derive( Copy , Clone ) ]
169
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
170
170
pub enum ConvMode {
171
171
/// Default convolution mode where output size is same as input size
172
172
DEFAULT = 0 ,
@@ -175,7 +175,7 @@ pub enum ConvMode {
175
175
}
176
176
177
177
/// Helps determine if convolution is in Spatial or Frequency domain
178
- #[ derive( Copy , Clone ) ]
178
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
179
179
pub enum ConvDomain {
180
180
/// ArrayFire chooses whether the convolution will be in spatial domain or frequency domain
181
181
AUTO = 0 ,
@@ -186,7 +186,7 @@ pub enum ConvDomain {
186
186
}
187
187
188
188
/// Error metric used by `matchTemplate` function
189
- #[ derive( Copy , Clone ) ]
189
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
190
190
pub enum MatchType {
191
191
/// Sum of Absolute Differences
192
192
SAD = 0 ,
@@ -209,7 +209,7 @@ pub enum MatchType {
209
209
}
210
210
211
211
/// Identify the color space of given image(Array)
212
- #[ derive( Copy , Clone ) ]
212
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
213
213
pub enum ColorSpace {
214
214
/// Grayscale color space
215
215
GRAY = 0 ,
@@ -220,7 +220,7 @@ pub enum ColorSpace {
220
220
}
221
221
222
222
/// Helps determine the type of a Matrix
223
- #[ derive( Copy , Clone ) ]
223
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
224
224
pub enum MatProp {
225
225
/// Default (no-op)
226
226
NONE ,
@@ -248,7 +248,7 @@ pub enum MatProp {
248
248
249
249
/// Norm type
250
250
#[ allow( non_camel_case_types) ]
251
- #[ derive( Copy , Clone ) ]
251
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
252
252
pub enum NormType {
253
253
/// Treats input as a vector and return sum of absolute values
254
254
VECTOR_1 = 0 ,
@@ -270,7 +270,7 @@ pub enum NormType {
270
270
271
271
/// Dictates what color map is used for Image rendering
272
272
#[ repr( C ) ]
273
- #[ derive( Copy , Clone ) ]
273
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
274
274
pub enum ColorMap {
275
275
/// Default color map is grayscale range [0-1]
276
276
DEFAULT = 0 ,
@@ -290,7 +290,7 @@ pub enum ColorMap {
290
290
291
291
/// YCbCr Standards
292
292
#[ repr( C ) ]
293
- #[ derive( Copy , Clone ) ]
293
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
294
294
pub enum YCCStd {
295
295
/// ITU-R BT.601 (formerly CCIR 601) standard
296
296
YCC_601 = 601 ,
@@ -302,7 +302,7 @@ pub enum YCCStd {
302
302
303
303
/// Homography type
304
304
#[ repr( C ) ]
305
- #[ derive( Copy , Clone ) ]
305
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
306
306
pub enum HomographyType {
307
307
/// RANdom SAmple Consensus algorithm
308
308
RANSAC = 0 ,
@@ -312,7 +312,7 @@ pub enum HomographyType {
312
312
313
313
/// Plotting markers
314
314
#[ repr( C ) ]
315
- #[ derive( Copy , Clone ) ]
315
+ #[ derive( Clone , Copy , Debug , PartialEq ) ]
316
316
pub enum MarkerType {
317
317
NONE = 0 ,
318
318
POINT = 1 ,
0 commit comments