SwisTrack/Components/ColorBlur

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Description[edit | edit source]

This component blurs a color image. It's expensive but reduces noise.

Input[edit | edit source]

A grayscale or a color image.


Parameters[edit | edit source]

Mode[edit | edit source]

The type of blur. This is from the openCV documentation:

       * CV_BLUR_NO_SCALE (simple blur with no scaling) - summation over a pixel param1×param2 neighborhood. 
         If the neighborhood size is not fixed, one may use cvIntegral function.
       * CV_BLUR (simple blur) - summation over a pixel param1×param2 neighborhood with subsequent scaling by 1/(param1•param2).
       * CV_GAUSSIAN (gaussian blur) - convolving image with param1×param2 Gaussian.
       * CV_MEDIAN (median blur) - finding median of param1×param1 neighborhood (i.e. the neighborhood is square).
       * CV_BILATERAL (bilateral filter) - applying bilateral 3x3 filtering with color sigma=param1 and space sigma=param2.

Radius[edit | edit source]

The size of the square to average over.