- 博客(10)
- 收藏
- 关注
原创 高斯滤波 python
图像处理 高斯滤波python实现分析代码实现opencv函数库分析核大小3*3均值滤波:(40+107+5+198+226+223+37+68+193)/9高斯滤波:不是直接去求均值,而是给每个像素点分配一个权重,较近的像素点具有较大的权重值代码实现opencv函数库GaussianBlur函数dst = cv2.GaussianBlur(src,ksize,sigmaX)# src 源图像 ksize 核大小# sigmaX X方向方差,控制权重,Y方向与X方向保持一致。 为零
2021-12-10 18:02:16
2658
原创 图片批量合并转pdf
从网上爬了漫画,但是一页一页的jpg读着不爽,研究了一下图片批量合并转pdf的python代码参考代码from PIL import Imagefrom fpdf import FPDFimport oscomicChapterList = ["第一卷","第二卷","第三卷","第四卷","第五卷","第六卷","第七卷","第八卷"]def makePDF(pdfName,listPages): cover = Image.open(listPages[0]) wi
2021-11-13 14:23:05
387
原创 hash例
#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e6+10,d=5e5;int pin[101];int hash[2000003];int main(){ int a,b,c,d; int i,j,sum; for(i=1;i<101;i++) pin[i]=i*i; while(scanf("%d%d%d%d",&a,&b,&c,&.
2020-06-23 20:45:51
124
原创 胜利大逃亡 hdu
#include <stdio.h>#include <string.h>#include <iostream>#include <stack>#include <queue>#include <vector>#include <algorithm>using namespace std;typed...
2020-04-21 23:22:50
72
原创 Rescue hdu
#include<bits/stdc++.h>using namespace std;typedef long long ll;struct pos{ int count,x,y; friend bool operator<(pos a,pos b) { return a.count>b.count;//从小到大排列 }};int dir[4][...
2020-04-21 22:01:19
102
原创 Constructing Roads
并查集 最小生成树#include<iostream>#include<cstring>#include<algorithm>using namespace std;typedef long long ll;int bin[105];int num[105][105];struct node{ int s,e,l;}arr[5060];...
2020-04-13 20:16:46
61
原创 is it a tree?
#include<iostream>#include<cstring>#include<algorithm>using namespace std;typedef long long ll;int bin[100010];int vis[100010];int deg[100010];int flag;int findx(int x){ i...
2020-04-12 13:41:59
69
原创 HDOJ 2159 FATE
思路一:将经验值、杀怪数当作消耗,求忍耐度的最小值,初始化参考《背包九讲》 除了当经验值为0时dp值为0,其余为正无穷,结果WA代码如下#include<stdio.h>#include<iostream>#include<cstring>#include<algorithm>const int INF=0x3f3f3f3f;//最大值 ...
2020-04-07 18:24:15
105
原创 HDOJ 1114 piggy-bank
#include<stdio.h>#include<iostream>#include<cstring>#include<algorithm>const int INF=0x3f3f3f3f;//最大值 using namespace std;typedef long long ll;int p[502];int w[502];i...
2020-04-06 17:29:53
2099
原创 HDOJ 2602 Bone Collector
HDOJ 2602 Bone Collector#include<stdio.h>#include<iostream>#include<string.h>#include<algorithm>using namespace std;typedef long long ll;int w[1002];int va[1002];int...
2020-04-06 16:10:02
80
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人