在 OpenCV Java 中使用 Mat 显示图像 [英] Display image using Mat in OpenCV Java

查看:96
本文介绍了在 OpenCV Java 中使用 Mat 显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用 Java 用 OpenCV 编写我的第一个程序,我想问一下,是否可以仅使用 Mat 加载和显示文件中的图像?我在这个网站上找到了解决方案http://answers.opencv.org/question/31505/how-load-and-display-images-with-java-using-opencv/但它之前将 Mat 更改为 Image.我将不胜感激任何提示

I am writing my first program in OpenCV in Java and I'd like to ask, is it possible to load and display image from file only using Mat? I found solution on this website http://answers.opencv.org/question/31505/how-load-and-display-images-with-java-using-opencv/ but it changes Mat to Image before. I'll be grateful for any tips

推荐答案

不,java 中没有 imshow 等价物.请参阅链接.

Nope, there is no imshow equivalent in java. Please refer this link.

这篇关于在 OpenCV Java 中使用 Mat 显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