// // MPT_Face.h // AUCoderDemo // // Created by Andrew Salamon on 6/29/06. // Copyright (c) 2006 Machine Perception Laboratory. University of California San Diego. // All rights reserved. #import @interface MPT_Feature : NSObject { NSString *type; NSPoint location; NSSize size; NSColor *color; } + (MPT_Feature *)featureOfType:(NSString *)_type AtLocation:(NSPoint)loc; - (id)initWithType:(NSString *)_type AtLocation:(NSPoint)loc; - (NSString *)type; - (NSPoint)location; - (NSSize)size; - (void)setSize:(NSSize)value; - (NSColor *)color; - (void)setColor:(NSColor *)value; @end @interface MPT_Face : NSObject { NSRect face; NSArray *points; NSMutableArray *features; } - (id)initWithFace:(NSRect)_face; - (NSRect)face; - (void)setFace:(NSRect)value; - (NSPoint)leftEye; - (NSPoint)rightEye; - (float)headTilt; // in degrees: negative value = head tilted to the right (from subject's point of view) - (NSArray *)features; - (void)setFeatures:(NSArray *)value; - (void)addFeature:(MPT_Feature *)feature; - (NSArray *)points; - (void)setPoints:(NSArray *)value; @end