2 PROPOSED METHODS
The computer system was proposed to estimate the
correct positioning of archaeological fragments
(Open GL; Open CV ver. 2.4; Microsoft Visual C++
2012). For this system, GA computation can find a
global solution from numerous combinations of 3D
fragments. Fine-tuning is then performed by the hill-
climbing method. The 3D reconstruction is based on
the silhouettes of an object from some camera angles
in order to determine a correct match among
fragments. After the GA process, one of nine
operations in a target 3D fragment (rotations and
parallel movements in each axis) is selected during
the hill-climbing method.
2.1 Real Coded Genetic Algorithm
The real coded GA approach was applied to predict
the spatial positions of some pieces of a 3D object:
angles and coordinate x, y, and z axes. The 3D object
is formed by the polygonal meshes of fragments.
The GA process consists of the following operations.
(a) The initial population of individuals is randomly
generated within a set range. Each individual is
shown by real numbers; its score is calculated
from a fitness function. The fitness function
value is calculated by comparing the current
image results at some viewpoints with the correct
patterns. The best fitness value is maintained to
define the next generation.
(b) A selection operation chooses the individuals for
the generation of offspring, and tournament
selection is used for the choice of individuals.
(c) A crossover operation combines two individuals
to generate an offspring. A blend crossover
(BLX-α) operator (Eshelman and Schaffer, 1993)
was selected for this study.
(d) A mutation operator randomly changes some
individuals, altering the variables of a selected
individual to facilitate the diversity in the
population. The mutation can avoid falling into a
local solution.
The above GA operators are repeated to update
the population and create the next generations,
modifying the fitness of the population. The GA
process stopped after creating some generations.
2.2 Hill-climbing Method
The hill-climbing method was performed to fine
tune the positioning after the search spaces have
been reduced by the initial GA operation. This
method is a traditional optimization technique to
maximize a fitness function value. The proposed
system is composed of the following steps.
(a) Set the initial points of fragments in a search
space. These values are determined by the final
results of the GA process.
(b) Compute the fitness function values for all
neighbours based on the current state, changing
each parameter of the angles and positions of the
target fragment.
(c) Choose the neighbour with the best quality
indicating the largest fitness value and move to
the state.
(d) Repeat the steps (b) and (c) until all the
neighbours become no change or lower quality in
the fitness values. Change the target fragment to
the next one.
2.3 Fitness Function
The similarity of image features of a 3D object from
six viewpoints was evaluated to determine the
correct positions of fragments. This similarity was
the fitness function in the GA and hill-climbing
methods, meaning the accuracy of 3D rebuilding. A
normalized correlation coefficient (i.e., the similarity
between an original image A and an evaluated image
B) is denoted as:
N
i
i
N
i
i
N
i
i
N
i
i
i
N
i
i
B
N
BA
N
A
BBAA
BBAA
r
00
0
2
0
2
0
1
,
1
)()(
)()(
(1)
A
i
and B
i
are the brightness in each pixel and N is the
total number of pixels.
̅
and
show the mean value
of the brightness in each image. The correlation
coefficient of Eq. (1) approaches 1 when the
similarity increases.
The fitness function is the summation of
similarities computed from six camera angles.
Additionally, the image feature points were
calculated by the ORB technique. If image feature
points of two images are the same, the slope value
between the feature points will result in zero (Fig.
1A). Therefore, this slope value was added to the
fitness function for the GA.
ICAART2014-InternationalConferenceonAgentsandArtificialIntelligence
692