Package-level declarations
Types
Link copied to clipboard
Link copied to clipboard
class ClusteredField(decodeMode: DecodeMode = DecodeMode.DIRECTION, outputDistanceToContours: Boolean = true) : Filter1to1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
DirectionalField is a filter that generates a directional field representation of an input image, utilizing operations such as thresholding, contour detection, jump flooding, and direction decoding. The generated output encodes directional and distance information from the contours of the input.
Link copied to clipboard
The DistanceField
class provides an implementation for computing a distance field representation of an image. The distance field calculation is achieved via mechanisms like thresholding, contour tracing, and jump flooding. This class can operate on a single source image and produce a single target image.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class JumpFlooder(val width: Int, val height: Int, format: ColorFormat = ColorFormat.RGBa, type: ColorType = ColorType.FLOAT32, val encodePoints: Filter = EncodePoints())
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun centroidsFromBitmap(bitmap: ColorBuffer, jumpFlooder: JumpFlooder? = null, result: ColorBuffer? = null): ColorBuffer
Creates a color buffer containing the coordinates of the nearest centroids
Link copied to clipboard
fun directionFieldFromBitmap(bitmap: ColorBuffer, jumpFlooder: JumpFlooder? = null, result: ColorBuffer? = null): ColorBuffer
Link copied to clipboard
fun distanceFieldFromBitmap(bitmap: ColorBuffer, jumpFlooder: JumpFlooder? = null, result: ColorBuffer? = null): ColorBuffer