Hough变换的原理:
将图像从图像空间变换至参数空间,变换公式如下:
变换以后,图像空间与参数空间存在以下关系:
图像空间中的一点在参数空间是一条曲线,而图像空间共线的各点对应于参数空间交于一点的各条曲线。
下面使用Matlab实现Hough变换对图像中的直线划痕进行检测。
close all;
clear all;
I = imread('scratch.tif');
figu...
分类:
其他好文 时间:
2014-06-15 15:21:40
阅读次数:
272
下面使用极小值点阈值选取方法,编写MATLAB程序实现图像分割的功能。
极小值点阈值选取法即从原图像的直方图的包络线中选取出极小值点,
并以极小值点为阈值将图像转为二值图像
clear all;
close all ;
G=imread('rabbit.png');
figure();
subplot(2,2,1);
imshow(G);
subplot(2,2,2);
imhist(G...
分类:
其他好文 时间:
2014-06-15 15:03:26
阅读次数:
293
问题描述:
[celladmin@vrh4 ~]$ cellcli
CellCLI: Release 11.2.3.2.0 - Production on Sat Jun 14 09:11:08 EDT 2014
Copyright (c) 2007, 2012, Oracle. All rights reserved.
Cell Efficiency Ratio: 1
CellCLI...
分类:
其他好文 时间:
2014-06-15 15:02:45
阅读次数:
211
题目
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],...
分类:
其他好文 时间:
2014-06-15 14:10:54
阅读次数:
239
这是一道让人泪奔的题,它深刻的说明了什么是剪枝,哪怕是再小的一个细节,一旦递归规模增大都会引发巨大的时间消耗,真是神题~
Sticks
时间限制:3000 ms | 内存限制:65535 KB
难度:5
描述George took sticks of the same length and cut them randomly until all part...
分类:
其他好文 时间:
2014-06-15 12:18:43
阅读次数:
174
1, 两个字段的类型或者大小不严格匹配,例如,如果一个是INT(10), 那么外键也必须设置成INT(10), 而不是 INT(11) 也不能是 TINYINT. 你得使用 SHOW 命令来查看字段的大小,因为一些查询浏览器有时候把 int(10) 和int(11) 都显示为integer。另外,你...
分类:
数据库 时间:
2014-06-15 11:49:15
阅读次数:
267
在WWDC2014上,Sprite Kit又有了很多新的提升!
其中一个很有意思的东西就是Physics Field!也就是物理场!
这意味着我们在Sprite kit上编写虚拟物理场的游戏将变得非常简单!先放上GitHub链接:
https://github.com/songrotek/PhysicsFieldsWorld.git
我另外录制了效果视频大家可以先一睹为快:
http://v.youku.com/v_show/id_XNzI2MzUzNzYw.html...
分类:
移动开发 时间:
2014-06-15 10:24:48
阅读次数:
282
IE : 1 2 3 body内 1 function copyToClipboard() { 2 3 if (document.all) { //判断...
分类:
Web程序 时间:
2014-06-14 16:29:02
阅读次数:
186
题目描述You are given N baskets of gold coins. The baskets are numbered from 1 to N. In all except one of the baskets, each gold coin weighs w grams. In t...
分类:
其他好文 时间:
2014-06-14 16:22:52
阅读次数:
191
%%%% 完成PS 中的染色玻璃滤镜特效
clc;
clear all;
close all;
addpath('E:\PhotoShop Algortihm\Image Processing\PS Algorithm');
Image=imread('4.jpg');
Image=double(Image);
Gray_Image=rgb2gray(Image/...
分类:
其他好文 时间:
2014-06-14 10:39:21
阅读次数:
240