toPlanarF32

fun ColorBuffer.toPlanarF32(target: Planar<GrayF32>? = null): Planar<GrayF32>(source)

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

Return

A Planar<GrayF32> instance containing the representation of the ColorBuffer.

Parameters

target

An optional Planar<GrayF32> instance to store the result. If not provided, a new instance will be created.