何时在Emgu CV中使用“图像"以及何时使用“矩阵"? [英] When to use `image` and when to use `Matrix` in Emgu CV?

查看:101
本文介绍了何时在Emgu CV中使用“图像"以及何时使用“矩阵"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在openCV中,我几乎经常使用cv::Mat进行所有操作.现在,我需要使用emgu CV并在stat中使用Matrix -object,但是不支持某些功能?!...我可以改用image -class吗?

in openCV I regularly use cv::Mat for almost everything. Now, I need to use emgu CV and use the Matrix-object in stat, but some functions are not supported?!... may I use the image-class instead?

何时在emgu CV中使用image和何时使用matrix?

When to use image and when to use matrix in emgu CV?

P.S .:目前,我正在寻找一种在矩阵上定义ROI的方法,但没有找到一种无需复制数据的方法.

P.S.: Currently I'm looking for a way to define a ROI on a matrix but didn't find a way without copying the data.

版本:Emgu.CV-2.4.2

推荐答案

我知道在最新版本的OpenCV中,对于

I know that in the latest version of OpenCV, the Mat object is prefered to iplImage for a lot of reasons.

在EmguCV中,情况有所不同.我认为经验法则是当数据本身应该是图像时使用Image<>,而当您需要使用矩阵时则使用Mat<>.使用所需的东西,emguCV对象应具有适合您的需求的构造函数/功能.

In EmguCV, things are different. I think that the rule of thumbs is to use Image<> when the data itself is supposed to be an image and Mat<> when you need to work with a matrix. Work with what you need and the emguCV object should have the right contructor/function for your needs.

对于ROI,sumeet的评论非常好.

For the ROI, the comment by sumeet is very good.

希望有帮助!

这篇关于何时在Emgu CV中使用“图像"以及何时使用“矩阵"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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