笔记
文章平均质量分 86
mathnan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
OpenVX编程笔记(一)
1. 基本概念 1.1 OpenVX 应用目标 real time computing on low power platforms high-level abstraction for heterogeneous platforms 2. OpenVX对象 2.1 data objects 数据访问 OpenVX通过map和unmap函数实现可以在CPU memory(host memory)和accelerator memory之间进行数据移动。例如:`vxMapImagePatc..原创 2022-02-21 16:09:32 · 1292 阅读 · 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 · 1298 阅读 · 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 · 3797 阅读 · 1 评论 -
Leetcode C++ 二叉树&递归
Leetcode C++ 二叉树&递归Leetecode 104 Leetecode 104 104. Maximum Depth of Binary Tree Given 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 · 376 阅读 · 0 评论 -
Leetcode C++ 队列
Leetcode C++ 队列Leetecode 102 Leetecode 102 102. Binary Tree Level Order Traversal Given 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 · 258 阅读 · 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 · 177 阅读 · 0 评论
分享