public class ThresholdImageOps
extends java.lang.Object
Operations for thresholding images and converting them into a binary image.
WARNING: Do not modify. Automatically generated by boofcv.alg.filter.binary.GenerateThresholdImageOps.
| Constructor and Description |
|---|
ThresholdImageOps() |
| Modifier and Type | Method and Description |
|---|---|
static ImageUInt8 |
localGaussian(ImageFloat32 input,
ImageUInt8 output,
int radius,
float scale,
boolean down,
ImageFloat32 storage1,
ImageFloat32 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static ImageUInt8 |
localGaussian(ImageUInt8 input,
ImageUInt8 output,
int radius,
float scale,
boolean down,
ImageUInt8 storage1,
ImageUInt8 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static ImageUInt8 |
localSquare(ImageFloat32 input,
ImageUInt8 output,
int radius,
float scale,
boolean down,
ImageFloat32 storage1,
ImageFloat32 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static ImageUInt8 |
localSquare(ImageUInt8 input,
ImageUInt8 output,
int radius,
float scale,
boolean down,
ImageUInt8 storage1,
ImageUInt8 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static ImageUInt8 |
threshold(ImageFloat32 input,
ImageUInt8 output,
float threshold,
boolean down)
Applies a global threshold across the whole image.
|
static ImageUInt8 |
threshold(ImageFloat64 input,
ImageUInt8 output,
double threshold,
boolean down)
Applies a global threshold across the whole image.
|
static ImageUInt8 |
threshold(ImageSInt16 input,
ImageUInt8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
static ImageUInt8 |
threshold(ImageSInt32 input,
ImageUInt8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
static ImageUInt8 |
threshold(ImageUInt16 input,
ImageUInt8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
static ImageUInt8 |
threshold(ImageUInt8 input,
ImageUInt8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
public static ImageUInt8 threshold(ImageFloat32 input, ImageUInt8 output, float threshold, boolean down)
input - Input image. Not modified.output - (Optional) Binary output image. If null a new image will be declared. Modified.threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then > is used.public static ImageUInt8 threshold(ImageFloat64 input, ImageUInt8 output, double threshold, boolean down)
input - Input image. Not modified.output - (Optional) Binary output image. If null a new image will be declared. Modified.threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then > is used.public static ImageUInt8 threshold(ImageUInt8 input, ImageUInt8 output, int threshold, boolean down)
input - Input image. Not modified.output - (Optional) Binary output image. If null a new image will be declared. Modified.threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then > is used.public static ImageUInt8 threshold(ImageSInt16 input, ImageUInt8 output, int threshold, boolean down)
input - Input image. Not modified.output - (Optional) Binary output image. If null a new image will be declared. Modified.threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then > is used.public static ImageUInt8 threshold(ImageUInt16 input, ImageUInt8 output, int threshold, boolean down)
input - Input image. Not modified.output - (Optional) Binary output image. If null a new image will be declared. Modified.threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then > is used.public static ImageUInt8 threshold(ImageSInt32 input, ImageUInt8 output, int threshold, boolean down)
input - Input image. Not modified.output - (Optional) Binary output image. If null a new image will be declared. Modified.threshold - threshold value.down - If true then the inequality <= is used, otherwise if false then > is used.public static ImageUInt8 localSquare(ImageUInt8 input, ImageUInt8 output, int radius, float scale, boolean down, ImageUInt8 storage1, ImageUInt8 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.radius - Radius of square region.scale - Scale factor used to adjust threshold. Try 0.95down - Should it threshold up or down.storage1 - (Optional) Storage for intermediate step. If null will be declared internally.storage2 - (Optional) Storage for intermediate step. If null will be declared internally.public static ImageUInt8 localGaussian(ImageUInt8 input, ImageUInt8 output, int radius, float scale, boolean down, ImageUInt8 storage1, ImageUInt8 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.radius - Radius of square region.scale - Scale factor used to adjust threshold. Try 0.95down - Should it threshold up or down.storage1 - (Optional) Storage for intermediate step. If null will be declared internally.storage2 - (Optional) Storage for intermediate step. If null will be declared internally.public static ImageUInt8 localSquare(ImageFloat32 input, ImageUInt8 output, int radius, float scale, boolean down, ImageFloat32 storage1, ImageFloat32 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.radius - Radius of square region.scale - Scale factor used to adjust threshold. Try 0.95down - Should it threshold up or down.storage1 - (Optional) Storage for intermediate step. If null will be declared internally.storage2 - (Optional) Storage for intermediate step. If null will be declared internally.public static ImageUInt8 localGaussian(ImageFloat32 input, ImageUInt8 output, int radius, float scale, boolean down, ImageFloat32 storage1, ImageFloat32 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.radius - Radius of square region.scale - Scale factor used to adjust threshold. Try 0.95down - Should it threshold up or down.storage1 - (Optional) Storage for intermediate step. If null will be declared internally.storage2 - (Optional) Storage for intermediate step. If null will be declared internally.