<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[mathnan的专栏]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/mathnan</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; mathnan]]></copyright><item><title><![CDATA[OpenVX编程笔记（一）]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/123049427</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/123049427</guid><author>mathnan</author><pubDate>Mon, 21 Feb 2022 16:09:32 +0800</pubDate><description><![CDATA[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..]]></description><category></category></item><item><title><![CDATA[OpenVX编程笔记（二）]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/123048279</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/123048279</guid><author>mathnan</author><pubDate>Mon, 21 Feb 2022 16:03:02 +0800</pubDate><description><![CDATA[第一个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对象..]]></description><category></category></item><item><title><![CDATA[VMware安装Ubuntu+克隆]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/115399339</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/115399339</guid><author>mathnan</author><pubDate>Thu, 08 Apr 2021 15:57:54 +0800</pubDate><description><![CDATA[VMware安装Ubuntu+克隆
1. 安装
安装过程比较简单，但是注意选择“稍后安装”

建立好虚拟机后插入安装光盘镜像，启动虚拟机就可以正常安装了。
2. 配置静态网络
正常安装结束后，一般是可以上网的，默认使用的NAT模式，虚拟机通过DHCP模式自动分配到虚拟ip地址，但是为了后续开发任务，这里需要为虚拟机配置静态IP。
2.1 取消DHCP功能
首先去除DHCP功能，点击“编辑” &gt;&gt; “虚拟网络编辑器”，打开VMware的虚拟网络编辑器：

选中“VMnet8”，点击右下角“更改设置]]></description><category></category></item><item><title><![CDATA[Leetcode C++ 递归&回溯]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/115066920</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/115066920</guid><author>mathnan</author><pubDate>Mon, 22 Mar 2021 10:46:03 +0800</pubDate><description><![CDATA[Leetcode C++ 二叉树&amp;递归Leetecode 17
Leetecode 17
17. Letter Combinations of a Phone Number

Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
A mapp]]></description><category></category></item><item><title><![CDATA[AP、mAP、F1 Score、PR曲线、ROC曲线]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/115002778</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/115002778</guid><author>mathnan</author><pubDate>Fri, 19 Mar 2021 11:42:11 +0800</pubDate><description><![CDATA[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]]></description><category></category></item><item><title><![CDATA[Leetcode C++ 二叉树&递归]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/114277247</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/114277247</guid><author>mathnan</author><pubDate>Tue, 02 Mar 2021 09:51:41 +0800</pubDate><description><![CDATA[Leetcode C++ 二叉树&amp;递归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]]></description><category></category></item><item><title><![CDATA[Leetcode C++ 队列]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/113584875</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/113584875</guid><author>mathnan</author><pubDate>Thu, 04 Feb 2021 10:22:28 +0800</pubDate><description><![CDATA[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问题）。有两种思路，递归和迭代。


递归：


迭代：





.]]></description><category></category></item><item><title><![CDATA[Leetcode C++ 链表]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/110624705</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/110624705</guid><author>mathnan</author><pubDate>Fri, 04 Dec 2020 09:57:35 +0800</pubDate><description><![CDATA[Leetcode 链表Leetecode 206
Leetecode 206
206. Reverse Linked List

Reverse a singly linked list.
Example:
Input: 1-&gt;2-&gt;3-&gt;4-&gt;5-&gt;NULL
Output: 5-&gt;4-&gt;3-&gt;2-&gt;1-&gt;NULL


思路：
首先设定两个指针，pre和curr，翻转指针就是将curr的next指向pre，但是由于链表是单向的，因此反转后就无法获得]]></description><category></category></item><item><title><![CDATA[C++常用方法记录]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/109532825</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/109532825</guid><author>mathnan</author><pubDate>Fri, 06 Nov 2020 15:52:00 +0800</pubDate><description><![CDATA[C++常用方法记录map &amp; set迭代器判断是否存在字符串分割
map &amp; set
迭代器
判断是否存在
字符串分割

空格分割
对于空格分割的字符串，可以使用istringstream对象进行分割，头文件为#include &lt;sstream&gt;。

istringstream input(str);
string temp;
while(input &gt;&gt; temp){
    cout&lt;&lt;temp&lt;&lt;endl;
}

逐行读取文件，并对每行文]]></description><category></category></item><item><title><![CDATA[Leetcode C++ 查找表(Set & Map)]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/109532335</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/109532335</guid><author>mathnan</author><pubDate>Fri, 06 Nov 2020 15:42:49 +0800</pubDate><description><![CDATA[@[TOC](Leetcode 查找表(Set &amp; Map))
Leetcode 290

290. Word Pattern
Given a pattern and a string s, find if s follows the same pattern.
Here follow means a full match, such that there is a bijection between a letter in pattern and a non-empty word in s.
Ex]]></description><category></category></item><item><title><![CDATA[Leetcode滑动窗口]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/109111939</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/109111939</guid><author>mathnan</author><pubDate>Fri, 16 Oct 2020 10:48:38 +0800</pubDate><description><![CDATA[Leetcode 滑动窗口Leetcode 3
Leetcode 3

3. Longest Substring Without Repeating Characters
Given a string s, find the length of the longest substring without repeating characters.
Example 1:
Input: s = “abcabcbb”
Output: 3
Explanation: The answer is “abc”, with]]></description><category></category></item><item><title><![CDATA[Leetcode 排序]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/109054225</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/109054225</guid><author>mathnan</author><pubDate>Tue, 13 Oct 2020 16:18:46 +0800</pubDate><description><![CDATA[Leetcode 排序Leetcode 75
Leetcode 75

75. Sort Colors
Given an array nums with n objects colored red, white, or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white, and blue.
Here, we will use the ]]></description><category></category></item><item><title><![CDATA[Leetcode题解连接]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/109036464</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/109036464</guid><author>mathnan</author><pubDate>Mon, 12 Oct 2020 20:52:49 +0800</pubDate><description><![CDATA[Leetcode 题解连接
[L125]、[L167]、

]]></description><category></category></item><item><title><![CDATA[Leetcode 对撞指针]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/109035263</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/109035263</guid><author>mathnan</author><pubDate>Mon, 12 Oct 2020 19:51:15 +0800</pubDate><description><![CDATA[Leetcode 对撞指针思路Leetecode 167新的改变功能快捷键合理的创建标题，有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能，丰富你的文章UML 图表FLowchart流程图导出与导入导出导入
思路
该类问题特点为最优解由数组上的两个位置A和B对应的值的某种关系构成（如：和为某值）。这类问题可以首先在数组两端分]]></description><category></category></item><item><title><![CDATA[打造可在SSH远程登录中使用的Vim IDE配置]]></title><link>https://blog.youkuaiyun.com/mathnan/article/details/82682736</link><guid>https://blog.youkuaiyun.com/mathnan/article/details/82682736</guid><author>mathnan</author><pubDate>Thu, 13 Sep 2018 10:22:05 +0800</pubDate><description><![CDATA[由于公司需要在远程服务器上进行开发，所以一直希望能有一款可以方便通过SSH远程登陆后使用的Vim配置，虽然网上有很多高手的配置资料，但是很大一部分都是作为本地使用的，而且往往一些功能会出现BUG，或者失灵的情况。所以，经过一段时间的思考，还是决定自行进行Vim的配置，又经过一段时间，现已小有所成，目前将配置文件上传至我的代码库，欢迎试用并提出修改意见！

这个配置中使用了很多插件（可以到VimAw...]]></description><category></category></item></channel></rss>