public class BlurImageOps
extends java.lang.Object
| Constructor and Description |
|---|
BlurImageOps() |
| Modifier and Type | Method and Description |
|---|---|
static GrayF32 |
gaussian(GrayF32 input,
GrayF32 output,
double sigma,
int radius,
GrayF32 storage)
Applies Gaussian blur.
|
static GrayF64 |
gaussian(GrayF64 input,
GrayF64 output,
double sigma,
int radius,
GrayF64 storage)
Applies Gaussian blur.
|
static GrayU8 |
gaussian(GrayU8 input,
GrayU8 output,
double sigma,
int radius,
GrayU8 storage)
Applies Gaussian blur.
|
static <T extends ImageGray> |
gaussian(Planar<T> input,
Planar<T> output,
double sigma,
int radius,
T storage)
Applies Gaussian blur to a
Planar |
static GrayF32 |
mean(GrayF32 input,
GrayF32 output,
int radius,
GrayF32 storage)
Applies a mean box filter.
|
static GrayF64 |
mean(GrayF64 input,
GrayF64 output,
int radius,
GrayF64 storage)
Applies a mean box filter.
|
static GrayU8 |
mean(GrayU8 input,
GrayU8 output,
int radius,
GrayU8 storage)
Applies a mean box filter.
|
static <T extends ImageGray> |
mean(Planar<T> input,
Planar<T> output,
int radius,
T storage)
Applies mean box filter to a
Planar |
static GrayF32 |
median(GrayF32 input,
GrayF32 output,
int radius)
Applies a median filter.
|
static GrayU8 |
median(GrayU8 input,
GrayU8 output,
int radius)
Applies a median filter.
|
static <T extends ImageGray> |
median(Planar<T> input,
Planar<T> output,
int radius)
Applies median filter to a
Planar |
public static GrayU8 mean(GrayU8 input, GrayU8 output, int radius, GrayU8 storage)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the box blur function.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static GrayU8 median(GrayU8 input, GrayU8 output, int radius)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the median blur function.public static GrayU8 gaussian(GrayU8 input, GrayU8 output, double sigma, int radius, GrayU8 storage)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.sigma - Gaussian distribution's sigma. If ≤ 0 then will be selected based on radius.radius - Radius of the Gaussian blur function. If ≤ 0 then radius will be determined by sigma.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static GrayF32 mean(GrayF32 input, GrayF32 output, int radius, GrayF32 storage)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the box blur function.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static GrayF64 mean(GrayF64 input, GrayF64 output, int radius, GrayF64 storage)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the box blur function.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static GrayF32 median(GrayF32 input, GrayF32 output, int radius)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the median blur function.public static GrayF32 gaussian(GrayF32 input, GrayF32 output, double sigma, int radius, GrayF32 storage)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.sigma - Gaussian distribution's sigma. If ≤ 0 then will be selected based on radius.radius - Radius of the Gaussian blur function. If ≤ 0 then radius will be determined by sigma.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static GrayF64 gaussian(GrayF64 input, GrayF64 output, double sigma, int radius, GrayF64 storage)
input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.sigma - Gaussian distribution's sigma. If ≤ 0 then will be selected based on radius.radius - Radius of the Gaussian blur function. If ≤ 0 then radius will be determined by sigma.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static <T extends ImageGray> Planar<T> mean(Planar<T> input, Planar<T> output, int radius, T storage)
PlanarT - Input image type.input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the box blur function.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.public static <T extends ImageGray> Planar<T> median(Planar<T> input, Planar<T> output, int radius)
PlanarT - Input image type.input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.radius - Radius of the median blur function.public static <T extends ImageGray> Planar<T> gaussian(Planar<T> input, Planar<T> output, double sigma, int radius, T storage)
PlanarT - Input image type.input - Input image. Not modified.output - (Optional) Storage for output image, Can be null. Modified.sigma - Gaussian distribution's sigma. If ≤ 0 then will be selected based on radius.radius - Radius of the Gaussian blur function. If ≤ 0 then radius will be determined by sigma.storage - (Optional) Storage for intermediate results. Same size as input image. Can be null.