Image filtering
means the processing of images using a filter. The term filter
in computer vision usually means pixel values modification, which for the given pixel depends only on the pixel values in the neighborhood of the pixel and is independent of the pixel's position. The simplest filters are pixel operations, which transform each pixel value using a rule; for example, the multiplication of each image's pixel with some scalar value. So, += value
, -= value
, *= value
and set( value )
functions, discussed in the Working with ofxCv images section, are pixel operations.
The ofxCv images contain the following filtering functions and pixel operations:
The
blur( winSize )
function is a smoothing filter that averages the pixel values in a square window around the given pixel with sizewinSize
×winSize
pixels. Here,winSize
must be an odd integer (that iswinSize
is equal to2*rad+1
for some integer rad). Increasing thewinSize
parameter leads to more smoothing. This filter...