XREdgeCompareProperties

Interface XREdgeComparePropertiesExperimental

XREdgeCompareProperties is experimental and may be changed in the future without notice! The XR Edge compare properties

interface XREdgeCompareProperties {
    edgeDetectionThreshold?: number;
    forceEdgesBetweenParts?: boolean;
    matchColor?: [number, number, number, number];
    mode?: XREdgeCompareMode;
    noMatchColor?: [number, number, number, number];
    searchRadius?: number;
}

Properties

edgeDetectionThreshold?: number

The threshold for detecting camera edges. Must be a value between 0 and 1. The greater the value the more likely a pixel in the camera image is considered an edge pixel.

0.5
forceEdgesBetweenParts?: boolean

Specifies if edges in the rendered scene should be generated between two connected parts even when the angle between their surfaces is not above the edge generation threshold.

false
matchColor?: [number, number, number, number]

The color for matching edge pixels.

[0, 1, 0, 1]

Specifies the way edge pixels are matched.

XREdgeCompareMode.SCENE_WITH_CAMERA
noMatchColor?: [number, number, number, number]

The color for non-matching edge pixels.

[1, 0, 0, 1]
searchRadius?: number

The search radius for matching edges in pixel. The greater the value the more surrounding pixels will be checked for matches.

5

Did you find this page useful? Please give it a rating:
Thank you for rating this page!
Any issues or feedback?
What kind of problem would you like to report?
Please tell us more about what's wrong: