java opencv创建 空图片
package ml; import org.opencv.core.Core; import org.opencv.core.CvType; import org.opencv.core.Mat; import org.opencv.core.Scalar; import org.opencv.highgui.HighGui; public class Test2 { public static void main( String[] args ) { System.loadLibrary( Core.NATIVE_LIBRARY_NAME ); Scalar scalar1 = new Scalar(0,0,255); Mat img1 = new Mat(360,640,CvType.CV_8UC3,scalar1); HighGui.imshow("win1", img1); HighGui.waitKey(); } }
##########################
标签:core,java,Mat,创建,opencv,org,import From: https://www.cnblogs.com/herd/p/17578126.html