-
Book Overview & Buying
-
Table Of Contents
Mastering openFrameworks: Creative Coding Demystified
By :
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 size winSize × winSize pixels. Here, winSize must be an odd integer (that is winSize is equal to 2*rad+1 for some integer rad). Increasing the winSize parameter leads to more smoothing. This filter...
Change the font size
Change margin width
Change background colour