face_detector


Discussion

This class contains a series of relatively basic building blocks (extensible image filtering and image comparison methods) which are intended to be linked together in order to create or extend an embedded face detection system deployable over the Cascades network.



Classes

FaceDetector


Functions

__compare

__compare


int __compare(
    const void *a,
    const void *b) 
Parameter Descriptions
a
Image buffer to compare against.
b
Image buffer to compare against.

function result
Return an integer less than, equal to, or greater than zero if the age of the first image buffer is considered to be respectively less than, equal to, or greater than the age of the second.

Discussion

Compares the specified image buffers by age.

Typedefs


filter_enum


See Also:
filter_enum
typedef enum { 
    KInvert = 0, 
    KClear = 1, 
    KSobel = 2, 
    KNull = 3  
} filter_enum; 
Constants
KInvert
Specify the color inversion filter.
KClear
Specify the clear U, V channel filter.
KSobel
Specify the Sobel convolution filter.
KNull
Specify the default (pass-through) filter.

Discussion

Contains a listing of all currently supported image filters.


flags_struct


typedef struct { 
    unsigned int age : 8; 
    unsigned int top : 1; 
    unsigned int left : 1; 
    unsigned int back : 1; 
    unsigned int front : 1; 
    unsigned int right : 1; 
    unsigned int active : 1; 
    unsigned int bottom : 1; 
    unsigned int filter : 8;  
} flags_struct; 
Field Descriptions
age
The current age (between 0 and 255) of the image buffer (default is 128).
top
Image buffer perspective matches the top of a virtual cube (default is false).
left
Image buffer perspective matches the left side of a virtual cube (default is false).
back
Image buffer perspective matches the back of a virtual cube (default is false).
front
Image buffer perspective matches the front of a virtual cube (default is false).
right
Image buffer perspective matches the right side of a virtual cube (default is false).
active
Specify whether or not this is an active image structure (default is false).
bottom
Image buffer perspective matches the bottom of a virtual cube (default is false).
filter
The selected image filter (see filter_enum) to activate (default is KNull).

Discussion

Contains various configuration settings associated with the specified image structure.


image_struct


typedef struct { 
    flags_struct flags;  
    unsigned int hash; 
    unsigned int size; 
    unsigned int width; 
    unsigned int height; 
    unsigned int length; 
    unsigned char *pixels;  
} image_struct; 
Field Descriptions
flags
Configuration settings associated with the image buffer.
hash
Hash value for the image buffer.
size
Size (i.e. width * height * 1.5) of the image buffer in pixels.
width
Width of the image buffer in pixels.
height
Height of the image buffer in pixels.
length
Length of Y channel (i.e. width * height) for the image buffer in pixels.
pixels
Pointer to the YUV 4:2:0 format image buffer.

Discussion

Contains any state associated with the specified image buffer.

© Max Rupp (feelgood@cs.pdx.edu). All rights reserved.

(Last Updated September 12, 2006)