Representation and Description
Representation and Description
References
Digital Image Processing Using MATLAB
RC Gonzalez, RE Woods , SL Eddins
1
Representation and Description
2
Boundary Descriptors
3
Boundary Descriptors
Boundary of objects contained in an image is
extracted using the function bwperim
Syntax g = bwperim (f, conn)
Where g is a binary image containing the
boundaries of the objects in f. conn is the
connectivity and it can have the values 4 or 8
(default)
Objects in f can have any pixel values consistent
with image class, but background pixels have to be
0.
Perimeter pixels are nonzero and are connected to
at least one other nonzero pixel
4
Function diameter
Diameter of a boundary is defined as the Euclidian
distance between the two farthest points on the
boundary
These points are not always unique as in a circle or
square
Diameter is a useful descriptor if it applies to a
single pair of points of the boundary
Line segment connecting these points is called the
major axis
5
Function diameter
Minor axis of a boundary is defined as the line
perpendicular to the major axis and of such length
that a box passing through the intersecting points of
the two axes completely encloses the boundary
6
Function diameter
7
Regional Descriptors
Important approach to region description is to
quantify its texture content
There is no existing formal definition for texture
Statistical and spectral approaches can be used
describe texture
Statistical methods give texture as smooth, coarse,
grainy and so on
Spectral methods are based on Fourier spectrum
and used to detect global periodicity in an image
8
Function regionprops
Function regionprops is the principal tool for
computing region descriptors. Its syntax
D = regionprops (L, properties)
9
M
10
M
11
Texture Properties
12
Texture Properties
13
Texture Properties
nth moment about the mean intensity is given by
14
Texture Properties
15
Function statxture
Function statxture computes the texture properties
using the histogram
Syntax t = statxture(f, scale)
17
Descriptors given by Function statxture
18
Gray Level Co-occurrence Matrix (GLCM)
Measures of texture computed using only histogram
carry no information regarding spatial relationships
between pixels, which is important when describing
texture
19
Gray Level Co-occurrence Matrix (GLCM)
Let Q be an operator that defines the position of two
pixels relative to each other and consider an image
f, with L possible intensity levels
21
Function graycomatrix
Function graycomatrix computes the gray level co-
occurrence matrixes.
Syntax [GS, FS] = graycomatrix(f, ‘NumLevels’, n,
‘Offset’, offsets)
22
Function graycoprops
Function graycoprops generates the descriptors of
the gray level co-occrence matrix. Syntax
23
Function graycoprops
24