CV_8UCV_32FCV_32S
轉自:http://stackoverflow.com/questions/8377091/what-are-the-differences-between-cv-8u-and-cv-32f-and-what-should-i-worry-about
CV_8U is unsigned 8bit/pixel - ie a pixel can have values 0-255, this is the normal range for most image and video formats.
CV_32F is float - the pixel can have any value between 0-1.0, this is useful for some sets of calculations on data - but it has to be converted into 8bits to save or display by multiplying each pixel by 255.
CV_32S is a signed 32bit integer value for each pixel - again useful of you are doing integer maths on the pixels, but again needs converting into 8bits to save or display. This is trickier since you need to decide how to convert the much larger range of possible values (+/- 2billion!) into 0-255
總結
以上是生活随笔為你收集整理的CV_8UCV_32FCV_32S的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 最小二乘矩阵推导
- 下一篇: uint8_t uint16_t uin