// // MPT_CERT.h // AUCoderDemo // // Created by Andrew Salamon on 5/17/06. // Copyright (c) 2006 Machine Perception Laboratory // University of California San Diego. // #import @class MPT_Face; @interface MPT_CERT : NSObject { NSImage *grayImage; NSImage *videoImage; NSMutableArray *results; NSPoint leftEye; NSPoint rightEye; NSRect face; NSMutableArray *faceArray; double smile; BOOL doCERT; BOOL findFaces; BOOL displayGray; BOOL doSmile; BOOL doFilters; void *mpeyefinder; ///< MP_eyefinderWrapper. void *gabor; ///< Can be either mp_threadedGabor or MP_Gabor. void *smileDetector; ///< MPSmile. void *rotator; ///< MP_RotateFace. void *patch; ///< RImage used to hold the rotated face patch. void *filters; ///< ExpressionFilterWrapper which is used to convert and smooth raw AU data into probabilities. float eyefinderOffset; float eyefinderDropoff; } - (void)loadAllKernelsWithProgress:(NSProgressIndicator *)progress; - (unsigned int)AUCnt; - (int)AUAtIndex:(unsigned int)ind; - (NSString *)nameForAU:(int)au; - (void)processImage:(NSImage *)image; - (void)processRImageFile:(NSString *)rimagePath; - (NSArray *)results; - (NSImage *)grayImage; - (NSImage *)videoImage; - (NSPoint)left; - (NSPoint)right; - (NSRect)face; - (NSArray *)faces; - (MPT_Face *)largestFace; - (void)clearResults; - (double)smile; - (BOOL)doCERT; - (void)setDoCERT:(BOOL)value; - (void)setDoingSequence:(BOOL)seq; ///< YES if this is a time sequence of images (e.g. video). - (BOOL)findFaces; - (void)setFindFaces:(BOOL)value; - (BOOL)displayGray; - (void)setDisplayGray:(BOOL)value; - (BOOL)doSmile; - (void)setDoSmile:(BOOL)value; - (BOOL)doFilters; - (void)setDoFilters:(BOOL)value; - (float)eyefinderOffset; - (float)defaultEyefinderOffset; - (void)setEyefinderOffset:(float)value; - (float)eyefinderDropoff; - (float)defaultEyefinderDropoff; - (void)setEyefinderDropoff:(float)value; @end