getBackgroundUniformity method

BackgroundUniformity getBackgroundUniformity()

Gets the result of the background uniformity computation.

return Result of the background uniformity computation. throws FaceException An error has occurred during Face Library execution.

Implementation

BackgroundUniformity getBackgroundUniformity() {
  Pointer<id3FaceBackgroundUniformity> pBackgroundUniformity = calloc();
  var err = faceSDK.id3FacePortrait_GetBackgroundUniformity(_pHandle.value, pBackgroundUniformity);
  if (err != FaceError.success.value) {
  	calloc.free(pBackgroundUniformity);
  	throw FaceException(err);
  }
  return BackgroundUniformity(pBackgroundUniformity);
}