Package io.scanbot.imagefilters
Class WhiteBlackPointFilter
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class WhiteBlackPointFilter extends ParametricFilter
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 Float
blackPoint
private final Float
whitePoint
-
Constructor Summary
Constructors Constructor Description WhiteBlackPointFilter(Float blackPoint, Float whitePoint)
-
Method Summary
Modifier and Type Method Description final Float
getBlackPoint()
Fraction of the value channel range that is set to 0. final Float
getWhitePoint()
Fraction of the value channel range that is not set to 255. -
-
Method Detail
-
getBlackPoint
final Float getBlackPoint()
Fraction of the value channel range that is set to 0. The value should be in the range from 0 to 1.
-
getWhitePoint
final Float getWhitePoint()
Fraction of the value channel range that is not set to 255. The value should be in the range from 0 to 1.
-
-
-
-