Code covered by the BSD License  

Highlights from
Active Shape Model (ASM) and Active Appearance Model (AAM)

image thumbnail
from Active Shape Model (ASM) and Active Appearance Model (AAM) by Dirk-Jan Kroon
Cootes 2D/3D Active Shape & Appearance Model for automatic image object segmentation and recognition

g=AAM_NormalizeAppearance3D(gim,options)
function g=AAM_NormalizeAppearance3D(gim,options)
if(options.normalizeg)
	% Normalize appearance data grey values
	color(2)=mean(gim);
	color(1)=std(gim)+eps;
	g=(gim-(color(2)))/(color(1));
else
	g=gim;
end
g(isnan(g))=0;
g(~isfinite(g))=0;

Contact us