public class FactoryThresholdBinary
extends java.lang.Object
| Constructor and Description |
|---|
FactoryThresholdBinary() |
| Modifier and Type | Method and Description |
|---|---|
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) |
static <T extends ImageSingleBand> |
localGaussian(int radius,
double scale,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
localSauvola(int radius,
float k,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
localSquare(int radius,
double scale,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
localSquareBlockMinMax(int regionWidth,
double scale,
boolean down,
double minimumSpread,
java.lang.Class<T> inputType) |
static <T extends ImageSingleBand> |
threshold(ConfigThreshold config,
java.lang.Class<T> inputType)
Creates threshold using a config class
|
public static <T extends ImageSingleBand> InputToBinary<T> localGaussian(int radius, double scale, boolean down, java.lang.Class<T> inputType)
radius - Radius of square region.scale - Threshold scale adjustmentdown - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.localGaussian(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> localSauvola(int radius, float k, boolean down, java.lang.Class<T> inputType)
radius - Radius of local region. Try 15k - User specified threshold adjustment factor. Must be positive. Try 0.3down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.localSauvola(boofcv.struct.image.ImageSingleBand, boofcv.struct.image.ImageUInt8, int, float, boolean)public static <T extends ImageSingleBand> InputToBinary<T> localSquare(int radius, double scale, boolean down, java.lang.Class<T> inputType)
radius - Radius of square region.scale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.localSquare(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> localSquareBlockMinMax(int regionWidth, double scale, boolean down, double minimumSpread, java.lang.Class<T> inputType)
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. (inclusive)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. (inclusive)down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.computeOtsu(boofcv.struct.image.ImageSingleBand, int, int)public static <T extends ImageSingleBand> InputToBinary<T> threshold(ConfigThreshold config, java.lang.Class<T> inputType)
config - ConfigurationinputType - Type of input image