資源簡介
matlab實現的hough變換直線檢測,單獨的.m文件,方便插入調用。
代碼片段和文件信息
function?[sthetaacc]=hough_lines(varargin);
%HOUGH_LINES?Hough?transform?line?detection.
%?CMP?Vision?Algorithms?http://visionbook.felk.cvut.cz
%
%?Find?all?straight?lines?in?an?image?using?the?Hough?transform
%??:?the?input?of?this?routine?is?an
%??edge?image?obtained?for?example?by?the?Canny?edge?detector?
%??We?use?the?(thetas)?line?parameterization?with?origin?in?the
%??center?of?the?image?.
%??
%?Usage:?[sthetaacc]?=?hough_lines(imtheta_steps_stepthresh)
%?Inputs:
%??im???[m?x?n]??Input?edge?image:?non-zero?values?are?edges
%?????????????????the?value?corresponds?to?edge?strength.?This?may?be
%?????????????????used?for?weighting?the?edges?by?the?gradient?magnitude.
%??theta_step??(default?/360)??Discretization?step?for?the
%????angle?theta?in?radians.
%??s_
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????78274??2010-04-29?16:57??hough_lines\chess.jpg
?????文件???????5952??2018-12-04?19:25??hough_lines\hough_lines.m
?????文件???????3083??2018-12-04?19:33??hough_lines\hough_lines_demo.m
?????目錄??????????0??2018-12-12?14:54??hough_lines
-----------?---------??----------?-----??----
????????????????87309????????????????????4
評論
共有 條評論