Documentation of 'boofcv.alg.filter.blur.BlurImageOps' Java class
BlurImageOps
boofcv.alg.filter.blur

Class BlurImageOps



  • public class BlurImageOps
    extends java.lang.Object
    Catch all class for function which "blur" an image, typically used to "reduce" the amount of noise in the image.
    • Constructor Detail

      • BlurImageOps

        public BlurImageOps()
    • Method Detail

      • mean

        public static GrayU8 mean(GrayU8 input,
                                  GrayU8 output,
                                  int radius,
                                  GrayU8 storage)
        Applies a mean box filter.
        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.
      • median

        public static GrayU8 median(GrayU8 input,
                                    GrayU8 output,
                                    int radius)
        Applies a median filter.
        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 GrayU8 gaussian(GrayU8 input,
                                      GrayU8 output,
                                      double sigma,
                                      int radius,
                                      GrayU8 storage)
        Applies Gaussian blur.
        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.
      • mean

        public static GrayF32 mean(GrayF32 input,
                                   GrayF32 output,
                                   int radius,
                                   GrayF32 storage)
        Applies a mean box filter.
        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.
      • median

        public static GrayF32 median(GrayF32 input,
                                     GrayF32 output,
                                     int radius)
        Applies a median filter.
        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 GrayF32 gaussian(GrayF32 input,
                                       GrayF32 output,
                                       double sigma,
                                       int radius,
                                       GrayF32 storage)
        Applies Gaussian blur.
        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.
      • mean

        public static <T extends ImageGray> Planar<T> mean(Planar<T> input,
                                                           Planar<T> output,
                                                           int radius,
                                                           T storage)
        Applies mean box filter to a Planar
        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.
      • median

        public static <T extends ImageGray> Planar<T> median(Planar<T> input,
                                                             Planar<T> output,
                                                             int radius)
        Applies median filter to a Planar
        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 ImageGray> Planar<T> gaussian(Planar<T> input,
                                                               Planar<T> output,
                                                               double sigma,
                                                               int radius,
                                                               T storage)
        Applies Gaussian blur to a Planar
        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.

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.