public class FactoryThresholdBinary
extends java.lang.Object
| Constructor and Description |
|---|
FactoryThresholdBinary() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageSingleBand> |
adaptiveGaussian(int radius,
double bias,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
adaptiveSauvola(int radius,
float k,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
adaptiveSquare(int radius,
double bias,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
globalEntropy(int minValue,
int maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
globalFixed(double threshold,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
globalOtsu(int minValue,
int maxValue,
boolean down,
java.lang.Class<T> inputType) |
public static <T extends ImageSingleBand> InputToBinary<T> adaptiveGaussian(int radius, double bias, boolean down, java.lang.Class<T> inputType)
radius - Radius of square region.bias - Bias used to adjust thresholddown - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.adaptiveGaussian(boofcv.struct.image.ImageSingleBand, boofcv.struct.image.ImageUInt8, int, double, boolean, boofcv.struct.image.ImageSingleBand, boofcv.struct.image.ImageSingleBand)public static <T extends ImageSingleBand> InputToBinary<T> adaptiveSauvola(int radius, float k, boolean down, java.lang.Class<T> inputType)
radius - Radius of local region. Try 15k - Positive parameter used to tune threshold. Try 0.3down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.adaptiveSauvola(boofcv.struct.image.ImageSingleBand, boofcv.struct.image.ImageUInt8, int, float, boolean)public static <T extends ImageSingleBand> InputToBinary<T> adaptiveSquare(int radius, double bias, boolean down, java.lang.Class<T> inputType)
radius - Radius of square region.bias - Bias used to adjust thresholddown - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.adaptiveSquare(boofcv.struct.image.ImageSingleBand, boofcv.struct.image.ImageUInt8, int, double, boolean, boofcv.struct.image.ImageSingleBand, boofcv.struct.image.ImageSingleBand)public static <T extends ImageSingleBand> InputToBinary<T> globalEntropy(int minValue, int maxValue, boolean down, java.lang.Class<T> inputType)
minValue - The minimum value of a pixel in the image. (inclusive)maxValue - The maximum value of a pixel in the image. (exclusive)down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.computeEntropy(boofcv.struct.image.ImageSingleBand, int, int)public static <T extends ImageSingleBand> InputToBinary<T> globalFixed(double threshold, boolean down, java.lang.Class<T> inputType)
threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then >= is used.inputType - Type of input imageGThresholdImageOps.threshold(T, boofcv.struct.image.ImageUInt8, double, boolean)public static <T extends ImageSingleBand> InputToBinary<T> globalOtsu(int minValue, int maxValue, boolean down, java.lang.Class<T> inputType)
minValue - The minimum value of a pixel in the image. (inclusive)maxValue - The maximum value of a pixel in the image. (exclusive)down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.computeOtsu(boofcv.struct.image.ImageSingleBand, int, int)