自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

wxz1120171495的博客

在入门的路上

  • 博客(48)
  • 收藏
  • 关注

原创 ubuntu16.04配置CUDA8.0过程中遇到的一些坑的提示

真是一个很艰辛的过程,前几天才上手linux,导师要求一个月之内做出一个小项目来,我才能顺利地进入实验室。。。。。废话不多说了1、第一个问题不知道你是否会遇到,我反正遇到了,根本的原因是在装ubuntu系统的时候给根目录的存储空间分配小了,导致在配置CUDA8.0的时候,内存完全不够,花了我一两天的时间去给根目录扩容,希望你们不会遇到这种问题,如果你们遇到了,恭喜你们要踏上和我一样的道路了...

2018-12-27 14:46:22 660

原创 Java实现猜数小程序的用户界面

package cn.edu.bit.cs;import java.awt.BorderLayout;import java.awt.Label;import java.util.Random;import javax.swing.JFrame;import javax.swing.JPanel;import javax.swing.JTextField;import javax...

2018-10-28 16:33:41 298

原创 合并两个单词集合并去重

package cn.edu.bit.cs.exercise;import java.io.BufferedReader;import java.io.FileReader;import java.util.ArrayList;import java.util.Collections;import java.util.HashSet;import java.util.Iterato...

2018-10-20 14:17:26 608

原创 Java个人学习总结——对象集合部分

一、有关元素遍历时的删除和插入1、foreach遍历循环的本质是使用iterator进行遍历,注意集合遍历时不要一边遍历一边删除,不能用集合的remove方法进行元素的删除,需要直接用iterator的remove方法进行删除,错误示例如下:Iterator<String> it = books.iterator();//iterator作为遍历集合的方法 whil...

2018-10-16 18:54:53 161

原创 Java个人学习总结——有关Java接口的理解和lambda

1、对接口的理解,借口是不同方法的集合,接口中只定义相应的特征,不实现具体的方法,方法可以在不同的类当中具体实现注意一个方法的特征仅包括方法的名字,参数的数目和种类接口之间可以互相延伸,实现接口中具体的类的时候,注意用关键字implements2、函数式接口特性,只定义一个抽象的方法3、接口中的静态的方法,只要有实现这个接口的所有的类,都自动拥有默认的静态方法4、引入lambd...

2018-10-14 21:27:21 138

原创 Java实现线性表的经典实例

