**MATLAB CVIP Toolbox Functions**

**MATLAB CVIP Toolbox Functions**

## Spatial Filters: Mean Filters

The spatial filter group in the CVIP Toolbox has a variety of different types of functions. They are organized into the separate categories of adaptive filters, mean filters, order filters and a miscellaneous group. The adaptive filters category contains spatial domain based filters that are used primarily for contrast enhancement, noise mitigation or image smoothing. The adaptive filters included here function by adjusting parameters based on the characteristics of the underlying local pixel values. The characteristics can be standard statistics, order statistics or neighborhood image features, such as edge energy. Included are filters to adjust image contrast, such as the ACE (adaptive contrast enhancement) filters. Filters for noise removal, such as the adaptive median and minimum-mean-squared-error filters are also part of this group.

The mean filters are primarily smoothing filters, which perform various methods of averaging and will provide noise mitigation or simply add a “soft” look to the image. The order filers include the median, midpoint, minimum, maximum, and the alpha-trimmed mean which varies between a mean and a median filter to handle multiple types of noise. Utility functions for convolution, which allows the implementation of any linear spatial filter mask, and difference filters are included in the miscellaneous group.

**arithmetic_mean_cvip**- perform an arithmetic mean averaging filter**contra_mean_cvip**- perform a contra-harmonic mean filter**geometric_mean_cvip**- performs a geometric mean filter**harmonic_mean_cvip**- performs a harmonic mean filter**raster_deblur_mean_cvip**- raster deblurring filter**yp_mean_cvip**- performs a Yp mean filter