public class FactoryThresholdBinary
extends java.lang.Object
| Constructor and Description |
|---|
FactoryThresholdBinary() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends boofcv.struct.image.ImageGray<T>> |
blockMean(boofcv.struct.ConfigLength regionWidth,
double scale,
boolean down,
boolean thresholdFromLocalBlocks,
java.lang.Class<T> inputType)
Applies a non-overlapping block mean threshold
|
static <T extends boofcv.struct.image.ImageGray<T>> |
blockMinMax(boofcv.struct.ConfigLength regionWidth,
double scale,
boolean down,
boolean thresholdFromLocalBlocks,
double minimumSpread,
java.lang.Class<T> inputType)
Applies a very fast non-overlapping block thresholding algorithm which uses min/max statistics.
|
static <T extends boofcv.struct.image.ImageGray<T>> |
blockOtsu(boofcv.struct.ConfigLength regionWidth,
double scale,
boolean down,
boolean thresholdFromLocalBlocks,
boolean otsu2,
double tuning,
java.lang.Class<T> inputType)
Applies a non-overlapping block Otsu threshold
|
static <T extends boofcv.struct.image.ImageGray<T>> |
globalEntropy(int minValue,
int maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
globalFixed(double threshold,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
globalHuang(double minValue,
double maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
globalLi(double minValue,
double maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
globalOtsu(double minValue,
double maxValue,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
localGaussian(boofcv.struct.ConfigLength regionWidth,
double scale,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
localMean(boofcv.struct.ConfigLength width,
double scale,
boolean down,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
localNick(boofcv.struct.ConfigLength width,
boolean down,
float k,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
localOtsu(boofcv.struct.ConfigLength regionWidth,
double scale,
boolean down,
boolean otsu2,
double tuning,
java.lang.Class<T> inputType)
Applies a local Otsu threshold
|
static <T extends boofcv.struct.image.ImageGray<T>> |
localSauvola(boofcv.struct.ConfigLength width,
boolean down,
float k,
java.lang.Class<T> inputType) |
static <T extends boofcv.struct.image.ImageGray<T>> |
threshold(ConfigThreshold config,
java.lang.Class<T> inputType)
Creates threshold using a config class
|
public static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> localGaussian(boofcv.struct.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 imageLocalGaussianBinaryFilterpublic static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> localSauvola(boofcv.struct.ConfigLength width, boolean down, float k, java.lang.Class<T> inputType)
width - Width of square region.down - Should it threshold up or down.k - User specified threshold adjustment factor. Must be positive. Try 0.3inputType - Type of input imageThresholdSauvolapublic static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> localNick(boofcv.struct.ConfigLength width, boolean down, float k, java.lang.Class<T> inputType)
width - size of local region. Try 31down - Should it threshold up or down.k - The Niblack factor. Recommend -0.1 to -0.2inputType - Type of input imageThresholdNickpublic static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> localMean(boofcv.struct.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(T, boofcv.struct.image.GrayU8, boofcv.struct.ConfigLength, double, boolean, T, T, boofcv.concurrency.WorkArrays)public static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> localOtsu(boofcv.struct.ConfigLength regionWidth, double scale, boolean down, boolean otsu2, double tuning, java.lang.Class<T> inputType)
regionWidth - About how wide and tall you wish a block to be in pixels.scale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.tuning - Tuning parameter. 0 = standard Otsu. Greater than 0 will penalize zero texture.inputType - Type of input imageThresholdLocalOtsupublic static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> blockMinMax(boofcv.struct.ConfigLength regionWidth, double scale, boolean down, boolean thresholdFromLocalBlocks, double minimumSpread, java.lang.Class<T> inputType)
regionWidth - Approximate size of block regionscale - 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.inputType - Type of input imageThresholdBlockMinMaxpublic static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> blockMean(boofcv.struct.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 boofcv.struct.image.ImageGray<T>> InputToBinary<T> blockOtsu(boofcv.struct.ConfigLength regionWidth, double scale, boolean down, boolean thresholdFromLocalBlocks, boolean otsu2, double tuning, java.lang.Class<T> inputType)
regionWidth - Approximate size of block regionscale - Scale factor adjust for threshold. 1.0 means no change.down - Should it threshold up or down.inputType - Type of input imageThresholdBlockOtsupublic static <T extends boofcv.struct.image.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 boofcv.struct.image.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 boofcv.struct.image.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 boofcv.struct.image.ImageGray<T>> InputToBinary<T> globalLi(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.computeLi(int[], int)public static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> globalHuang(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.computeHuang(int[], int)public static <T extends boofcv.struct.image.ImageGray<T>> InputToBinary<T> threshold(ConfigThreshold config, java.lang.Class<T> inputType)
config - ConfigurationinputType - Type of input image