什么是没有在内存c ++中分配的创建头 [英] what is meant create header without allocated in memory c++

查看:186
本文介绍了什么是没有在内存c ++中分配的创建头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么意思是创建标题而没有在内存中分配c ++

{cvCreateMatHeader(),cvCreateData()}

what is meant create header without allocated in memory c++
{ cvCreateMatHeader() ,cvCreateData()}

推荐答案

它只是意味着只分配和创建 CvMat 对象,但不是实际的矩阵数据(不是矩阵元素本身的内存),您可以在以后分配和添加。没有实际数据的这个类的实例仍然带有元数据:在这种情况下,只是数组容器的维度和元素类型描述符。这样做的一个目的是允许用户分配数据。



请参阅: http://opencv.willowgarage.com/documentation/operations_on_arrays.html [ ^ ]。



-SA
It simply means that only the CvMat object is allocated and created, but not actual matrix data (not memory for the elements of the matrix themselves), which you can allocate and add later. The instance of this class without actual data still carries metadata: in this case, just the dimension of the array container and element type descriptor. One purpose of this is to allow the user-allocated data.

Please see: http://opencv.willowgarage.com/documentation/operations_on_arrays.html[^].

—SA


这篇关于什么是没有在内存c ++中分配的创建头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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