Class JAIMedianFilter

    • Field Detail

      • shape

        public StringAttribute shape
        The filter shape to use. There are four shapes available. Square - A square mask looks at all elements in the square, and find the median value. Separable Square - A separable square mask, first calculates the median of every row, and then takes the median of those values. Only supported for size 3 and size 5 filters. Plus - A 3x3 plus mask looks like the following x xxx x It calculates the median of those values indicated by an x. X - A 3x3 X mask looks like the following x x x x x It calculates the median of those values indicated by an x.
      • size

        public Parameter size
        The size of the median filter. This indicates both the width and height of the filter. The size must be an odd positive integer.