Package boofcv.alg.filter.blur
Class GBlurImageOps
- java.lang.Object
-
- boofcv.alg.filter.blur.GBlurImageOps
-
public class GBlurImageOps extends java.lang.ObjectGeneralized functions for applying different image blur operators. Invokes functions fromBlurImageOps, which provides type specific functions.
-
-
Constructor Summary
Constructors Constructor Description GBlurImageOps()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends boofcv.struct.image.ImageBase<T>>
Tgaussian(T input, T output, double sigmaX, int radiusX, double sigmaY, int radiusY, boofcv.struct.image.ImageBase storage)Applies Gaussian blur to aImageGraystatic <T extends boofcv.struct.image.ImageBase<T>>
Tgaussian(T input, T output, double sigma, int radius, boofcv.struct.image.ImageBase storage)Applies Gaussian blur to aImageGraystatic <T extends boofcv.struct.image.ImageBase<T>>
Tmean(T input, T output, int radiusX, int radiusY, boofcv.struct.image.ImageBase storage, boofcv.concurrency.WorkArrays workVert)Applies a mean box filter with re-weighted borders.static <T extends boofcv.struct.image.ImageBase<T>>
Tmean(T input, T output, int radius, boofcv.struct.image.ImageBase storage, boofcv.concurrency.WorkArrays workVert)Applies a mean box filter.static <T extends boofcv.struct.image.ImageBase<T>>
TmeanB(T input, T output, int radiusX, int radiusY, boofcv.struct.border.ImageBorder<T> border, boofcv.struct.image.ImageBase storage, boofcv.concurrency.WorkArrays workVert)Applies a mean box filter with borders.static <T extends boofcv.struct.image.ImageBase<T>>
Tmedian(T input, T output, int radius, boofcv.concurrency.WorkArrays work)Applies a median filter.
-
-
-
Method Detail
-
mean
public static <T extends boofcv.struct.image.ImageBase<T>> T mean(T input, @Nullable T output, int radius, @Nullable boofcv.struct.image.ImageBase storage, @Nullable boofcv.concurrency.WorkArrays workVert)Applies a mean box filter.- Type Parameters:
T- Input image type.- Parameters:
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.- Returns:
- Output blurred image.
-
mean
public static <T extends boofcv.struct.image.ImageBase<T>> T mean(T input, @Nullable T output, int radiusX, int radiusY, @Nullable boofcv.struct.image.ImageBase storage, @Nullable boofcv.concurrency.WorkArrays workVert)Applies a mean box filter with re-weighted borders.- Type Parameters:
T- Input image type.- Parameters:
input- Input image. Not modified.output- (Optional) Storage for output image, Can be null. Modified.radiusX- Radius of the box blur function along the x-axisradiusY- Radius of the box blur function along the y-axis.storage- (Optional) Storage for intermediate results. Same size as input image. Can be null.- Returns:
- Output blurred image.
-
meanB
public static <T extends boofcv.struct.image.ImageBase<T>> T meanB(T input, @Nullable T output, int radiusX, int radiusY, @Nullable boofcv.struct.border.ImageBorder<T> border, @Nullable boofcv.struct.image.ImageBase storage, @Nullable boofcv.concurrency.WorkArrays workVert)Applies a mean box filter with borders.- Type Parameters:
T- Input image type.- Parameters:
input- Input image. Not modified.output- (Optional) Storage for output image, Can be null. Modified.radiusX- Radius of the box blur function along the x-axisradiusY- Radius of the box blur function along the y-axisborder- (Optional) Specified how the image borders are handled. If null then only the inner portion is processed.storage- (Optional) Storage for intermediate results. Same size as input image. Can be null.- Returns:
- Output blurred image.
-
median
public static <T extends boofcv.struct.image.ImageBase<T>> T median(T input, @Nullable T output, int radius, @Nullable boofcv.concurrency.WorkArrays work)Applies a median filter.- Type Parameters:
T- Input image type.- Parameters:
input- Input image. Not modified.output- (Optional) Storage for output image, Can be null. Modified.radius- Radius of the median blur function.- Returns:
- Output blurred image.
-
gaussian
public static <T extends boofcv.struct.image.ImageBase<T>> T gaussian(T input, @Nullable T output, double sigma, int radius, @Nullable boofcv.struct.image.ImageBase storage)Applies Gaussian blur to aImageGray- Type Parameters:
T- Input image type.- Parameters:
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.- Returns:
- Output blurred image.
-
gaussian
public static <T extends boofcv.struct.image.ImageBase<T>> T gaussian(T input, @Nullable T output, double sigmaX, int radiusX, double sigmaY, int radiusY, @Nullable boofcv.struct.image.ImageBase storage)Applies Gaussian blur to aImageGray- Type Parameters:
T- Input image type.- Parameters:
input- Input image. Not modified.output- (Optional) Storage for output image, Can be null. Modified.sigmaX- Gaussian distribution's sigma along x-axis. If ≤ 0 then will be selected based on radius.radiusX- Radius of the Gaussian blur function along x-axis. If ≤ 0 then radius will be determined by sigma.sigmaY- Gaussian distribution's sigma along y-axis. If ≤ 0 then will be selected based on radius.radiusY- Radius of the Gaussian blur function along y-axis. If ≤ 0 then radius will be determined by sigma.storage- (Optional) Storage for intermediate results. Same size as input image. Can be null.- Returns:
- Output blurred image.
-
-