标签:
以下为简单示例程序:
import static org.bytedeco.javacpp.opencv_imgcodecs.IMREAD_COLOR; import static org.bytedeco.javacpp.opencv_imgcodecs.imread; import org.bytedeco.javacpp.opencv_core.Mat; public class FirstTest { public static void main(String[] args) { Mat image = imread("TEST.JPG", IMREAD_COLOR); System.out.println("图像宽x高:" + image.cols() + " x " + image.rows()); } }
标签:
原文地址:http://www.cnblogs.com/husthzy/p/5652336.html