1c
1c
b) Diagonal Mirror locations in the outer wall of bounding region denoted with orange dots
MPP Approximation Advantages
Merging: Polygonal Approximation
Splitting: Polygonal Approximation
Boundary Representation: Chain Code
Chain Code
❖Solution: Resample the boundary
by selecting a larger grid spacing
• The original shape can be recovered from the inverse Fourier transform. However,
if only a few terms of the inverse are used, the boundary becomes simplified,
providing a way to smooth or filter the boundary.
• Few Fourier descriptors can be used to capture the gross essence of a boundary. To define a curve that passes through
They can be used as a basis for differentiating between distinct boundary shapes. the k sampled points, we need to
consider only k/2 coefficients.
• Local frequency components provide most of the features a shape (boundary).
In practice, Fourier descriptors are
• High Frequency components account for finer detail ( corners). They are easily computed for fewer coefficients than
affected by noise and only represent detail that is of little value to recognition. the limit of k/2.
https://demonstrations.wolfram.com/FourierDescriptors/
Fourier Descriptor
Reference: https://cis.temple.edu/~lakaemper/courses/cis595_2004/papers/fourierShape.pdf
Regional Descriptors
Boundary Representation: Signature
Signature
Skeletons
Skeletons
Skeletons
Skeletons
The color histogram can be built for any kind of color space, although the term is more often used for three-dimensional
spaces such as RGB or HSV. For monochromatic images, the term intensity histogram may be used instead.
For multi-spectral images, where each pixel is represented by an arbitrary number of measurements (for example,
beyond the three measurements in RGB), the color histogram is N-dimensional, with N being the number of
measurements taken. Each measurement has its own wavelength range of the light spectrum, some of which may be
outside the visible spectrum.
Global Color Histogram and Local Color Histogram
GCH is the most known color histogram used to detect similar images.
Feature extraction algorithm:
1.Discretize your color-space (images’ colors) into n color (You may use just 8*8*8 =512 color instead
of 256*256*256=16777216 color).
2.Create a bin for each color.
3.Count number of pixels for each color and store it in histogram’s bins.
Matching function:
The most common matching function for this method is Euclidean distance.
. To compare 2 images A, B.
A(R,G,B) : represents number of pixels in color = (R,G,B). (for example A(6,2,4) represents the
number of discretized pixels of color R=6,G=2 and B=4).
D: sum Euclidean distances.
Remember : the larger the distance value, the less similar the images are.
GCH Example
Here C has the same color histogram as B but A is different from them.
Using Euclidian distance for these color histograms we found that D(A,C) = D(A,B) and D(B,C) = 0 but There’s a
problem here that B, C are not similar at all so D(B,C) shouldn’t be zero and D(A,C) should be smaller than D(A,B)
because A,C have the same pixels except for only two pixels.
❖ References
➢ Rafael C. Gonzales, Richard E. Woods, “Digital Image Processing”, Fourth Edition, Pearson Education, 2018.
➢ Richard Szeliski ,”Computer Vision: Algorithms and Applications” , Springer 2015
➢ Intro to Digital Image Processing
➢ Digital Image Processing 2nd edition
PDF online