ColorDocumentFilter class
Color document filter. This filter is a good starting point for most use cases.
- Inheritance
-
- Object
- ParametricFilter
- ColorDocumentFilter
Constructors
- ColorDocumentFilter({double contrastEnhancement = 0.5, double colorEnhancement = 0.5, double paperWhitening = 1.0, int paperWhiteningBias = 0})
-
ColorDocumentFilter.fromJson(Map<
String, dynamic> json) -
factory
Properties
- colorEnhancement ↔ double
-
Strength of color saturation enhancement. Typical values are between 0 and 1, although higher values are possible.
getter/setter pair
- contrastEnhancement ↔ double
-
Strength of contrast enhancement. Typical values are between 0 and 1, although higher values are possible.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- paperWhitening ↔ double
-
Paper whitening strength balances color enhancement and paper color improvement.
Only relevant if colorEnhancement is above 0. Typical values are between 0 and 2.
getter/setter pair
- paperWhiteningBias ↔ int
-
Paper whitening bias balances between whitening more of the paper of preserving more of the colors.
Negative values will preserve more colors, positive values will whiten more of the paper.
Only relevant if colorEnhancement is above 0. Typical values are between -25 and 25.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{ToJsonConfiguration? config}) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited