NewSDF

object NewSDF

Types

Link copied to clipboard
data class Result(val bmp: Bitmap32, val buffer: Int, val radius: Int, val cutoff: Double)

Functions

Link copied to clipboard
fun edt(data: FloatArray, x0: Int, y0: Int, width: Int, height: Int, gridSize: Int, f: FloatArray, v: UShortArrayInt, z: FloatArray)
Link copied to clipboard
fun edt1d(grid: FloatArray, offset: Int, stride: Int, length: Int, f: FloatArray, v: UShortArrayInt, z: FloatArray)
Link copied to clipboard
fun process(bmp: Bitmap32, maxSide: Int = kotlin.math.max(bmp.width, bmp.height), buffer: Int = maxSide divCeil 8, radius: Int = maxSide divCeil 3, cutoff: Double = 0.5): NewSDF.Result