Class ScalarMedianFilter

All Implemented Interfaces:
ProgressReporter

Ordinary (scalar) median filter for color images implemented by extending the GenericFilter class. Color images are filtered individually in all channels. See Sec. 15.2.1 of [1] for details.

[1] W. Burger, M.J. Burge, Digital Image Processing – An Algorithmic Introduction, 3rd ed, Springer (2022).

Version:
2020/12/31
  • Constructor Details

  • Method Details

    • doPixel

      protected float doPixel(PixelPack.PixelSlice plane, int u, int v)
      Description copied from class: GenericFilterScalar
      This method defines the steps to be performed for a single image pixel and must be implemented by any concrete sub-class. The source data are passed as a PixelPack.PixelSlice container, which holds the scalar values of one image component. The method PixelPack.PixelSlice.getVal(int, int) should be used to read individual pixel values. These data should not be modified but the (float) result of the single-pixel calculation must be returned.
      Specified by:
      doPixel in class GenericFilterScalar
      Parameters:
      plane - the scalar-valued data for a single image component
      u - the current x-position
      v - the current y-position
      Returns:
      the result of the filter calculation for this pixel