toMat

fun BufferedImage.toMat(): Mat

Converts a BufferedImage to Mat, the BufferedImage type to CvType mapping is listed as below:

Other types are not supported

See also