Companion

object Companion

Functions

Link copied to clipboard
fun create(arr: Array<out Array<*>>): RasterData

Creates RasterData from 2D or 3D array.

fun create(iterable: Iterable<Iterable<*>>): RasterData

Creates RasterData from 2D or 3D collection.

fun create(arr: Array<Number>, width: Int, height: Int, nChannels: Int): RasterData
fun create(arr: ByteArray, width: Int, height: Int, nChannels: Int): RasterData
fun create(arr: DoubleArray, width: Int, height: Int, nChannels: Int): RasterData
fun create(arr: FloatArray, width: Int, height: Int, nChannels: Int): RasterData
fun create(arr: IntArray, width: Int, height: Int, nChannels: Int): RasterData

Creates RasterData from 1D array with pixel data.

Link copied to clipboard