Normalization of Active Appearance Models for Fish Species Identification
Algorithm 2
Computation of the normalized shapes internal points, basic approach. The term βspeciesβ designates the species manually chosen for the creation of the UAAM.
(1) Define the Unified mean shape as the mean shape computed over all the species using new external shapes (Algorithm 1)
(2) for species to N do {N: number of species}
(3) βDefine temporary shapes by adding the original shapesβ internal feature points to newly sampled external feature points
ββββof the current species
(4) βCompute the Delaunay triangulation on the mean computed over the temporary shapesβ external feature points
(5) βfor to P do : internal feature point of species , P: number of internal feature points for the species
(6) ββFind in which triangle of the step 4βs triangulation lies
(7) ββCompute the position of in the corresponding triangle of the Unified mean shape (step 1) using an affine interpolation
(8) βend for
(9) βDefine the current species Frame as the Unified mean shape and the species specific internal points expressed in the Unified
ββββmean shape (step 5)
(10) end for
(11) for species to N do {N: number of species}
(12) β for to M{M number of shapes for the current species
(13) ββAdd the original internal feature points of the shape to the newly sampled external feature points of shape