opencv数组超过255 [英] opencv array more than 255
本文介绍了opencv数组超过255的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在处理类型为CV_8U的opencv中的CvMat。
I'm dealing with CvMat in opencv of type CV_8U.
我基本上是添加数组(预计结果增加超过255)。
I'm basically adding arrays (and resultant addition is expected to be more than 255).
看起来像CvMat数组不存储大于255的值(值超过10,000-20,000)。我不想发生溢出。
It looks like the CvMat array doesn't store values more than 255 (values more than 10,000-20,000). I don't want an overflow to occur.
有什么办法可以使用opencv数据结构吗?
Is there any way I can do that using a opencv data-structure?
推荐答案
CV_8U表示每个变量在0和255之间(8位无符号整数)。
CV_16U会给你0到65535
这是你要找的吗?
CV_8U means each variable is between 0 and 255 (8bit unsigned integer). CV_16U will give you 0 to 65535 Is that all you were looking for?
这篇关于opencv数组超过255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文