Scalar class

Inheritance

Constructors

Scalar([double val1 = 0.0, double val2 = 0.0, double val3 = 0.0, double val4 = 0.0])
factory
Scalar.all(double val)
factory
Scalar.fromNative(Scalar s)
factory
Scalar.fromPointer(Pointer<Scalar> ptr, [bool attach = true])
factory
Scalar.fromRgb(int r, int g, int b)
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isDisposed → bool
Whether this object has been disposed.
no setterinherited
props → List<double>
no setteroverride
ptr ↔ Pointer<Scalar>
getter/setter pairinherited
ref → Scalar
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
val ↔ List<double>
getter/setter pair
val1 ↔ double
getter/setter pair
val2 ↔ double
getter/setter pair
val3 ↔ double
getter/setter pair
val4 ↔ double
getter/setter pair

Methods

dispose() → void
Releases the underlying native resources. Idempotent: calling it more than once is safe, but the object must not be used after dispose.
inherited
freeNative() → void
Frees the native resources owned by this object. Subclasses implement the concrete free logic here; callers must use dispose instead.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pow(int n) → Scalar
sqrt() → Scalar
toString() → String
A string representation of this object.
override

Operators

operator *(Scalar other) → Scalar
operator +(Scalar other) → Scalar
operator -(Scalar other) → Scalar
operator /(Scalar other) → Scalar
operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

black → Scalar
final
blue → Scalar
final
finalizer → NativeFinalizer
final
green → Scalar
final
max → Scalar
final
red → Scalar
final
white → Scalar
final
zeros → Scalar
final