Research Article

Efficient Parallel Implementation of Active Appearance Model Fitting Algorithm on GPU

Algorithm 3

GPU-based method for calculating S.
// : the ID of vertex.
// : the appearance parameters vector.
// : the matrix describing the modes of variation.
// : the mean shape vector.
// , , and : the pose parameters.
( ) i blockId * gridDim + threadId;
( )  while   < size of c
( )     ;
( )     ;
( )  end  while
( )   ;
( )   ;
( )   ;
( )   ;
( )  check if ith vertex is in image