Moments
Objective-C
@interface Moments : NSObject
@property double m00;
@property double m10;
@property double m01;
@property double m20;
@property double m11;
@property double m02;
@property double m30;
@property double m21;
@property double m12;
@property double m03;
@property double mu20;
@property double mu11;
@property double mu02;
@property double mu30;
@property double mu21;
@property double mu12;
@property double mu03;
@property double nu20;
@property double nu11;
@property double nu02;
@property double nu30;
@property double nu21;
@property double nu12;
@property double nu03;
#ifdef __cplusplus
@property(readonly) cv::Moments& nativeRef;
#endif
-(instancetype)initWithM00:(double)m00 m10:(double)m10 m01:(double)m01 m20:(double)m20 m11:(double)m11 m02:(double)m02 m30:(double)m30 m21:(double)m21 m12:(double)m12 m03:(double)m03;
-(instancetype)init;
-(instancetype)initWithVals:(NSArray<NSNumber*>*)vals;
#ifdef __cplusplus
+(instancetype)fromNative:(cv::Moments&)moments;
#endif
-(void)set:(NSArray<NSNumber*>*)vals;
-(void)completeState;
-(NSString *)description;
@end
Swift
class Moments : NSObject
-
Declaration
Objective-C
@property double m00
Swift
var m00: Double { get set }
-
Declaration
Objective-C
@property double m10
Swift
var m10: Double { get set }
-
Declaration
Objective-C
@property double m01
Swift
var m01: Double { get set }
-
Declaration
Objective-C
@property double m20
Swift
var m20: Double { get set }
-
Declaration
Objective-C
@property double m11
Swift
var m11: Double { get set }
-
Declaration
Objective-C
@property double m02
Swift
var m02: Double { get set }
-
Declaration
Objective-C
@property double m30
Swift
var m30: Double { get set }
-
Declaration
Objective-C
@property double m21
Swift
var m21: Double { get set }
-
Declaration
Objective-C
@property double m12
Swift
var m12: Double { get set }
-
Declaration
Objective-C
@property double m03
Swift
var m03: Double { get set }
-
Declaration
Objective-C
@property double mu20
Swift
var mu20: Double { get set }
-
Declaration
Objective-C
@property double mu11
Swift
var mu11: Double { get set }
-
Declaration
Objective-C
@property double mu02
Swift
var mu02: Double { get set }
-
Declaration
Objective-C
@property double mu30
Swift
var mu30: Double { get set }
-
Declaration
Objective-C
@property double mu21
Swift
var mu21: Double { get set }
-
Declaration
Objective-C
@property double mu12
Swift
var mu12: Double { get set }
-
Declaration
Objective-C
@property double mu03
Swift
var mu03: Double { get set }
-
Declaration
Objective-C
@property double nu20
Swift
var nu20: Double { get set }
-
Declaration
Objective-C
@property double nu11
Swift
var nu11: Double { get set }
-
Declaration
Objective-C
@property double nu02
Swift
var nu02: Double { get set }
-
Declaration
Objective-C
@property double nu30
Swift
var nu30: Double { get set }
-
Declaration
Objective-C
@property double nu21
Swift
var nu21: Double { get set }
-
Declaration
Objective-C
@property double nu12
Swift
var nu12: Double { get set }
-
Declaration
Objective-C
@property double nu03
Swift
var nu03: Double { get set }
-
Declaration
Objective-C
-(instancetype)initWithM00:(double)m00 m10:(double)m10 m01:(double)m01 m20:(double)m20 m11:(double)m11 m02:(double)m02 m30:(double)m30 m21:(double)m21 m12:(double)m12 m03:(double)m03;
Swift
init(m00: Double, m10: Double, m01: Double, m20: Double, m11: Double, m02: Double, m30: Double, m21: Double, m12: Double, m03: Double)
-
Declaration
Objective-C
-(instancetype)init;
Swift
init()
-
Declaration
Objective-C
-(instancetype)initWithVals:(NSArray<NSNumber*>*)vals;
Swift
init(vals: [NSNumber])
-
Declaration
Objective-C
-(void)set:(NSArray<NSNumber*>*)vals;
Swift
func set(_ vals: [NSNumber])
-
Declaration
Objective-C
-(void)completeState;
Swift
func completeState()
-
Declaration
Objective-C
-(NSString *)description;
Swift
func description() -> String