Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# PortraitProcessor.dynamicRangeThreshold Property

Module: PortraitProcessor

Type: int

## Definition

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.

Python

    dynamic_range_threshold: int

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    int get dynamicRangeThreshold => getDynamicRangeThreshold();
    set dynamicRangeThreshold(int value) => setDynamicRangeThreshold(value);

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public int dynamicRangeThreshold
    {
        get => GetdynamicRangeThreshold();
        set => SetdynamicRangeThreshold(ref value);
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public int getDynamicRangeThreshold() throws FaceException
    public void setDynamicRangeThreshold(int dynamicRangeThreshold) throws FaceException

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public var dynamicRangeThreshold: Int
        get {
            return Int(try! getDynamicRangeThreshold())
        }
    }

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FacePortraitProcessor_GetDynamicRangeThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int * dynamicRangeThreshold)
    int id3FacePortraitProcessor_SetDynamicRangeThreshold (ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor, int dynamicRangeThreshold)

Returns

> `int`
> An error code.
> See id3FaceError file for the list of possible error codes.