public class FactoryThresholdBinary
extends java.lang.Object
| Constructor and Description |
|---|
FactoryThresholdBinary() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends ImageGray<T>> |
blockMean(ConfigLength regionWidth,
double scale,
boolean down,
boolean thresholdFromLocalBlocks,
java.lang.Class<T> inputType)
Applies a non-overlapping block mean threshold
|
static <T extends ImageGray<T>> |
blockMinMax(ConfigLength regionWidth,
double scale,
boolean down,
double minimumSpread,
boolean thresholdFromLocalBlocks,
java.lang.Class<T> inputType)
Applies a very fast non-overlapping block thresholding algorithm which uses min/max statistics.
|
static <T extends ImageGray<T>> |
blockOtsu(boolean otsu2,
ConfigLength regionWidth,
double tuning,
double scale,
boolean down,
boolean thresholdFromLocalBlocks,
java.lang.Class<T> inputType)
Applies a non-overlapping block Otsu threshold
|
static <T extends ImageGray<T>> |
globalEntropy(int minValue,
int maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
globalFixed(double threshold,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
globalOtsu(double minValue,
double maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
localGaussian(ConfigLength regionWidth,
double scale,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
localMean(ConfigLength width,
double scale,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
localNick(ConfigLength width,
float k,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
localOtsu(boolean otsu2,
ConfigLength regionWidth,
double tuning,
double scale,
boolean down,
java.lang.Class<T> inputType)
Applies a local Otsu threshold
|
static <T extends ImageGray<T>> |
localSauvola(ConfigLength width,
float k,
boolean down,
java.lang.Class<T> inputType) |
static <T extends ImageGray<T>> |
threshold(ConfigThreshold config,
java.lang.Class<T> inputType)
Creates threshold using a config class
|
public static <T extends ImageGray<T>> InputToBinary<T> localGaussian(ConfigLength regionWidth, double scale, boolean down, java.lang.Class<T> inputType)
regionWidth - Width of square region.scale - Threshold scale adjustmentdown - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.localGaussian(T, boofcv.struct.image.GrayU8, boofcv.struct.ConfigLength, double, boolean, T, boofcv.struct.image.ImageGray)public static <T extends ImageGray<T>> InputToBinary<T> localSauvola(ConfigLength width, float k, boolean down, java.lang.Class<T> inputType)
width - Width of square region.k - User specified threshold adjustment factor. Must be positive. Try 0.3down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.localSauvola(ImageGray, GrayU8, ConfigLength, float, boolean)public static <T extends ImageGray<T>> InputToBinary<T> localNick(ConfigLength width, float k, boolean down, java.lang.Class<T> inputType)
width - Width of square region.k - User specified threshold adjustment factor. Must be positive. Try -0.2down - Should it threshold up or down.inputType - Type of input imageGThresholdImageOps.localSauvola(ImageGray, GrayU8, ConfigLength, float, boolean)public static <T extends ImageGray<T>> InputToBinary<T> localMean(ConfigLength width, double scale, boolean down, java.lang.Class<T> inputType)
width - Width 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.localMean(ImageGray, GrayU8, ConfigLength, double, boolean, ImageGray, ImageGray)public static <T extends ImageGray<T>> InputToBinary<T> localOtsu(boolean otsu2, ConfigLength regionWidth, double tuning, double scale, boolean down, java.lang.Class<T> inputType)
scale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.regionWidth - About how wide and tall you wish a block to be in pixels.inputType - Type of input imageThresholdLocalOtsupublic static <T extends ImageGray<T>> InputToBinary<T> blockMinMax(ConfigLength regionWidth, double scale, boolean down, double minimumSpread, boolean thresholdFromLocalBlocks, java.lang.Class<T> inputType)
scale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.minimumSpread - If the difference between min max is less than or equal to this
value then it is considered textureless. Set to ≤ -1 to disable.regionWidth - Approximate size of block regioninputType - Type of input imageThresholdBlockMinMaxpublic static <T extends ImageGray<T>> InputToBinary<T> blockMean(ConfigLength regionWidth, double scale, boolean down, boolean thresholdFromLocalBlocks, java.lang.Class<T> inputType)
scale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.regionWidth - Approximate size of block regioninputType - Type of input imageThresholdBlockMeanpublic static <T extends ImageGray<T>> InputToBinary<T> blockOtsu(boolean otsu2, ConfigLength regionWidth, double tuning, double scale, boolean down, boolean thresholdFromLocalBlocks, java.lang.Class<T> inputType)
scale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.regionWidth - Approximate size of block regioninputType - Type of input imageThresholdBlockOtsupublic static <T extends ImageGray<T>> 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.ImageGray, double, double)public static <T extends ImageGray<T>> 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.GrayU8, double, boolean)public static <T extends ImageGray<T>> InputToBinary<T> globalOtsu(double minValue, double 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.ImageGray, double, double)public static <T extends ImageGray<T>> InputToBinary<T> threshold(ConfigThreshold config, java.lang.Class<T> inputType)
config - ConfigurationinputType - Type of input image