Class GBlurImageOps


  • public class GBlurImageOps
    extends java.lang.Object
    Generalized functions for applying different image blur operators. Invokes functions from BlurImageOps, 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>>
      T
      gaussian​(T input, T output, double sigmaX, int radiusX, double sigmaY, int radiusY, boofcv.struct.image.ImageBase storage)
      Applies Gaussian blur to a ImageGray
      static <T extends boofcv.struct.image.ImageBase<T>>
      T
      gaussian​(T input, T output, double sigma, int radius, boofcv.struct.image.ImageBase storage)
      Applies Gaussian blur to a ImageGray
      static <T extends boofcv.struct.image.ImageBase<T>>
      T
      mean​(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>>
      T
      mean​(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>>
      T
      meanB​(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>>
      T
      median​(T input, T output, int radius, boofcv.concurrency.WorkArrays work)
      Applies a median filter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GBlurImageOps

        public GBlurImageOps()
    • 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-axis
        radiusY - 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-axis
        radiusY - Radius of the box blur function along the y-axis
        border - (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 a ImageGray
        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 a ImageGray
        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.