Skip to content

face_BIF

faceclassOpenCV 5.0.0
import { face_BIF } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSface_BIF
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits Algorithm.

Implementation of bio-inspired features (BIF) from the paper: Guo, Guodong, et al. "Human age estimation using bio-inspired features." Computer Vision and Pattern Recognition, 2009. CVPR 2009.

Constructors and members

static create

Create an owned face_BIF instance with the supplied configuration.

Implementation of bio-inspired features (BIF) from the paper: Guo, Guodong, et al. "Human age estimation using bio-inspired features." Computer Vision and Pattern Recognition, 2009. CVPR 2009.

create(num_bands: number, num_rotations: number): face_BIF | null;
3 available overloads
create(): face_BIF | null;
create(num_bands: number): face_BIF | null;
create(num_bands: number, num_rotations: number): face_BIF | null;
num_bands

The number of filter bands (<=8) used for computing BIF.

num_rotations

The number of image rotations for computing BIF.

Returns

Object for computing BIF.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

getNumBands

Return the num bands configured on this face_BIF object.

getNumBands(): number;
Returns

The number of filter bands used for computing BIF.

getNumRotations

Return the num rotations configured on this face_BIF object.

getNumRotations(): number;
Returns

The number of image rotations.

compute

Computes features sby input image.

compute(image: Mat, features: Mat): void;
image

Input image (CV_32FC1).

features

Output destination, filled by the native operation. Feature vector (CV_32FC1).

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.