Package-level declarations

Functions

Link copied to clipboard
fun Drawer.circle(circle: Circle2D_F32)
fun Drawer.circle(circle: Circle2D_F64)
Link copied to clipboard
@JvmName(name = "circles2D_F32")
fun Drawer.circles(circles: List<Circle2D_F32>)
@JvmName(name = "circles2D_F64")
fun Drawer.circles(circles: List<Circle2D_F64>)
Link copied to clipboard
fun Drawer.lineSegment(segment: LineSegment2D_F32)
fun Drawer.lineSegment(segment: LineSegment2D_F64)
Link copied to clipboard
@JvmName(name = "lineSegments2D_F32")
fun Drawer.lineSegments(segments: List<LineSegment2D_F32>)
@JvmName(name = "lineSegments2D_F64")
fun Drawer.lineSegments(segments: List<LineSegment2D_F64>)
Link copied to clipboard
fun <T : ImageBase<out ImageBase<*>>?> ImageBase<T>.resizeBy(scaleX: Double, scaleY: Double = scaleX): T
fun ColorBuffer.resizeBy(scaleX: Double, scaleY: Double = scaleX, convertToGray: Boolean = false): ColorBuffer
Link copied to clipboard
fun <T : ImageBase<out ImageBase<*>>?> ImageBase<T>.resizeTo(newWidth: Int? = null, newHeight: Int? = null): T
fun ColorBuffer.resizeTo(newWidth: Int? = null, newHeight: Int? = null, convertToGray: Boolean = false): ColorBuffer
Link copied to clipboard
fun ImageFlow.toColorBuffer(): ColorBuffer

fun GrayF32.toColorBuffer(target: ColorBuffer? = null): ColorBuffer

Converts a GrayF32 object into a ColorBuffer where each pixel in the grayscale image is mapped to an RGB color with identical red, green, and blue values.

fun GrayU8.toColorBuffer(target: ColorBuffer? = null): ColorBuffer

Converts a GrayU8 object into a ColorBuffer where each pixel in the grayscale image is mapped to an RGB color with identical red, green, and blue values.

@JvmName(name = "grayF32ToColorBuffer")
fun Planar<GrayF32>.toColorBuffer(target: ColorBuffer? = null): ColorBuffer

Converts a Planar<GrayF32> object into a ColorBuffer with the same number of channels (bands).

fun Planar<GrayU8>.toColorBuffer(target: ColorBuffer? = null): ColorBuffer

Converts a Planar<GrayU8> object into a ColorBuffer with the same number of channels (bands).

Link copied to clipboard
fun ColorBuffer.toGrayF32(target: GrayF32? = null): GrayF32

Converts this ColorBuffer to a grayscale image represented as a GrayF32 object. The red channel of the color buffer is used to calculate the grayscale values.

Link copied to clipboard
fun ColorBuffer.toGrayF64(target: GrayF64? = null): GrayF64

Converts this ColorBuffer to a grayscale image represented as a GrayF64 object. The red channel of the color buffer is used to calculate the grayscale values.

Link copied to clipboard
fun ColorBuffer.toGrayU8(target: GrayU8? = null): GrayU8

Converts this ColorBuffer to a grayscale image represented as a GrayU8 object. The red channel of the color buffer is used to calculate the grayscale values.

Link copied to clipboard
fun Affine2D_F32.toMatrix44(): Matrix44
fun Affine2D_F64.toMatrix44(): Matrix44
Link copied to clipboard
fun ColorBuffer.toPlanarF32(target: Planar<GrayF32>? = null): Planar<GrayF32>

Converts this ColorBuffer to an image represented as a Planar object with the same number of channels (bands) as the original.

Link copied to clipboard
fun ColorBuffer.toPlanarU8(target: Planar<GrayU8>? = null): Planar<GrayU8>

Converts this ColorBuffer to an image represented as a Planar object with the same number of channels (bands) as the original.

Link copied to clipboard
fun Contour.toShape(closed: Boolean = false, getInternal: Boolean, getExternal: Boolean): Shape
Link copied to clipboard
fun List<Contour>.toShapeContours(closed: Boolean = false, internal: Boolean = true, external: Boolean = true): List<ShapeContour>
Link copied to clipboard
fun List<Contour>.toShapes(closed: Boolean = false, internal: Boolean = true, external: Boolean = true): List<Shape>
Link copied to clipboard
fun Point2D_F32.toVector2(): Vector2
fun Point2D_F64.toVector2(): Vector2
fun Point2D_I32.toVector2(): Vector2
Link copied to clipboard
fun List<Point2D_I32>.toVector2s(): List<Vector2>