是ImageFloat32数据类型1D数组还是2D数组? [英] is ImageFloat32 datatype 1D array or 2D array ?

查看:126
本文介绍了是ImageFloat32数据类型1D数组还是2D数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简单问题



ImageFloat32是用于在boofcv库中创建图像的数据类型



是ImageFloat32数据类型1D阵列还是2D阵列?



非常感谢

问候

解决方案

这不是一个数组吧所有,但是是一个类: http://boofcv.org/javadoc/boofcv/struct/image/ImageFloat32 .html [ ^ ] 。



一些背景:传统上,位图数据,如此类,被认为是排名为1的数组。像素数据在一个流中逐行流动,行之间没有任何分隔符。它具有深刻的实践意义。线之间的存储器边界可以从图像宽度确定,图像宽度通常存储在元数据中。这种方法类似于C或C ++中的数组概念。对于那些语言1D或2D(或3D阵列,等级1,2,3等的阵列)是完全相同的。多指数数组符号只不过是语法糖



(并且从公尺维度的真正深度数学理论的角度来看,所有像素数组,以及任何有限集对象,包括计算机内存中的任何对象,都具有维度0. :-))



-SA

Simple Question

ImageFloat32 is datatype used for create image in boofcv library

is ImageFloat32 datatype 1D array or 2D array ?

Many Thanks
Regards

解决方案

This is not an array it all, but is a class: http://boofcv.org/javadoc/boofcv/struct/image/ImageFloat32.html[^].

Some background: traditionally, bitmap data, as in this class, is considered to be an array of rank 1. The pixel data flows line by line in one stream, without any delimiters between lines. It makes deep practical sense. The memory boundaries between lines can be determined from the image width, which is usually stored in metadata. This approach is similar to the concept of array in C or C++. For those languages 1D or 2D (or 3D array, arrays of rank 1, 2, 3, etc.) is exactly the same thing. Multi-index array notation is nothing but syntactic sugar.

(And from the point of view of really deep mathematical theory of metric dimension, all pixel arrays, as well as any finite-set objects, including any object in computer memory, has dimension 0. :-))

—SA


这篇关于是ImageFloat32数据类型1D数组还是2D数组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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