www.pudn.com > faces.rar > frbase.h


/*** 
 **     libface - Library of face recognition and supporting algorithms 
        Copyright (c) 2003 Stefan Farthofer 
 
	This file is part of libface, which is 
 
        free software; you can redistribute it and/or modify 
        it under the terms of the GNU General Public License as published by 
        the Free Software Foundation; either version 2 of the License, or 
        (at your option) any later version. 
 
        This program is distributed in the hope that it will be useful, 
        but WITHOUT ANY WARRANTY; without even the implied warranty of 
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
        GNU General Public License for more details. 
 
        You should have received a copy of the GNU General Public License 
        along with this program; if not, write to the Free Software 
        Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
 
	For further information seek us at http://sourceforge.net/projects/openbio/ 
**	or write an email to dimitri.pissarenko@gmx.net or farthofer@chello.at. 
***/ 
 
#ifndef __FRBASE_H 
#define __FRBASE_H 
 
/* datatypes */ 
#ifndef DWORD 
#define DWORD unsigned long 
#endif 
 
#ifndef BYTE 
#define BYTE unsigned char 
#endif 
 
/* direction for serialize */ 
#define FR_IN (BYTE)0 
#define FR_OUT (BYTE)255 
 
/* enum for error codes */ 
enum FRerror {FR_OK=0, FR_ERR_NOFILE=1, FR_ERR_IL=2, FR_ERR_NOMEM=3, FR_ERR_NOTIMPL=4, FR_ERR_ALLOCMORE=5, FR_ERR_FILE=6, FR_ERR_NOALGO=7, FR_ERR_INVALID_PARMS=8, FR_NOTHING_FOUND=9, FR_ERR_OTHER=0xFFFFFFFF}; 
 
/* enum for recognition types */ 
enum FRrecoType { FR_TYPE_EIGENFACES=1 }; 
 
/* enum for face finders */ 
enum FRfinderType { FR_FINDER_NONE=0, FR_FINDER_OPENCV=1 }; 
 
/* enum for preprocessors */ 
enum FRpreprocType { FR_PREPROC_PHILIPPG=1 }; 
 
#endif /* header guard */