# getDynamicRangeThreshold method

int getDynamicRangeThreshold()

Gets the face dynamic range threshold. Above this threshold, the dynamic range of the image in the face region is good enough. Hint: Default value is 128.

return Face dynamic range threshold. throws FaceException An error has occurred during Face Library execution.

## Implementation

    int getDynamicRangeThreshold() {
      Pointer<Int> pDynamicRangeThreshold = calloc();
      try {
        var err = faceSDK.id3FacePortraitProcessor_GetDynamicRangeThreshold(_pHandle.value, pDynamicRangeThreshold);
        if (err != FaceError.success.value) {
          throw FaceException(err);
        }
        final vDynamicRangeThreshold = pDynamicRangeThreshold.value;
        return vDynamicRangeThreshold;
      } finally {
        calloc.free(pDynamicRangeThreshold);
      }
    }