Package io.scanbot.sdk.imageprocessing
Class ContrastFilter
java.lang.Object
io.scanbot.sdk.imageprocessing.ParametricFilter
io.scanbot.sdk.imageprocessing.ContrastFilter
Contrast adjustment filter.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs ContrastFilter with default parameters.ContrastFilter(double contrast) Constructs ContrastFilter with the given params. -
Method Summary
Modifier and TypeMethodDescriptiondoubleGetter for contrast field.voidsetContrast(double contrast) Setter for contrast field.
-
Constructor Details
-
ContrastFilter
public ContrastFilter(double contrast) Constructs ContrastFilter with the given params.- Parameters:
contrast- Contrast adjustment value in the range from -1 to 254 (inclusively). Negative values will decrease the contrast, positive values will increase it. Default is `0.0`.
-
ContrastFilter
public ContrastFilter()Constructs ContrastFilter with default parameters.
-
-
Method Details
-
getContrast
public double getContrast()Getter for contrast field. See constructor documentation for more information about the field.- Returns:
- contrast
-
setContrast
public void setContrast(double contrast) Setter for contrast field. See constructor documentation for more information about the field.- Parameters:
contrast- Value to set.
-