cvMat,Mat和IpImage之间的区别 [英] Difference between cvMat, Mat and IpImage

查看:107
本文介绍了cvMat,Mat和IpImage之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

此刻我正在尝试发现opencv库,但是它似乎对数据结构有些混乱.所以有cv::MatcvMatIpImage,每个都有不同的示例. 我了解opencv已从C迁移到C ++,然后对版本2.4进行了重大更改.
因此,建议使用这些数据结构中的哪一种,并且通常有像opencv程序员指南之类的文档来解释建议的数据结构以及代码迁移的发生方式(我不是在问代码api或教程页面)

I'm trying to discover opencv library at the moment, but it seems a bit messy with the data structures. so there's cv::Mat, cvMat and IpImage, and different examples to each. I understand that there has been a migration for opencv from C to C++, and then major changes done to version 2.4.
So which one of these data structure is recommended, and generally are there any documentation like an opencv programmers guide explaining the recommended data structure and how this code migration happened (I'm not asking about the code api or the tutorials page)

非常感谢

推荐答案

cv::MatcvMat的c ++版本,它们是相同的,并且如果您查看代码,您会发现c ++版本只用于C代码.如果您使用C ++,请使用cv::Mat.

cv::Mat is the c++ version of cvMat, they are identical and if you look through the code you will see that the c++ version just goes to the c code. If you use C++ use cv::Mat.

C没有名称空间,因此您有将cv放在每个函数名前面的麻烦,以免与其他库冲突

C doesn't have namespaces so you have the kludge of putting cv in front of each function name so it doesn't clash with other library

IpImage是旧的Intel IPP兼容映像格式.您永远不需要使用它,但是,如果您正在使用其他一些旧库,则可以在它们之间进行转换.

IpImage is the old Intel IPP compatible image format. You should never need to use it, but if you are working with some other old library there are function to convert between them.

欢迎使用opencv文档以获取新文档

(OpenCV经历了一些重组,旧网站都陷入了混乱的局面.从现在开始,希望所有内容都在 http://下opencv.org/)

(OpenCV has been through a few re-orgs and the old websites have all stayed up confusing matters. From now on hopefully everything is under http://opencv.org/)

这篇关于cvMat,Mat和IpImage之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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