PointProviderLab class final
Provides conversions needed for K-Means quantization. Converting input to points, and converting the final state of the K-Means algorithm to colors.
- Implemented types
Constructors
- PointProviderLab()
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
distance(
List< double> one, List<double> two) → double -
Standard CIE 1976 delta E formula also takes the square root, unneeded here.
This method is used by quantization algorithms to compare distance,
and the relative ordering is the same,
with or without a square root.
override
-
fromInt(
int argb) → List< double> -
Convert a color represented in ARGB to a 3-element array of Lab* coordinates of the color.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toInt(
List< double> lab) → int -
Convert a 3-element array to a color represented in ARGB.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited