### 图像梯度 laplacian算子 img = cv2.imread('0.jpg',cv2.IMREAD_GRAYSCALE )sobelx = cv2.Sobel(img, cv2.CV_64F, 1, 0, ksize=3) # x方向sobelx = cv2.convertScaleA ...
分类:
其他好文 时间:
2020-11-02 10:21:19
阅读次数:
21
#include <bits/stdc++.h> using namespace std; const int mn=1e6+7; const int mod=1e9+7; int v[mn],p[mn],s[mn]; int main() { int n,tot=0; cin>>n; for(in ...
分类:
其他好文 时间:
2020-11-02 10:09:59
阅读次数:
47
好题: #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e6 + 5; const LL Mod = 1e9 + 7; #define INF 1e9 #define dbg(x) c ...
分类:
其他好文 时间:
2020-11-01 22:04:43
阅读次数:
23
Java基础:枚举的用法与原理在学习过程中,我们也只是在定义常量的时候,会意识到枚举的存在,而定义常量其实可以在类中实现,这时就会感觉枚举有点鸡肋。但在实际项目开发的过程中,枚举因相当迷人的特性而受到越来越多的关注。本文将按以下小节点来,一一介绍枚举:枚举的实现枚举的用法枚举的原理枚举与单例1.枚举的实现枚举是JDK1.5之后的特性,在此之前一般是在类中对常量进行定义。那么为什么需要枚举呢?举个栗
分类:
其他好文 时间:
2020-11-01 10:55:23
阅读次数:
18
# include <bits/stdc++.h> using namespace std; const int N = 2050; int n,m; int lowbit(int x) {return x & -x;} struct _2wBIT { int a[N][N]; void clear ...
分类:
其他好文 时间:
2020-11-01 09:41:49
阅读次数:
19
vendor vendor概念最早是由Keith提出,用来存放依赖包。在版本1.5出现。例如gb项目提供了一个名为gsftp的示例项目,它有一个gsftp程序,在标准库之外有三个依赖项。golang.org/x/crypto/ssh, golang.org/x/crypto/ssh/agent和gi ...
分类:
其他好文 时间:
2020-10-29 10:17:32
阅读次数:
21
完全背包模型 二维 #include<iostream> using namespace std; const int N = 4010; const unsigned int mod = 1 << 31; unsigned int f[N][N]; int n; int main(){ cin > ...
分类:
其他好文 时间:
2020-10-29 09:20:50
阅读次数:
15
解析本地Json // var response = prev.getResponseDataAsString(); // var mData = JSON.parse(response); var log = require('./utils.js'); var mData = utils.moc ...
分类:
其他好文 时间:
2020-10-27 10:57:22
阅读次数:
21
工厂Bean 一:定义: 在配置文件中定义bean类型可以和返回类型不一样 二:步骤: 第一步:创建类,让这个类序偶为工厂bean,实现接口Factorybean,而在这个FactoryBean里面也可以存多个函数,返回多个对象 第二步:实现接口里面的方法,在实现的方法中定义返回的bean类型 三: ...
分类:
其他好文 时间:
2020-10-26 11:31:16
阅读次数:
20