转自: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_8U CV_32F, and CV_32S相关推荐

  1. error: (-215:Assertion failed) npoints = 0 (depth == CV_32F || depth == CV_32F || depth ==CV_32S

    [解决]error: (-215:Assertion failed) npoints >= 0 && (depth == CV_32F || depth == CV_32S) i ...

  2. 【报错】npoints >= 0 (depth == CV_32F || depth == CV_32S) in function ‘cv::contourArea‘

    1 分析原因 img, countours, hierarchy = cv2.findContours(edged_img.copy(), cv2.RETR_LIST, cv2.CHAIN_APPRO ...

  3. cv::convertTo

    void convertTo( OutputArray m, int rtype, double alpha=1, double beta=0 ) const; m – 目标矩阵.如果m在运算前没有合 ...

  4. opencv机器学习ml模块简介

    本文不涉原理,只介绍如何使用! ml模块为opencv的机器学习(machine learning,ml)代码库,包含各种机器学习算法: 0, class CvStatModel ; class Cv ...

  5. 专家库管理软件专家评审系统_专家系统2 0

    专家库管理软件专家评审系统 Are neural networks and deep learning the keys that will finally unlock the path to ar ...

  6. C++版本OpenCv教程(四十二)霍夫变换原理及直线检测

    霍夫变换(Hough Transform)是图像处理中检测是否存在直线的重要算法,该算法是由Paul Hough在1962年首次提出,最开始只能检测图像中的直线,但是霍夫变换经过不断的扩展和完善已经可 ...

  7. Python OpenCV——函数 cv2.findContours 运行错误【in function ‘cv::pointSetBoundingRect‘】解决方案

    问题描述 cv2.error: OpenCV(4.5.1) C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-r2ue8w6k\opencv\m ...

  8. OpenCV3.0或OpenCV3.1的SVM操作

    OpenCV2.0 SVM代码及其分析 OpenCV 在很久以前就集成了SVM的功能,现在OpenCV升级到了3.0和3.1了,很多人都不习惯了怎么调用OpenCV中的SVM功能了.在之前OpenCV ...

  9. python中area是什么意思_python – 与openCV 3中的contourArea的兼容性问题

    我试图对findContours得到的轮廓进行简单的面积计算. 我的openCv版本是3.1.0 我的代码是: cc = cv2.findContours(im_bw.copy(), cv2.RETR ...

最新文章

  1. Redis 系统学习目录
  2. SQL Server 2008杀数据库连接
  3. Flex Builder 开发语言切换问题
  4. JSP简单练习-页面重定向
  5. (7) hibernate之级联cascade和关系维持inverse
  6. python is beautiful_Python list 和 str 互转
  7. mysql读书笔记----时间函数
  8. 怎么查看mysql正在运行的语句_MySQL如何查询当前正在运行的SQL语句
  9. 两个苹果手机如何同步数据_同步苹果手机和Windows的提醒事项
  10. java 线程由浅入深_由浅入深,Java 并发编程中的 Synchronized(一)
  11. 下面的一堆文字为了说明一件事情---.NET程序,内存溢出,如何控制.
  12. java 保留html_好程序员Java培训分享Java包是什么?
  13. SAP License:SAP采购信息系统
  14. mysql怎么查找删除重复数据_Mysql中如何查找并删除重复数据
  15. 《程序员修炼之道》---- 修的是什么
  16. MySQL数据库的主键和外键详解
  17. PHP 每日学习函数之 floatval 函数
  18. 通过SQL写FSG报表
  19. 门急诊排队叫号系统demo的基本实现
  20. ROS踩坑之.msg文件未能转化为.h文件

热门文章

  1. 一种清淤机器人分拣识别系统的C/Python语言实现
  2. ESP32 E (10309) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdo
  3. 霍尔传感器磁极的磁场强度计算
  4. 论影响高学习效率的几大因素
  5. Cobalt编译流程分析
  6. July, 15(R)
  7. drawboard pdf拆分文件_请收藏!这是一份最全的PDF问题解决方案。
  8. C++智能指针unique_ptr与shared_ptr
  9. 微型计算机也称为个人计算机由,微型计算机概述计算机概述微型电脑组装系统台式电脑...
  10. 山东大学 研一 高级算法设计与分析期末考试回忆版