public class ThresholdImageOps
extends java.lang.Object
Operations for thresholding images and converting them into a binary image.
| Constructor and Description |
|---|
ThresholdImageOps() |
| Modifier and Type | Method and Description |
|---|---|
static boofcv.struct.image.GrayU8 |
localGaussian(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayF32 storage1,
boofcv.struct.image.GrayF32 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static boofcv.struct.image.GrayU8 |
localGaussian(boofcv.struct.image.GrayU16 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayU16 storage1,
boofcv.struct.image.GrayU16 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static boofcv.struct.image.GrayU8 |
localGaussian(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayU8 storage1,
boofcv.struct.image.GrayU8 storage2)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static boofcv.struct.image.GrayU8 |
localMean(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayF32 storage1,
boofcv.struct.image.GrayF32 storage2,
boofcv.concurrency.FWorkArrays storage3)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static boofcv.struct.image.GrayU8 |
localMean(boofcv.struct.image.GrayU16 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayU16 storage1,
boofcv.struct.image.GrayU16 storage2,
boofcv.concurrency.IWorkArrays storage3)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static boofcv.struct.image.GrayU8 |
localMean(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayU8 storage1,
boofcv.struct.image.GrayU8 storage2,
boofcv.concurrency.IWorkArrays storage3)
Thresholds the image using a locally adaptive threshold that is computed using a local square region centered
on each pixel.
|
static boofcv.struct.image.GrayU8 |
threshold(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayU8 output,
float threshold,
boolean down)
Applies a global threshold across the whole image.
|
static boofcv.struct.image.GrayU8 |
threshold(boofcv.struct.image.GrayF64 input,
boofcv.struct.image.GrayU8 output,
double threshold,
boolean down)
Applies a global threshold across the whole image.
|
static boofcv.struct.image.GrayU8 |
threshold(boofcv.struct.image.GrayS16 input,
boofcv.struct.image.GrayU8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
static boofcv.struct.image.GrayU8 |
threshold(boofcv.struct.image.GrayS32 input,
boofcv.struct.image.GrayU8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
static boofcv.struct.image.GrayU8 |
threshold(boofcv.struct.image.GrayU16 input,
boofcv.struct.image.GrayU8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
static boofcv.struct.image.GrayU8 |
threshold(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayU8 output,
int threshold,
boolean down)
Applies a global threshold across the whole image.
|
public static boofcv.struct.image.GrayU8 threshold(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayU8 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 boofcv.struct.image.GrayU8 threshold(boofcv.struct.image.GrayF64 input,
boofcv.struct.image.GrayU8 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 boofcv.struct.image.GrayU8 threshold(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayU8 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 boofcv.struct.image.GrayU8 threshold(boofcv.struct.image.GrayS16 input,
boofcv.struct.image.GrayU8 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 boofcv.struct.image.GrayU8 threshold(boofcv.struct.image.GrayU16 input,
boofcv.struct.image.GrayU8 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 boofcv.struct.image.GrayU8 threshold(boofcv.struct.image.GrayS32 input,
boofcv.struct.image.GrayU8 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 boofcv.struct.image.GrayU8 localMean(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
@Nullable
boofcv.struct.image.GrayU8 storage1,
@Nullable
boofcv.struct.image.GrayU8 storage2,
@Nullable
boofcv.concurrency.IWorkArrays storage3)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.width - Width 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 boofcv.struct.image.GrayU8 localGaussian(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayU8 storage1,
boofcv.struct.image.GrayU8 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.width - Width 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 boofcv.struct.image.GrayU8 localMean(boofcv.struct.image.GrayU16 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
@Nullable
boofcv.struct.image.GrayU16 storage1,
@Nullable
boofcv.struct.image.GrayU16 storage2,
@Nullable
boofcv.concurrency.IWorkArrays storage3)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.width - Width 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 boofcv.struct.image.GrayU8 localGaussian(boofcv.struct.image.GrayU16 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayU16 storage1,
boofcv.struct.image.GrayU16 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.width - Width 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 boofcv.struct.image.GrayU8 localMean(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
@Nullable
boofcv.struct.image.GrayF32 storage1,
@Nullable
boofcv.struct.image.GrayF32 storage2,
@Nullable
boofcv.concurrency.FWorkArrays storage3)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.width - Width 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 boofcv.struct.image.GrayU8 localGaussian(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayU8 output,
boofcv.struct.ConfigLength width,
float scale,
boolean down,
boofcv.struct.image.GrayF32 storage1,
boofcv.struct.image.GrayF32 storage2)
input - Input image.output - (optional) Output binary image. If null it will be declared internally.width - Width 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.