"Peer Mohamed" wrote in message <iv66do$r34$1@newscl01ah.mathworks.com>...
> Sir,
> Bmax is the maximum brightness of the image, xSize and ySize are the number of pixels in the horizontal and vertical directions of the image, W is the window, f and f n ,t are the intensity values of the original image and the template image when it is justified for the nth position of the chromosome, respectively. these are the variables which is used for this fitness function in genetic algorithm face detection.
           
It still isn't clear whether you want a scalar answer for a single value of n or a vector answer for many values of n. As I read your downloaded formula, the scalar answer for a single n is:
Fn = 1  sum(abs(f(:)fnt(:)))/max(f(:))/prod(size(f));
assuming Bmax refers to the maximum intensity of the original image.
Roger Stafford
