| 2 | 1/1 | 返回列表 |
| 查看: 215 | 回復(fù): 1 | |||
master200910銅蟲(chóng) (初入文壇)
|
[求助]
哪位高人有SUSAN 角點(diǎn)檢測(cè)代碼?急用,先謝謝啦!
|
![]() |

木蟲(chóng) (著名寫(xiě)手)
|
function [cout,marked_img]=susan(varargin) % Syntax : % [cout,marked_img]=susan(I, TR, KR, NR, OP) % Input : % I - 輸入的圖像. % TR : 亮度閾值 (默認(rèn)值為 = 20). % KR : 核值相似區(qū)的半徑 (不包括核心) (默認(rèn)值= 3) % NR : 邊緣矩陣會(huì)在整數(shù)范圍內(nèi)正;(默認(rèn)值為零即沒(méi)有正常化) % OP : 如果從核值相似區(qū)真正刪除的像素不是與核直接相鄰的(默認(rèn)值為0即為錯(cuò)誤的). % Output : % cout - a position pair list of detected corners in the input image. % marked_image - image with detected corner marked. % % Examples % ------- % I = imread('alumgrns.tif'); % cout = susan(I,[],[],[],[]); % % [cout, marked_image] = susan; % % cout = susan([],[],[]); [I,TR,KR,NR,OP] = parse_inputs(varargin{:}); if size(I,3)==3 I=rgb2gray(I); % 將RGB圖像轉(zhuǎn)換成灰度圖像. end tic [EDG]=edgemap(I,TR,KR,NR,OP); time_for_detecting_edge=toc tic [ANG] = edgedir(EDG, KR, OP); time_for_detecting_corner=toc img=EDG; for i=1:size(cout,1) img=mark(img,cout(i,1),cout(i,2),5); end marked_img=img; figure(2) imshow(marked_img); title('Detected corners') imwrite(marked_img,'corner.jpg'); function img1=mark(img,x,y,w) %[M,N,1]=size(img); [M,N]=size(img); img1=img; img1(max(1,x-floor(w/2)):min(M,x+floor(w/2)),max(1,y-floor(w/2)):min(N,y+floor(w/2)), =...(img1(max(1,x-floor(w/2)):min(M,x+floor(w/2)),max(1,y-floor(w/2)):min(N,y+floor(w/2)), <1);img1(x-floor(w/2)+1:x+floor(w/2)-1,y-floor(w/2)+1:y+floor(w/2)-1, =...img(x-floor(w/2)+1:x+floor(w/2)-1,y- |
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 070305高分子化學(xué)與物理 304分求調(diào)劑 +5 | c297914 2026-03-28 | 5/250 |
|
|---|---|---|---|---|
|
[考研] 求調(diào)劑一志愿海大,0703化學(xué)學(xué)碩304分,有大創(chuàng)項(xiàng)目,四級(jí)已過(guò) +7 | 幸運(yùn)哩哩 2026-03-22 | 11/550 |
|
|
[考研] 085600,專(zhuān)業(yè)課化工原理,321分求調(diào)劑 +3 | 大饞小子 2026-03-28 | 3/150 |
|
|
[考研] 一志愿華北電力大學(xué)能動(dòng)專(zhuān)碩,293,求調(diào)劑 +3 | 15537177284 2026-03-23 | 5/250 |
|
|
[考研] 數(shù)一英一271專(zhuān)碩(085401)求調(diào)劑,可跨 +4 | 前行必有光 2026-03-28 | 5/250 |
|
|
[考研] 315分求調(diào)劑 +7 | 26考研上岸版26 2026-03-26 | 7/350 |
|
|
[考研] 一志愿北京化工大學(xué) 070300 學(xué)碩 336分 求調(diào)劑 +9 | vv迷 2026-03-22 | 9/450 |
|
|
[考研] 287求調(diào)劑 +10 | land xuxu 2026-03-26 | 10/500 |
|
|
[考研] 復(fù)試調(diào)劑,一志愿南農(nóng)083200食品科學(xué)與工程 +5 | XQTJZ 2026-03-26 | 5/250 |
|
|
[考研] 286求調(diào)劑 +4 | lim0922 2026-03-26 | 4/200 |
|
|
[考研] 一志愿上海交大生物與醫(yī)藥專(zhuān)碩324分,求調(diào)劑 +6 | jiajunX 2026-03-22 | 6/300 |
|
|
[考研] 07化學(xué)303求調(diào)劑 +5 | 睿08 2026-03-25 | 5/250 |
|
|
[考研] 334分 一志愿武理-080500 材料求調(diào)劑 +4 | 李李不服輸 2026-03-25 | 4/200 |
|
|
[考研] 302求調(diào)劑 +4 | 錦衣衛(wèi)藤椒 2026-03-25 | 4/200 |
|
|
[考研] 求調(diào)劑 +3 | 李李不服輸 2026-03-25 | 3/150 |
|
|
[考研] 282求調(diào)劑 +3 | wcq131415 2026-03-24 | 3/150 |
|
|
[考研] 求調(diào)劑 +6 | 研研,接電話(huà) 2026-03-24 | 7/350 |
|
|
[考研] 一志愿山東大學(xué)藥學(xué)學(xué)碩求調(diào)劑 +3 | 開(kāi)開(kāi)心心沒(méi)煩惱 2026-03-23 | 4/200 |
|
|
[考研] 284求調(diào)劑 +3 | yanzhixue111 2026-03-23 | 6/300 |
|
|
[考研] 275求調(diào)劑 +6 | shansx 2026-03-22 | 8/400 |
|