Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Got answer right now:

private fun genTestMat(): Mat {
    val inputMat = Mat( 1, 1, CvType.CV_8UC3)
    val rgbMat = Mat()
    Imgproc.cvtColor(inputMat, rgbMat, Imgproc.COLOR_BGR2RGBA, 3)
    rgbMat.setTo(Scalar(52.0, 45.0, 44.0))
    return rgbMat
}