GrayImage

class GrayImage(val width: Int, val height: Int, val data: ByteArray)

A packed 8-bit single-channel image.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, data: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
operator fun get(x: Int, y: Int): Int

Pixel value 0..255 at (x, y).

Link copied to clipboard

Focus measure: variance of the 4-neighbour Laplacian. Higher is sharper.

Link copied to clipboard

Mean luma in 0.0..255.0.