Class LinearFilterSeparable

All Implemented Interfaces:
ProgressReporter
Direct Known Subclasses:
GaussianFilterSeparable

This class represents a 2D linear filter that is x/y-separable and specified by two 1D-kernels. It is based on GenericFilter and GenericFilterScalarSeparable, which take care of all data copying and filter mechanics. Since it is a "scalar" filter, pixel values are treated as scalars. If the processed image has more than one component (e.g., a RGB color image), this filter is automatically and independently applied to all (scalar-valued) components. To apply to an image, use the GenericFilter.applyTo(ij.process.ImageProcessor) method, for example.
  • Constructor Details

    • LinearFilterSeparable

      public LinearFilterSeparable(Kernel1D kernelXY)
      Constructor, takes a 1D convolution kernel to be applied both in x- and y-direction.
      Parameters:
      kernelXY - a 1D convolution kernel
    • LinearFilterSeparable

      public LinearFilterSeparable(Kernel1D kernelX, Kernel1D kernelY)
      Constructor, takes two 1D convolution kernels to be applied in x- and y-direction, respectively. One (but not both) of the supplied kernels may be null. If this is the case, filtering in the associated direction is skipped.
      Parameters:
      kernelX - a 1D kernel for convolution in x-direction
      kernelY - a 1D kernel for convolution in y-direction
  • Method Details