clc; clear; RGB = imread('test.jpg');%jaynes-thesis I=rgb2gray(RGB); % 图片用的是灰度图像, [x,y,z]=size(I); BW=edge(I,'canny'); …
hough 源代码
Hough变换:Hough变换是1962年由Hough提出来的,用于检测图像中直线、圆、抛物线、椭圆等形状能够用一定函数关系描述的曲线,它在影像分析,模式识别等很多领域中得到了成功的应用。[1]
%IYHOUGH_XY XY Hough transform % % H = IHOUGH_XY(XYZ, drange, Nth) % % Compute the Hough transform of the XY data given as the fir…
%IHOUGH Hough transform % % params = IHOUGH % H = IHOUGH(IM) % H = IHOUGH(IM, params) % % Compute the Hough transform of the image…
%HOUGHSHOW Show Hough accumulator % % houghshow(H) % % Displays the Hough accumulator as an image. % % SEE ALSO: ihough % % Copy…
前言 做一个自己的PhotoShop 当你看到那些用PhotoShop或Corel PhotoPaint等软件绘制出的精美图片, 并被它们的神奇效果所折服时,你是否曾想到做一个自己的PhotoShop?" 怎么可能,这是吹牛吧!",你一定…
function [r, c] = houghpixels(f, theta, rho, rbin, cbin) %HOUGHPIXELS Compute image pixels belonging to Hough transform bin. % …
前言 做一个自己的PhotoShop 当你看到那些用PhotoShop或Corel PhotoPaint等软件绘制出的精美图片, 并被它们的神奇效果所折服时,你是否曾想到做一个自己的PhotoShop?" 怎么可能,这是吹牛吧!",你一定…
function r=hgtrans(bw,r_num,theta_num) %Hough变换 %bw 为二值化后的图像,r_num 为Hough 直线截距的个数, %theta_num 为Hough空间角度的个数 [m,n]=size(bw); r…
前言 做一个自己的PhotoShop 当你看到那些用PhotoShop或Corel PhotoPaint等软件绘制出的精美图片, 并被它们的神奇效果所折服时,你是否曾想到做一个自己的PhotoShop?" 怎么可能,这是吹牛吧!",你一定…
function [r, c] = houghpixels(f, theta, rho, rbin, cbin) %HOUGHPIXELS Compute image pixels belonging to Hough transform bin. % …