FaceAnalyser.applyAlphaMask Method¶
Module: FaceAnalyser
Definition¶
Applies an alpha mask to suppress the background and returns a 32-bit BGRA image.
apply_alpha_mask(self, image: Image, mask: Image) -> Image
Parameters
Returns
The output image.
Exceptions
An error has occurred during Face Library execution.
Image applyAlphaMask(Image image, Image mask)
Parameters
Returns
The output image.
Exceptions
An error has occurred during Face Library execution.
public Image ApplyAlphaMask(Image image, Image mask)
Parameters
Returns
The output image.
Exceptions
An error has occurred during Face Library execution.
public Image applyAlphaMask(Image image, Image mask) throws FaceException
Parameters
Returns
The output image.
Exceptions
An error has occurred during Face Library execution.
public func applyAlphaMask(image: Image, mask: Image) throws -> Image
Parameters
Returns
The output image.
Exceptions
An error has occurred during Face Library execution.
int id3FaceAnalyser_ApplyAlphaMask (
ID3_FACE_ANALYSER hFaceAnalyser,
ID3_FACE_IMAGE hImage,
ID3_FACE_IMAGE hMask,
ID3_FACE_IMAGE hSegmentedFace)
Parameters
hFaceAnalyser
ID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImage
ID3_FACE_IMAGEin Source image to process.hMask
ID3_FACE_IMAGEin Mask of segmented face.hSegmentedFace
ID3_FACE_IMAGEout The output image.
Returns