Expand description

Functions for creating and evaluating Haar-like features.

Structs

Enums

The type of a Haar-like feature determines the number of regions it contains and their orientation. The diagrams in the comments for each variant use the symbols (*, &) to represent either (+, -) or (-, +), depending on which Sign the feature type is used with.

Functions

Draws the given Haar-like feature on an image, drawing pixels with a positive sign white and those with a negative sign black.

Draws the given Haar-like feature on an image in place, drawing pixels with a positive sign white and those with a negative sign black.

Returns a vector of all valid Haar-like features for an image with given width and height.

Returns the number of distinct Haar-like features for an image of the given dimensions.