FaceAnalyser.applyAlphaMask Method

Module: FaceAnalyser

Definition

Applies an alpha mask to suppress the background and returns a 32-bit BGRA image.

Image applyAlphaMask(Image image, Image mask)

Parameters

image Image
in Source image to process.

mask Image
in Mask of segmented face.

Returns

The output image.

Exceptions

An error has occurred during Face Library execution.