Package io.scanbot.sdk.imagefilters
Class ScanbotBinarizationFilter
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ScanbotBinarizationFilter extends ParametricFilter implements Parcelable
Automatic binarization filter. This filter is a good starting point for most use cases.
-
-
Field Summary
Fields Modifier and Type Field Description private final String
_type
private OutputMode
outputMode
-
Constructor Summary
Constructors Constructor Description ScanbotBinarizationFilter(Map<String, Object> source)
ScanbotBinarizationFilter(JSONObject json)
ScanbotBinarizationFilter(OutputMode outputMode)
-
Method Summary
Modifier and Type Method Description String
get_type()
final OutputMode
getOutputMode()
Output mode of the filter. final Unit
setOutputMode(OutputMode outputMode)
Output mode of the filter. JSONObject
toJson()
final static ScanbotBinarizationFilter
default()
-
-
Constructor Detail
-
ScanbotBinarizationFilter
ScanbotBinarizationFilter(JSONObject json)
-
ScanbotBinarizationFilter
ScanbotBinarizationFilter(OutputMode outputMode)
-
-
Method Detail
-
getOutputMode
final OutputMode getOutputMode()
Output mode of the filter. BINARY will return a black and white image, GRAYSCALE will return an antialiased grayscale image. Default is BINARY
-
setOutputMode
final Unit setOutputMode(OutputMode outputMode)
Output mode of the filter. BINARY will return a black and white image, GRAYSCALE will return an antialiased grayscale image. Default is BINARY
-
toJson
JSONObject toJson()
-
default
final static ScanbotBinarizationFilter default()
-
-
-
-