• Completeness. This refers to unambiguous repre-
sentations. Invariance under geometrical transfor-
mations.
• Invariance under translation, rotation, scaling and
reflection is very important for object recognition
applications.
• Sensitivity. This is the ability of a representation
scheme to reflect easily the differences between
similar objects.
• Abstraction from detail. This refers to the ability of
a representation to represent the basic features of a
shape and to abstract from detail. This property is
directly related to the robustness of the representa-
tion under noise conditions.
Shape representation techniques are generally char-
acterized as being boundary-based or region-based.
The former represents the shape by its outline, while
the latter considers the shape as being composed of
a set of two-dimensional regions. Techniques in
both categories can be further subdivided into sub-
categories (Fontoura and Marcondes, 2001):
• Contour-based approaches: Spatial domain tech-
niques (Parametric contours, Set of contour points,
...) and Transform domain techniques (Fourier
transform of the parametric representation).
• Region-based approaches: Spatial domain tech-
niques (Region Decomposition, Boundary Re-
gions, ...) and Transform Domain Techniques (such
as Gabor filters).
Selecting a set of features from the shape represen-
tation to characterize an object for a certain applica-
tion is not easy, since the variability of the shapes and
the specific characteristics of the application domain
must be taken into consideration. Feature comparison
can be understood as a way of quantifying the sim-
iliarity/dissimilarity between corresponding objects.
This is a very difficult problem since it tries to mimic
the human perception of similarity between objects
(Papathomas, 1996).
3 DISTANCE HISTOGRAM TO
CENTROID
Distance Histogram to Centroid will be used as the
unique feature to totally describe an object and to dis-
tinguish it from all the other objects in the scene. The
process of calculation can be dramatically speeded up
using a unique property to characterize an object. The
problem of dimensionality would be also avoided.
The selection of an adequate classifier would even al-
low the system to recognize the shapes in real time.
For each region in the scene, the centroid (Figure 1
A) and the distance from it to every perimeter point
(Figure 1 B) are calculated. The categories of the
histogram are defined by the user. Once the Euclid-
ean distance from the border points to the centroid is
calculated, it is assigned to the correct category bear
in mind the maximum distance from the border to
the centroid. So the obtained histogram is invariable
to rotation and to translation but not to scaling. To
achieve scaling invariance the histogram must be nor-
malize by dividing each histogram component by the
object perimeter.
A B
Figure 1: Centroid.
The Distance Histogram to Centroid is defined as
follows:
Let R be one region in the scene.
Let P be the perimeter of region R.
Let x =(¯x
R
, ¯y
R
) be the centroid of region R.
Let F
1
, ··· ,F
n
be the set of all the border points of
region R.
The Euclidean distance between each border point
and the centroid should be calculated by 1
distance(F
i
)=
(F
i
(x) − ¯x
R
)
2
+(F
i
(y) − ¯y
R
)
2
(1)
Let D
max
be the maximum distance from any border
point to the centroid in region R.
Let NCAT be the total number of categories in
which the histogram is divided.
The equation 2 calculates the category for this
distance.
cat(distance(F
i
)) = distance(F
i
) ∗
NCAT
D
max
(2)
Let H be the resulting histogram and let
H[1]..H[NCAT] be the different resulting val-
ues for each category.
The proposed algorithm is as follows:
For every F
j
do
Calculate distance(F
j
)
Calculate d = cat(distance(F
j
))
H[d]++
For i=1 to i=NCAT do
H[i]=H[i]/P
Figure 2 shows an object with several rotation,
translation and scaling transformations. The first ob-
tained histogram (figure 3 A) it is not invariable to
scaling.
DISTANCE HISTOGRAM TO CENTROID AS A UNIQUE FEATURE TO RECOGNIZE OBJECTS
493