Package io.scanbot.sdk.imagefilters
Class WhiteBlackPointFilter
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class WhiteBlackPointFilter extends ParametricFilter implements Parcelable
Maps image value channel so that all the pixels darker than the black point are set to 0, all the pixels brighter than the white point are set to 255, and the pixels in between are linearly scaled.
-
-
Field Summary
Fields Modifier and Type Field Description private final String_typeprivate DoubleblackPointprivate DoublewhitePoint
-
Constructor Summary
Constructors Constructor Description WhiteBlackPointFilter(Map<String, Object> source)WhiteBlackPointFilter(JSONObject json)WhiteBlackPointFilter(Double blackPoint, Double whitePoint)
-
Method Summary
Modifier and Type Method Description Stringget_type()final DoublegetBlackPoint()Fraction of the value channel range that is set to 0. final UnitsetBlackPoint(Double blackPoint)Fraction of the value channel range that is set to 0. final DoublegetWhitePoint()Fraction of the value channel range that is not set to 255. final UnitsetWhitePoint(Double whitePoint)Fraction of the value channel range that is not set to 255. JSONObjecttoJson(ToJsonConfiguration config)WhiteBlackPointFilterclone()final static WhiteBlackPointFilterdefault()-
-
Method Detail
-
getBlackPoint
final Double getBlackPoint()
Fraction of the value channel range that is set to 0. The value should be in the range from 0 to 1.
Default is 0.0
-
setBlackPoint
final Unit setBlackPoint(Double blackPoint)
Fraction of the value channel range that is set to 0. The value should be in the range from 0 to 1.
Default is 0.0
-
getWhitePoint
final Double getWhitePoint()
Fraction of the value channel range that is not set to 255. The value should be in the range from 0 to 1.
Default is 1.0
-
setWhitePoint
final Unit setWhitePoint(Double whitePoint)
Fraction of the value channel range that is not set to 255. The value should be in the range from 0 to 1.
Default is 1.0
-
toJson
JSONObject toJson(ToJsonConfiguration config)
-
clone
WhiteBlackPointFilter clone()
-
default
final static WhiteBlackPointFilter default()
-
-
-
-