Image Processing Reference
perceptual information obtained from the application of near set theory is represented by
the elementary sets (formed by the grouping of objects with similar descriptions), and the
information gained is always presented with respect to the probe functions contained inB.
This section describes the probe functions used in the NEAR system, and gives example
NEAR system output images processed using these probe functions.
Conversion from a RGB image to greyscale is accomplished using Magick++, the object-
orientated C++ API to the ImageMagick image-processing library (Magick++, 2009).
First, an RGB image is converted to greyscale using
Gr = 0.299R + 0.587G + 0.114B,
and then the values are averaged over each subimage. An example is given in Fig. 7.5.
(7.5b) average greyscale over
subimages of size 5 × 5
FIGURE 7.5: Example of average greyscale probe function: (a) Original image (Weber,
1999), (b) average greyscale over subimages of size 5×5, and (c) average greyscale over
subimages of size 10×10.
The normalized RGB values is a feature described in (Marti et al., 2001), and the formula
is given by
R T + G T + B T
N X =
where the values R T ,G T , and B T are respectively the sum of R,G,B components of the
pixels in each subimage, and X∈[R T ,G T ,B T ]. See Fig. 7.6 for an example using this
probe function. Note, these images were produces by finding the normalized value and
multiplying it by 255.