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.

dynamic_range_threshold: int

Exceptions

An error has occurred during Face Library execution.
int get dynamicRangeThreshold => getDynamicRangeThreshold();
set dynamicRangeThreshold(int value) => setDynamicRangeThreshold(value);

Exceptions

An error has occurred during Face Library execution.
public int dynamicRangeThreshold
{
    get => GetdynamicRangeThreshold();
    set => SetdynamicRangeThreshold(ref value);
}

Exceptions

An error has occurred during Face Library execution.
public int getDynamicRangeThreshold() throws FaceException
public void setDynamicRangeThreshold(int dynamicRangeThreshold) throws FaceException

Exceptions

An error has occurred during Face Library execution.
public var dynamicRangeThreshold: Int
    get {
        return Int(try! getDynamicRangeThreshold())
    }
}

Exceptions

An error has occurred during Face Library execution.
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.