-
大小: 25KB文件類型: .zip金幣: 2下載: 0 次發(fā)布日期: 2021-06-08
- 語(yǔ)言: Matlab
- 標(biāo)簽:
資源簡(jiǎn)介
里面有測(cè)試圖一張,運(yùn)行LEDdianzhenjiance.m就能出結(jié)果,如果換了圖,只需修改幾個(gè)參數(shù)。

代碼片段和文件信息
function?[accum?varargout]?=?CircularHough_Grd(img?radrange?varargin)
%Detect?circular?shapes?in?a?grayscale?image.?Resolve?their?center
%positions?and?radii.
%
%??[accum?circen?cirrad?dbg_LMmask]?=?CircularHough_Grd(
%??????img?radrange?grdthres?fltr4LM_R?multirad?fltr4accum)
%??Circular?Hough?transform?based?on?the?gradient?field?of?an?image.
%??NOTE:????Operates?on?grayscale?images?NOT?B/W?bitmaps.
%???????????NO?loops?in?the?implementation?of?Circular?Hough?transform
%???????????????which?means?faster?operation?but?at?the?same?time?larger
%???????????????memory?consumption.
%
%%%%%%%%?INPUT:?(img?radrange?grdthres?fltr4LM_R?multirad?fltr4accum)
%
%??img:?????????A?2-D?grayscale?image?(NO?B/W?bitmap)
%
%??radrange:????The?possible?minimum?and?maximum?radii?of?the?circles
%???????????????to?be?searched?in?the?format?of
%???????????????[minimum_radius??maximum_radius]??(unit:?pixels)
%???????????????**NOTE**:??A?smaller?range?saves?computational?time?and
%???????????????memory.
%
%??grdthres:????(Optional?default?is?10?must?be?non-negative)
%???????????????The?algorithm?is?based?on?the?gradient?field?of?the
%???????????????input?image.?A?thresholding?on?the?gradient?magnitude
%???????????????is?performed?before?the?voting?process?of?the?Circular
%???????????????Hough?transform?to?remove?the?‘uniform?intensity‘
%???????????????(sort-of)?image?background?from?the?voting?process.
%???????????????In?other?words?pixels?with?gradient?magnitudes?smaller
%???????????????than?‘grdthres‘?are?NOT?considered?in?the?computation.
%???????????????**NOTE**:??The?default?parameter?value?is?chosen?for
%???????????????images?with?a?maximum?intensity?close?to?255.?For?cases
%???????????????with?dramatically?different?maximum?intensities?e.g.
%???????????????10-bit?bitmaps?in?stead?of?the?assumed?8-bit?the?default
%???????????????value?can?NOT?be?used.?A?value?of?4%?to?10%?of?the?maximum
%???????????????intensity?may?work?for?general?cases.
%
%??fltr4LM_R:???(Optional?default?is?8?minimum?is?3)
%???????????????The?radius?of?the?filter?used?in?the?search?of?local
%???????????????maxima?in?the?accumulation?array.?To?detect?circles?whose
%???????????????shapes?are?less?perfect?the?radius?of?the?filter?needs
%???????????????to?be?set?larger.
%
%?multirad:?????(Optional?default?is?0.5)
%???????????????In?case?of?concentric?circles?multiple?radii?may?be
%???????????????detected?corresponding?to?a?single?center?position.?This
%???????????????argument?sets?the?tolerance?of?picking?up?the?likely
%???????????????radii?values.?It?ranges?from?0.1?to?1?where?0.1
%???????????????corresponds?to?the?largest?tolerance?meaning?more?radii
%???????????????values?will?be?detected?and?1?corresponds?to?the?smallest
%???????????????tolerance?in?which?case?only?the?“principal“?radius?will
%???????????????be?picked?up.
%
%??fltr4accum:??(Optional.?A?default?filter?will?be?used?if?not?given)
%?????????????
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件?????1855826??2011-12-22?15:06??12.tif
?????文件???????24934??2011-12-05?13:28??CircularHough_Grd.m
?????文件?????????748??2012-03-14?10:29??LEDdianzhenjiance.m
- 上一篇:matlab文件hough圓檢測(cè)
- 下一篇:matlab橢圓檢測(cè)
評(píng)論
共有 條評(píng)論