Research Article

Efficient Parallel Implementation of Active Appearance Model Fitting Algorithm on GPU

Algorithm 1

CPU-based AAM fitting algorithm.
// Max_iter: the maximum number of iterations.
// p: the estimate of model parameters.
// p: the variance of model parameters.
// r: the residual texture.
// E and E′: the error between the model and image.
// R: the gradient matrix.
// Thr: the threshold of the variation of error.
( ) K 1, 0.5, 0.25, …};
( ) ; ;
( ) estimate the model parameters, ;
( ) compute initial ;
( ) while  flag && iter <= Max_iter
( )   compute Δp: Δp    ;
( )    for each k in  K
( )      + kΔp;
( )      compute new E′;
( )   if  
( )      stop for loop;
( )    end  if
( )   end  for
( )   if   < Thr
( )      flag false;
( )   else
( )      ;
( )   end  if
( )   ;
( ) end  while