centroidsFromBitmap

fun centroidsFromBitmap(bitmap: ColorBuffer, jumpFlooder: JumpFlooder? = null, result: ColorBuffer? = null): ColorBuffer(source)

Creates a color buffer containing the coordinates of the nearest centroids

Parameters

bitmap

a ColorBuffer with centroids in red (> 0)