自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

遇见更好的自己

正在成长的前端小白

  • 博客(9)
  • 问答 (1)
  • 收藏
  • 关注

原创 【matlab】求图像的最大连通区域

img=imread('2.jpg');figure(1)imshow(img);img=rgb2gray(img);img=im2bw(img);imLabel = bwlabel(img); %对各连通域进行标记 stats = regionprops(imLabel,'Area'); %求各连通域的大小 area = cat(1,stats

2016-08-27 19:58:37 5124

原创 opencv学习笔记---1

cvLoadImage IplImage* cvLoadImage( const char* filename, int flags=CV_LOAD_IMAGE_COLOR ); filename :要被读入的文件的文件名(包括后缀); flags :指定读入图像的颜色和深度: 指定的颜色可以将输入的图片转为3通道(CV_LOAD_IMAGE_COLOR), 单通道 (CV_LOAD_IMA

2016-08-27 19:49:43 450

转载 [leetcode] Linked List Cycle

Problem:Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?https://oj.leetcode.com/problems/linked-list-cycle/Problem II:Gi

2016-08-27 14:29:39 399

转载 CMake使用教程

CMake是一个比make更高级的编译配置工具,它可以根据不同平台、不同的编译器,生成相应的Makefile或者vcproj项目。通过编写CMakeLists.txt,可以控制生成的Makefile,从而控制编译过程。CMake自动生成的Makefile不仅可以通过make命令构建项目生成目标文件,还支持安装(make install)、测试安装的程序是否能正确执行(make test,或者c

2016-08-25 10:10:26 1692

转载 GitHub团队项目合作流程

已在另一篇博客中写出关于以下问题的解决,点此进入:同步团队项目到本地时出现冲突怎么办?项目负责人merge一个Pull Request后发现有错怎么回退?目录:零、前期准备一、创建开发分支二、Fork项目到个人的仓库三、Clone项目到本地四、和团队项目保持同步五、push修改到自己的项目上六、请求合并到团队项目上七、团队项目负责人审核及同意合并请求

2016-08-25 10:00:02 893

原创 Leetcode---Majority element

Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times. 在一个数组中,出现次数大于n/2次数的只可能有一个。开始时count为0,如果数组中的数和candidate相同,则加1。如果不同,则减1。cla

2016-08-19 16:43:11 241

转载 【数组】Majority Element II

题目:Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space.思路:首先,我们来看一下怎样求众数,也就是元素出现大于⌊ n/2 ⌋的数。我们注意到这样一个现象: 在

2016-08-16 20:45:23 286

转载 LeetCode:Add Digits - 非负整数各位相加

原文网址:http://my.oschina.net/Tsybius2014/blog/497645 1、题目名称 Add Digits (非负整数各位相加) 2、题目地址 https://leetcode.com/problems/add-digits 3、题目内容 英文:Given a non-negative integer num, repeatedly add all its

2016-08-16 15:38:57 413

转载 [leetcode] 371. Sum of Two Integers 解题报告

题目链接: https://leetcode.com/problems/sum-of-two-integers/Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -.Example:Given a = 1 and b = 2, retu

2016-08-16 14:45:20 333

空空如也

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

TA关注的人

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