Package-level declarations

Types

Link copied to clipboard
object Animations
Link copied to clipboard
Link copied to clipboard
class ImageOpPipeline(mat: Mat)

An image operation pipeline runs various operations onto an image such as scaling, thresholding, inverting, padding etc. The pipeline can be built with a builder style API Operations are applied in the order they are called in the builder API

Functions

Link copied to clipboard
inline fun <T> Mat.at(row: Int, col: Int): Mat.Atable<T>
Link copied to clipboard

Counts the given color in the image

Link copied to clipboard
fun BufferedImage.createCompatibleCopy(width: Int = this.width, height: Int = this.height): BufferedImage

Creates a new buffered image with the same attributes but different width and height Use this for custom type buffered images

Link copied to clipboard

Crops and returns a new rect that fits in the other rect

Link copied to clipboard
fun Color.isSimilar(other: Color, maxDelta: Double = 3.0): Boolean

Compares colors using CIE2000 deltaE formula

Link copied to clipboard
Link copied to clipboard
fun Mat.removeChannels(vararg channelIndex: Int): Mat

Remove the given channels from a Mat

Link copied to clipboard

Converts a Mat to BufferedImage, the CvType to BufferedImage type mapping is listed as below:

Link copied to clipboard
fun BufferedImage.toMat(): Mat

Converts a BufferedImage to Mat, the BufferedImage type to CvType mapping is listed as below:

Properties

Link copied to clipboard

Area of the rectangle

Link copied to clipboard

Convenience value, equivalent to Rectangle.x

Link copied to clipboard

Convenience value, equivalent to Rectangle.x + Rectangle.width

Link copied to clipboard

Convenience value, equivalent to Rectangle.y

Link copied to clipboard

Convenience value, equivalent to Rectangle.y + Rectangle.height