![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
文章平均质量分 86
mathnan
这个作者很懒,什么都没留下…
展开
-
OpenVX编程笔记(一)
1. 基本概念1.1 OpenVX 应用目标real time computing on low power platforms high-level abstraction for heterogeneous platforms2. OpenVX对象2.1 data objects数据访问OpenVX通过map和unmap函数实现可以在CPU memory(host memory)和accelerator memory之间进行数据移动。例如:`vxMapImagePatc..原创 2022-02-21 16:09:32 · 1101 阅读 · 0 评论 -
OpenVX编程笔记(二)
第一个VX程序1. example1.c该例子使用*Immediate模式*,对一幅图像进行fast corner提取。具体程序功能说明请见*程序*注释。2. 例子总结2.1代码结构:首先生成一幅100x100的image并设置为黑色,然后从中间设置一个60x20的roi设置为白色。通过immediate mode模式调用VX的fast corner算法获取角点并输出。2.2使用到的VX对象总结:vxCreateContext()生成一个vx_context对象..原创 2022-02-21 16:03:02 · 1027 阅读 · 1 评论 -
AP、mAP、F1 Score、PR曲线、ROC曲线
1. 基础概念混淆矩阵:通过研究该混淆矩阵,可以构造如下几个指标:(1) Accuracy(准确度):意义:用于同时衡量分类器对于正负样本的分类正确性。不足:当测试样本不平衡时,该指标会失去意义。例如:100个样本中负样本占有98个,那么分类器只需将所有样本分为负类即可达到98%的准确度。公式:accuracy=TP+FNTP+FN+FP+TNaccuracy = \frac{TP + FN}{TP+FN+FP+TN}accuracy=TP+FN+FP+TNTP+FN(2) Prece原创 2021-03-19 11:42:11 · 2757 阅读 · 1 评论 -
Leetcode C++ 二叉树&递归
Leetcode C++ 二叉树&递归Leetecode 104Leetecode 104104. Maximum Depth of Binary TreeGiven the root of a binary tree, return its maximum depth.A binary tree’s maximum depth is the number of nodes along the longest path from the root node down to the fart原创 2021-03-02 09:51:41 · 204 阅读 · 0 评论 -
Leetcode C++ 队列
Leetcode C++ 队列Leetecode 102Leetecode 102102. Binary Tree Level Order TraversalGiven a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).思路:二叉树的宽度优先遍历(BFS问题)。有两种思路,递归和迭代。递归:迭代:.原创 2021-02-04 10:22:28 · 174 阅读 · 0 评论 -
C++常用方法记录
C++常用方法记录map & set迭代器判断是否存在字符串分割map & set迭代器判断是否存在字符串分割空格分割对于空格分割的字符串,可以使用istringstream对象进行分割,头文件为#include <sstream>。istringstream input(str);string temp;while(input >> temp){ cout<<temp<<endl;}逐行读取文件,并对每行文原创 2020-11-06 15:52:00 · 94 阅读 · 0 评论