cv::Mat transparentImage; cv::cvtColor(image, transparentImage, CV_BGR2BGRA); // find all white pixel and set alpha value to zero: for (int y = 0; y < ...
分类:
其他好文 时间:
2021-01-22 11:46:37
阅读次数:
0
Problem LeetCode Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: I ...
分类:
编程语言 时间:
2021-01-21 10:55:51
阅读次数:
0
Union-Find 算法,也就是常说的并查集算法,主要是解决图论中「动态连通性」问题的。 什么是动态连通性? 对于一幅图中,各个节点是否是相连的?如果不相连,就把他们连起来。涉及到几个操作: union:连接节点p和节点q find:查找节点p的父节点 connected:判断节点p和节点q是否是 ...
分类:
编程语言 时间:
2021-01-21 10:49:02
阅读次数:
0
在做项目时,有时会在整个项目里或指定文件夹下进行全局搜索和替换,这是一个很方便功能。使用方法如下: 一、全局搜索 1、使用快捷键 Ctrl+Shift+F 打开搜索窗口,或者通过点击 Edit–>Find–>Find in path 打开搜索窗口,如下图: 2、搜索界面如下,主要分为上中下三部分,上 ...
分类:
其他好文 时间:
2021-01-21 10:43:43
阅读次数:
0
重定向 输出重定向 进程产生的信息,存放到文件中 标准正确输出: > 标准错误输出: 2> 标准混合输出: &> 输入重定向 < 以文本内容,作为进程的标准输入 FD简介 文件句柄是windows系统的概念,在linux下称之为文件描述符FD(file description) 进程使用文件描述符在 ...
分类:
其他好文 时间:
2021-01-20 12:03:22
阅读次数:
0
题目链接:https://vjudge.net/problem/POJ-3278 Description Farmer John has been informed of the location of a fugitive cow and wants to catch her immediatel ...
分类:
其他好文 时间:
2021-01-19 12:20:23
阅读次数:
0
https://codeforces.ml/contest/1465/problem/D 参考:https://www.cnblogs.com/JDFZ-ZZ/p/14171488.html & https://blog.csdn.net/weixin_43918473/article/detail ...
分类:
其他好文 时间:
2021-01-19 12:01:51
阅读次数:
0
Hanover Square 追忆似水年华 Can it really be sixty-two years ago that I first saw you?我们初次相遇,难道真的是六十二年前吗? It is truly a lifetime, I know. But as I gaze into ...
分类:
其他好文 时间:
2021-01-19 12:01:22
阅读次数:
0
ssh公钥生成 ssh-keygen 设置邮箱账号 git config --global user.email "you@example.com" 设置码云昵称 git config --global user.name "Your Name" ...
分类:
其他好文 时间:
2021-01-19 11:59:24
阅读次数:
0
CF1461B Find the Spruce 题目大意: 求指定类型图案的数量。 思路: 一个很巧妙的递推式。 注意从下往上进行递推。 Code: #include <bits/stdc++.h> using namespace std; const int N = 510; int n, m; ...
分类:
其他好文 时间:
2021-01-19 11:39:58
阅读次数:
0