## I want to find the difference between all the features to get a difference vector for any two face of image.

on 4 Dec 2012

### Image Analyst (view profile)

I am doing face recognition using matlab software. I already managed to get the interested features (L_eye, R_eye, nose, mouth, center_eye). From here i have calculated the distance and ratios.

from the calculated ratios, i want to , for any two pair of faces, find the difference between all the features to get a difference vector.

Can anyone guide me how to calculate it?

## Products

### Image Analyst (view profile)

on 4 Dec 2012

```differenceVector = face1Vector - face2Vector;
```

Image Analyst

### Image Analyst (view profile)

on 6 Dec 2012

I don't know what those first two paragraphs are doing, but it does not look like proper MATLAB syntax. I have no idea what any of those numbers or variables mean.

As far as the vectors in the third paragraph go, yes you are creating vectors and yes, you are subtracting them but that's about all I can say. They seem to be created with just some arbitrary numbers, and you don't do anything after that with them other than subtracting them. What did you expect to happen?

nik

### nik (view profile)

on 7 Dec 2012

firstly i am sorry, its looks like those first two paragraph does not appear like list item like i want it to be.

Yes, it is not a matlab syntax, it were just the value that i want to use in my vector.

actually i want to find the difference between face images in order to find the right image (face recognition). since i already got the coordinates for the interest area that i want. from there i calculate the distances, ratios, and standard deviation. then i compare it with another face image. the minimum differences should be the same face image.

i try to find other better way for the recognition step.. like formula or something.. in order to come out with a better recognition rate.

Walter Roberson

### Walter Roberson (view profile)

on 7 Dec 2012

#### Join the 15-year community celebration.

Play games and win prizes!

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

### Discover what MATLAB® can do for your career.

Apply Today

New to MATLAB?

Learn MATLAB today!