ZLab.Discrete ZLab.Discrete
ZLab.Discrete ZLab.Discrete
Developed by Zeke Zhang

Search Results for

    Edit this page

    Method BuildFromTernaryMask

    | Edit this page View Source

    BuildFromTernaryMask(ReadOnlySpan<byte>, bool)

    Compute exact Euclidean SDF (positive outside, negative inside) from a ternary mask.

    Declaration
    public void BuildFromTernaryMask(ReadOnlySpan<byte> ternaryMask, bool parallel = true)
    Parameters
    Type Name Description
    ReadOnlySpan<byte> ternaryMask

    Ternary mask (0=outside, 1=inside, 2=boundary)

    bool parallel

    Enable parallelism