18.03.2014 Views

Recognition of facial expressions - Knowledge Based Systems ...

Recognition of facial expressions - Knowledge Based Systems ...

Recognition of facial expressions - Knowledge Based Systems ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX A<br />

The routines for handling the Action<br />

Units sequences.<br />

//-----------------------------------<br />

1: .....................<br />

2: #include "FACS.h"<br />

3: void FACS::assign(char*s)<br />

4: {<br />

5: n=0;<br />

6: char b[256];<br />

7: strcpy(b,s);<br />

8: char*t=strtok(b,"+");<br />

9: int i,j;<br />

10: while(t!=NULL)<br />

11: {<br />

12: a[n][0]=isalpha(t[0])?tolower(t[0]):0;<br />

13: a[n][2]=0;<br />

14: if(isalpha(t[0])) j=1;else j=0;<br />

15: for(i=j;i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!