• Apply distance transform in-place on a given matrix.

    Output values are distance to the nearest wall.

    Parameters

    • cm: CostMatrix

      initial matrix with 1 representing walkable. Modified in-place

    • oob: number = 255

      out of bound value (optional: default to 255)

    Returns CostMatrix

    modified cost matrix

Generated using TypeDoc