toOpenCVMat

fun F64ImageArray.toOpenCVMat(type: Int = CvType.CV_64FC4, scale: Boolean = true): <Error class: unknown class>

Converts an F64ImageArray to a Mat.

The required shape must have either 1, 3 or 4 channels in the 3rd dimension: If 1 channel, shape must be width, height, 1 If 3 channels, shape must be width, height, rgb If 4 channels, shape must be width, height, rgba

All values in this array are expected to be in range [0..1]. If values are outside this range, unexpected behavior may occur.

Receiver

The image array.

Return

The OpenCV Mat containing the given data.

Since

1.4.0

Parameters

type

A type from CvType, representing the data type and channels.


fun F64Array.toOpenCVMat(type: Int = CvType.CV_64FC4): <Error class: unknown class>

Deprecated

Use array.image instead

Replace with

image.toOpenCVMat(type)

Converts an F64Array to a Mat.

The required shape must have either 1, 3 or 4 channels in the 3rd dimension: If 1 channel, shape must be width, height, 1 If 3 channels, shape must be width, height, rgb If 4 channels, shape must be width, height, rgba

All values in this array are expected to be in range [0..1]. If values are outside this range, unexpected behavior may occur.

Receiver

The image array.

Return

The OpenCV Mat containing the given data.

Since

1.4.0

Parameters

type

A type from CvType, representing the data type and channels.