Class BlurStorageFilter<T extends boofcv.struct.image.ImageBase<T>>

  • All Implemented Interfaces:
    BlurFilter<T>, FilterImageInterface<T,​T>

    public class BlurStorageFilter<T extends boofcv.struct.image.ImageBase<T>>
    extends java.lang.Object
    implements BlurFilter<T>
    Simplified interface for using a blur filter that requires storage. Reflections are used to look up a function inside of BlurImageOps which is then invoked later on.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlurStorageFilter​(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, double sigmaX, int radiusX, double sigmaY, int radiusY)  
      BlurStorageFilter​(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, int radius)  
      BlurStorageFilter​(java.lang.String functionName, boofcv.struct.image.ImageType<T> inputType, int radiusX, int radiusY)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getBorderX()
      How many pixels are not processed along the x-axis border, left and right.
      int getBorderY()
      How many pixels are not processed along the y-axis border, top and bottom.
      boofcv.struct.image.ImageType<T> getInputType()
      Specifies the input image type
      boofcv.struct.image.ImageType<T> getOutputType()
      Specifies the output image type
      int getRadius()
      Radius of the square region.
      void process​(T input, T output)
      Processes the input image and writes the results to the output image.
      void setRadius​(int radius)  
      • Methods inherited from class java.lang.Object

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

      • BlurStorageFilter

        public BlurStorageFilter​(java.lang.String functionName,
                                 boofcv.struct.image.ImageType<T> inputType,
                                 int radius)
      • BlurStorageFilter

        public BlurStorageFilter​(java.lang.String functionName,
                                 boofcv.struct.image.ImageType<T> inputType,
                                 int radiusX,
                                 int radiusY)
      • BlurStorageFilter

        public BlurStorageFilter​(java.lang.String functionName,
                                 boofcv.struct.image.ImageType<T> inputType,
                                 double sigmaX,
                                 int radiusX,
                                 double sigmaY,
                                 int radiusY)
    • Method Detail

      • getRadius

        public int getRadius()
        Radius of the square region. The width is defined as the radius*2 + 1.
        Specified by:
        getRadius in interface BlurFilter<T extends boofcv.struct.image.ImageBase<T>>
        Returns:
        Blur region's radius.
      • setRadius

        public void setRadius​(int radius)
        Specified by:
        setRadius in interface BlurFilter<T extends boofcv.struct.image.ImageBase<T>>
      • process

        public void process​(T input,
                            T output)
        Description copied from interface: FilterImageInterface
        Processes the input image and writes the results to the output image.
        Specified by:
        process in interface FilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,​T extends boofcv.struct.image.ImageBase<T>>
        Parameters:
        input - Input image.
        output - Output image.
      • getBorderX

        public int getBorderX()
        Description copied from interface: FilterImageInterface
        How many pixels are not processed along the x-axis border, left and right.
        Specified by:
        getBorderX in interface FilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,​T extends boofcv.struct.image.ImageBase<T>>
        Returns:
        Border size in pixels.
      • getBorderY

        public int getBorderY()
        Description copied from interface: FilterImageInterface
        How many pixels are not processed along the y-axis border, top and bottom.
        Specified by:
        getBorderY in interface FilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,​T extends boofcv.struct.image.ImageBase<T>>
        Returns:
        Border size in pixels.
      • getInputType

        public boofcv.struct.image.ImageType<T> getInputType()
        Description copied from interface: FilterImageInterface
        Specifies the input image type
        Specified by:
        getInputType in interface FilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,​T extends boofcv.struct.image.ImageBase<T>>
        Returns:
        Input image type.
      • getOutputType

        public boofcv.struct.image.ImageType<T> getOutputType()
        Description copied from interface: FilterImageInterface
        Specifies the output image type
        Specified by:
        getOutputType in interface FilterImageInterface<T extends boofcv.struct.image.ImageBase<T>,​T extends boofcv.struct.image.ImageBase<T>>
        Returns:
        Output image type.