当前位置: 首页 > news >正文

一 OpenCV中的数据类型

1. cv::Mat

2. cv::Point

主要用来表示二维点,也有表示三维点的模板类型;

cv::Point p(int,  int)  最常用

① cv::Point_<T>

② cv::Point2i          cv::Point_<int>

③ cv::Point2f          cv::Point_<float>

④ cv::Point2d         cv::Point_<double>

⑤ cv::Point2l          cv::Point_<int64>

cv::Point3(int,  int,  int)

① cv::Point3_<T>          表示三维点

② cv::Point3i

③ cv::Point3f

④ cv::Point3l

⑤ cv::Point3d

3. cv::Rect 矩形

① cv::Rect               最常用

② cv::Rect_<int>     int类型的矩形

② cv::Rect_<float>  float表示的矩形

③ cv::Rect_<long>  long表示的矩形

④ cv::Rect2i            int表示的矩形

⑤ cv::Rect2f            float表示的矩形

4. cv::Vec

向量,可以用来表示点

typedef Vec<uchar, 2> Vec2b;                     二维点
typedef Vec<uchar, 3> Vec3b;                     三维点
typedef Vec<uchar, 4> Vec4b;                     四维点

typedef Vec<short, 2> Vec2s;                   
typedef Vec<short, 3> Vec3s;
typedef Vec<short, 4> Vec4s;

typedef Vec<ushort, 2> Vec2w;
typedef Vec<ushort, 3> Vec3w;
typedef Vec<ushort, 4> Vec4w;

typedef Vec<int, 2> Vec2i;
typedef Vec<int, 3> Vec3i;
typedef Vec<int, 4> Vec4i;
typedef Vec<int, 6> Vec6i;
typedef Vec<int, 8> Vec8i;

typedef Vec<float, 2> Vec2f;
typedef Vec<float, 3> Vec3f;
typedef Vec<float, 4> Vec4f;
typedef Vec<float, 6> Vec6f;

typedef Vec<double, 2> Vec2d;
typedef Vec<double, 3> Vec3d;
typedef Vec<double, 4> Vec4d;
typedef Vec<double, 6> Vec6d;

5. cv::KeyPoint

6. cv::DMatch

http://www.lryc.cn/news/262756.html

相关文章:

  • 59. 螺旋矩阵 II(java实现,史上最详细教程,想学会的进!!!)
  • vue 将后端返回的二进制流进行处理并实现下载
  • PyCharm连接远程服务器
  • 使用Qt制作网易云播放器的歌曲排行界面
  • 【.NET Core】特性(Attribute)详解
  • 【C++】POCO学习总结(十九):哈希、URL、UUID、配置文件、日志配置、动态库加载
  • 1846_安全SPI
  • SQL Server ,使用递归查询具有层级关系的数据。
  • 【参数汇总】mysql服务端/客户端常见优化参数
  • LeetCode 142. 环形链表 II
  • Leetcode刷题笔记题解(C++):224. 基本计算器
  • 还在为学MyBatis发愁?史上最全,一篇文章带你学习MyBatis
  • C# WPF上位机开发(树形控件在地图软件中的应用)
  • 【华为】文档中命令行约定格式规范(命令行格式规范、命令行行为规范、命令行参数格式、命令行规范)
  • Trie 字典树(c++)(前缀)
  • 全球移动通信(2G/3G/4G/5G)频谱分布情况
  • 【04】GeoScene导出海图或者电子航道图000数据成果
  • 安卓端出现https请求失败(转)
  • appium2.0.1安装完整教程+uiautomator2安装教程
  • Hbase的Rowkey设计
  • 软考机考考试第一批经验分享
  • 架构简洁之道有感,谈谈软件组件聚合的张力
  • 计算机网络 网络层上 | IP数据报,IP地址,ICMP,ARP等
  • 金智融门户(统一身份认证)同步数据至钉钉通讯录
  • 服务器RAID配置及功能介绍
  • vue + element 实现鼠标左右滑动效果
  • gitlab 安装
  • idea中定时+多数据源配置
  • Python---多任务的介绍
  • Kubernetes 的用法和解析 -- 4