# segmentFace method

Image segmentFace(

1. Image image

)

Computes a segmentation map of a face. Important: This methods requires the `FaceSegmenter` model to be loaded.

param image Source image to process. return The map of segmented face. throws FaceException An error has occurred during Face Library execution.

## Implementation

    Image segmentFace(Image image) {
      Image segmentationMap = Image();
      var err = faceSDK.id3FaceAnalyser_SegmentFace(_pHandle.value, image.handle, segmentationMap.handle);
      if (err != FaceError.success.value) {
        segmentationMap.dispose();
        throw FaceException(err);
      }
      return segmentationMap;
    }