# ordfilt2

2-D order-statistic filtering

## Description

## Examples

## Input Arguments

## Output Arguments

## Tips

When working with large domain matrices that do not contain any zero-valued elements,

`ordfilt2`

can achieve higher performance if`A`

is in an integer data format (`uint8`

,`int8`

,`uint16`

,`int16`

). The gain in speed is larger for`uint8`

and`int8`

than for the 16-bit data types. For 8-bit data formats, the domain matrix must contain seven or more rows. For 16-bit data formats, the domain matrix must contain three or more rows and 520 or more elements.

## References

[1] Haralick, Robert M., and Linda G. Shapiro, *Computer
and Robot Vision, *Volume I, Addison-Wesley, 1992.

[2] Huang, T.S., G.J.Yang, and G.Y.Tang. "A fast two-dimensional median filtering algorithm.", IEEE transactions on Acoustics, Speech and Signal Processing, Vol ASSP 27, No. 1, February 1979

## Extended Capabilities

## Version History

**Introduced before R2006a**