QuantizerWu class Null safety

Implemented types

Constructors

QuantizerWu()

Properties

cubes List<Box>
read / write
hashCode int
The hash code for this object.
read-onlyinherited
moments List<double>
read / write
momentsB List<int>
read / write
momentsG List<int>
read / write
momentsR List<int>
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
weights List<int>
read / write

Methods

computeMoments() → void
constructHistogram(Map<int, int> pixels) → void
createBoxes(int maxColorCount) CreateBoxesResult
createResult(int colorCount) List<int>
cut(Box one, Box two) bool
maximize(Box cube, Direction direction, int first, int last, int wholeR, int wholeG, int wholeB, int wholeW) MaximizeResult
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
quantize(Iterable<int> pixels, int colorCount) Future<QuantizerResult>
override
toString() String
A string representation of this object.
inherited
variance(Box cube) double

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

maxIndex int
final
sideLength int
final
totalSize int
final

Static Methods

bottom(Box cube, Direction direction, List<int> moment) int
getIndex(int r, int g, int b) int
top(Box cube, Direction direction, int position, List<int> moment) int
volume(Box cube, List<int> moment) int

Constants

indexBits → const int
5