# computeGeometricAttributes method

GeometricAttributes computeGeometricAttributes(

1. Image image,
2. DetectedFace detectedFace,
3. PointList landmarks

)

Computes the geometric attributes of a detected face. This function must be used for a portrait image with only one face in it.

param image Source image to process. param detectedFace Detected face to process. param landmarks Estimated landmarks of the detected face. Must be computed with the face analyser. return The estimated geometric attributes of the detected face. throws FaceException An error has occurred during Face Library execution.

## Implementation

    GeometricAttributes computeGeometricAttributes(Image image, DetectedFace detectedFace, PointList landmarks) {
      Pointer<id3FaceGeometricAttributes> pGeometricAttributes = calloc();
      var err = faceSDK.id3FaceAnalyser_ComputeGeometricAttributes(_pHandle.value, image.handle, detectedFace.handle, landmarks.handle, pGeometricAttributes);
      if (err != FaceError.success.value) {
      	calloc.free(pGeometricAttributes);
      	throw FaceException(err);
      }
      return GeometricAttributes(pGeometricAttributes);
    }