package cn.edu.bit.cs;public class MyList {public static void main(String args[]){ List objectList=new List();//创建新的list对象 Boolean b = Boolean.TRUE; Character c = new Character('$'); Integer i...

2018-10-13 23:28:44 1070

原创 Java学习个人笔记总结——对象的比较等问题

1、关于对象之间的比较利用compareTo的借口比较,注意排序以及比较定义比较的方法,示例如下: public int compareTo(Employee other) { if (salary < other.salary) return -1; if (salary > other.salary) return 1; re...

2018-10-13 14:07:30 131

原创 Java课后作业——异常处理

package cn.edu.bit.cs;import java.util.Scanner;public class JudgeGrade { public static void main(String[] args) { Scanner in=new Scanner(System.in); try { int grade=...

2018-10-10 09:31:22 475

原创 Java异常处理个人心得总结

1、异常处理的流程总是首先抛出异常,然后才进行处理public class TestException { public static void main(String[] args) { int a = 6; int b = 0; try { // try监控区域 if (b == 0) throw new ArithmeticException(); // 通...

2018-10-09 20:42:35 5999

原创 数据结构问题——一元多项式相乘

void multiplication(NODE *head1, NODE *head2, NODE *head3){ NODE *p1 = head3, *p2 = head3; NODE *h1 = head1->next, *h2 = head2->next; NODE *p3 = head3; while (h1)//多项式乘法运算转化为加法运算,注意双重循环控制乘...

2018-10-08 23:33:38 7176

原创 学习笔记——关于信号稀疏表示相关概念的整理

一、图像的稀疏首先理解图像的稀疏,分解原始图像为若干个的块,这些样本就是图像中的单个样本块,在固定的字典上系数分解y之后,便得到稀疏向量,从而组成稀疏矩阵,其中x为y在D上的分解稀疏,成为稀疏矩阵,可表示为: 字典矩阵中的各个列向量被称为原子(Atom). 当字典矩阵中的行数小于甚至远小于列数时,即m⩽n​,字典D​​是冗余的。所谓完备字典是指原子可以张成n​​纬欧式空间​. 如果在某...

2018-08-12 00:01:51 11812

转载 对PCA算法的理解(转载)

PCA(Principal Component Analysis,主成分分析)是一种常用的数据分析方法。PCA通过线性变换将原始数据变换为一组各维度线性无关的表示,可用于提取数据的主要特征分量,常用于高维数据的降维。网上关于PCA的文章有很多,但是大多数只描述了PCA的分析过程,而没有讲述其中的原理。这篇文章的目的是介绍PCA的基本数学原理,帮助读者了解PCA的工作机制是什么。当然我并不打算把...

2018-08-11 00:53:38 311

原创 non-local 论文及代码复现总结

一、NLmeansfilter 函数function [output]=NLmeansfilter(input,t,f,h) % input: 处理的图像 % t: 搜索窗的半径 % f: 相似窗的半径 % h: 滤波参数 [m,n]=size(input);%图像的范围 output=zeros(m,n); input2=padarray(input,[f f],'s...

2018-08-07 21:23:07 2534

原创 A non-local algorithm for image denoising理解及读书笔记

1、非局部均值的的突破在于它是将有噪声的图像改正而不是将噪声单独从图像中分离出来,它的基本思想是:当前像素点的灰度值与所有与其结构相似的像素点加权平均得到,确定权值系数则是:对于每一个像素点的权值,采用以该像素点为中心的图像子块与当前像素点为中心的图像子块之间的高斯加权欧氏距离来计算2、下图表示了高斯滤波,双边滤波和非局部均值处理过程3、NML 算法首先要确定两个窗口,分别为相似窗...

2018-08-01 22:56:08 4741

原创 笔记整理——关于rolling guidance filter的理解

 1、rolling guildance 的作用rolling guildance filter的作用在于解决了其他滤波器在平滑纹理或区域细节时出现的物体轮廓或边界丢失的问题,其他比如双边滤波器或者高斯滤波器通常会一律平滑处理掉,容易丢失重要信息,而rolling guildance filter 则可以高效率地解决这类问题  2、roling guildance 思想的关键步...

2018-07-08 16:44:20 4935 3

原创 学习笔记整理——对于双边滤波与引导滤波的一些浅显的理解

1、引导滤波的个人理解  引导滤波实际上是假设一像素k为中心的窗口存在局部线性关系,通过对局部线性关系求导可以判断哪些边缘需要保留,给出的a,b两个参数则是以像素k为窗口的周围的权重的均值2、引导滤波的优点引导滤波相对于双边滤波最大的优点在于算法的复杂度与窗口的大小无关,对于处理较为大型的图片时,在效率上有明显的提升同时,引导滤波可以很好地克服双边滤波中出现的梯度翻转的现象,因为假设前提便是存在线...

2018-07-06 00:28:08 8938

原创 笔记整理——对于卷积的理解

1、首先理解CNN中卷积本质:图像中不同数据窗口的数据和卷积核(一个滤波矩阵)作内积的操作叫做卷积。其计算过程又称为滤波(filter),本质是提取图像不同频段的特征。2、什么是卷积核:也称为滤波器filter,带着一组固定权重的神经元,通常是n*m二维的矩阵,n和m也是神经元的感受野。n*m 矩阵中存的是对感受野中数据处理的系数。一个卷积核的滤波可以用来提取特定的特征(例如可以提取物体轮廓、颜色...

2018-07-05 16:11:35 1106

原创 消解算法总结

#include <stdio.h>#include <string.h>#include <math.h>const int N = 1010;int s[N][30];//用于存储简单析取式int num0, num1, num2;//控制s0,s1,s2三个集合之间的转换,仍然利用s数组存储char str[N];int c[30];voi...

2018-05-20 20:41:54 5622 5

原创 HDU 2544

#include <cstdio>#include <cstring>#include <algorithm>#include <iostream>using namespace std;const int inf = 0x3f3f3f3f;int d[1005];int w[1005][1005];//存储地图,存储连通关系int ...

2018-04-17 20:30:57 106

原创 poj stick

#include <cstdio>#include <algorithm>#include <cstring>#include <cmath>#include <iostream>using namespace std;int stick[205];bool visit[205];int n, m, sum;bool ...

2018-04-10 20:51:12 176

原创 迷宫问题

#include <cstdio>#include <iostream>#include <cstring>#include <algorithm>#include <queue>using namespace std;int dir[4][2] = { {1,0},{-1,0},{0,1},{0,-1} };int map...

2018-04-08 21:19:21 98

原创 HDU Tempter of the Bone

#include <cstdio>#include <iostream>#include <cstring>#include <algorithm>using namespace std;char map[10][10];int visit[10][10];int n, m, t;int sx, sy, ex, ey;//记录起点和终...

2018-04-08 16:03:50 108

原创 opencv视频读取与边缘化处理

#include <opencv2/highgui.hpp>#include <opencv2/imgproc.hpp>#include <opencv2/core.hpp>#include <iostream>using namespace cv;using namespace std;int main(){ VideoCaptur...

2018-04-05 20:55:39 564

原创 opencv无法正常显示图片的问题

#include <opencv2/highgui.hpp>#include <opencv2/imgproc.hpp>#include <opencv2/core.hpp>#include <iostream>using namespace cv;using namespace std;int main(){ Mat img=imr...

2018-04-05 01:07:44 1642 2

原创 UVA Cutting Sticks

#include <cstdio>#include <iostream>#include <cstring>#include <algorithm>#include <cmath>using namespace std;int n,l;const int maxn = 0x3f3f3f3f;int dp[55][55];...

2018-03-29 18:48:06 124

原创 UVA 非常可乐

#include <cstdio>#include <iostream>#include <cmath>#include <cstring>#include <queue>using namespace std;struct node{ int x[3];//记录倒水过程中倒水的状态,利用相应的中间状态进行记录 int ...

2018-03-27 20:33:51 121

原创 Dungeon Master

#include <cstdio>#include <iostream>#include <cmath>#include <queue>#include <cstring>using namespace std;char s[35][35][35];int vis[35][35][35];//标记相应的访问状态int d[...

2018-03-26 23:09:06 111

原创 UVA

#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>using namespace std;int n;struct node{ int x, y;}p[55];//double dp[100][100];//dp定义i到j最佳方案,最...

2018-03-26 00:26:51 130

原创 POJ Multiplication Puzzle

#include <cstdio>#include <cstring>#include <algorithm>#include <iostream>using namespace std;int dp[105][105];int a[105];int main(){ int n; cin >> n; for (int...

2018-03-25 21:45:35 199

原创 HDU invertions

#include <cstdio>#include <iostream>#include <algorithm>#include <cmath>using namespace std;typedef long long ll;int d[10005];int n, k;ll query(int l, int r){ if (l &...

2018-03-20 00:19:39 115

原创 UVA Partitioning by Palindromes

#include <cstdio>#include <iostream>#include <algorithm>#include <cstring>using namespace std;char s[1005];int dp[1005];//表示以i结尾的字符串最少分割的回文字符串bool judge(int i, int j)//判...

2018-03-19 00:06:36 93

原创 UVA Lighting System Design

#include <cstdio>#include <cstring>#include <iostream>#include <cmath>#include <algorithm>using namespace std;int s[1005];//表示前i中灯泡总的数量int d[1005];//表示最小的开销struct...

2018-03-17 23:23:13 118

原创 UVA A Spy in the Metro

#include <cstdio>#include <cstring>#include <iostream>#include <algorithm>#include <cmath>using namespace std;const int inf = 0x3f3f3f3f;bool train[210][51][3];//t...

2018-03-12 23:21:29 106

原创 UVA Ideal Path

#include <cstdio>#include <iostream>#include <cstring>#include <cmath>#include <algorithm>#include <vector>#include <queue>using namespace std;const i

2018-03-05 23:20:02 139

原创 UVA Undraw the Trees

#include <cstdio>#include <iostream>#include <cstring>using namespace std;const int maxn = 200+ 5;char map[maxn][maxn];//存储读入的数据int n;void dfs(int r,int c)//r表示行,c表示列{ print...

2018-03-03 15:50:49 117

原创 UVA Play on Words

#include <cstdio>#include <iostream>#include <string>#include <cstring>#include <cmath>using namespace std;const int maxn = 100;int vis[maxn];int map[maxn][maxn],...

2018-03-01 18:39:10 377 1

原创 UVA Ordering Tasks

#include <cstdio>#include <cstring>#include <iostream>#include <cmath>using namespace std;const int maxn = 100 + 5;int vis[maxn];//记录访问过程,是否访问过该节点int g[maxn][maxn];int ...

2018-02-26 23:48:35 124

原创 UVA Abbott's Revenge

#include <cstdio>#include <iostream>#include <cstring>#include <string>#include <queue>#include <vector>using namespace std;struct node{ int r, c, dir;//横行...

2018-02-25 23:48:02 159

原创 UVA Quadtrees

#include <cstdio>#include <iostream>#include <cstring>using namespace std;const int len = 32;const int maxn = 1024 + 5;//可能出现的总的涂色方块char s[maxn] = { 0 };//记录读入的字符串char color[l...

2018-02-20 20:27:36 152

原创 UVA The Falling Leaves

#include <cstdio>#include <iostream>#include <cmath>#include <cstring>using namespace std;const int maxn = 200 + 5;int sum[maxn] = { 0 };//统计每一层的总和void build(int p)//递归建...

2018-02-20 17:23:06 125

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除