Expand description
Functions for creating and evaluating Haar-like features.
Structs§
Enums§
- Haar
Feature Type - 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§
- draw_
haar_ feature - Draws the given Haar-like feature on an image, drawing pixels with a positive sign white and those with a negative sign black.
- draw_
haar_ feature_ mut - 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.
- enumerate_
haar_ features - Returns a vector of all valid Haar-like features for an image with given width and height.
- number_
of_ haar_ features - Returns the number of distinct Haar-like features for an image of the given dimensions.