BitGrid2d.DistanceTranform Method

Computes the distance transform for this bitgrid, that is a float matrix, where each element is the distance to the closest set bit/pixel. If rescaleMaxVal is not 0.0, the values are rescaled to be be in range 0.0-rescaleMaxVal.
public float[,] DistanceTranform( 
   float rescaleMaxVal = 0.0f 
)

Parameters

rescaleMaxVal
float

Return Value

float[,]

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition