Error in trying Face recognition demo in opencv
===

i am using ubuntu 12.04, and i have installed opencv 2.4 (actually, i installed ROS, opencv gets installed with it) i am trying to run this [demo][1] and i am getting this error:

    usama@ubuntu:~/Desktop/opencv/Advanced/Face Recognition$ g++ `pkg-config opencv --cflags`     face_recog.cpp  -o face_recog `pkg-config opencv --libs` 
    face_recog.cpp: In function ‘int main(int, const char**)’:
    face_recog.cpp:119:30: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
    face_recog.cpp:121:20: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
    facerecog.cpp:123:23: error: ‘class cv::FaceRecognizer’ has no member named ‘getMat’
    

Any idea, how can i get rid of this error ? should i upgrade opencv to a new version ?


  [1]: http://docs.opencv.org/trunk/modules/contrib/doc/facerec/facerec_tutorial.html#eigenfaces-in-opencv