資源簡介
實現圖像的打開與保存,直方圖的線性搬移,圖像裁剪,色域空間轉換,模糊,去噪,去運動模糊,色域提取,邊緣檢測,圖像縮放,磨皮,圖像拼接,替換背景等功能,仿照Photoshop模式實現
代碼片段和文件信息
function?[newx?newy?newvalue]?=?ada_nonmax_suppression(xp?yp?value?n)
%?Adaptive?non-maximun?suppression?
%?For?each?Harris?Corner?point?the?minimum?suppression?radius?is?the
%?minimum?distance?from?that?point?to?a?different?point?with?a?higher?
%?corner?strength.?
%?Input:
%?xpyp?-?coordinates?of?harris?corner?points
%?value?-?strength?of?suppression
%?n?-?number?of?interesting?points
%?Output:
%?newx?newy?-?new?x?and?y?coordinates?after?adaptive?non-maximun?suppression
%?value?-?strength?of?suppression?after?adaptive?non-maximun?suppression
%?ALLOCATE?MEMORY
%?newx?=?zeros(n1);
%?newy?=?zeros(n1);
%?newvalue?=?zeros(n1);
if(length(xp)?newx?=?xp;
newy?=?yp;
newvalue?=?value;
return;
end
radius?=?zeros(n1);
c?=?.9;
maxvalue?=?max(value)*c;
for?i=1:length(xp)
if(value(i)>maxvalue)
radius(i)?=?99999999;
continue;
else
dist?=?(xp-xp(i)).^2?+?(yp-yp(i)).^2;
dist((value*c)?radius(i)?=?sqrt(min(dist));
end
end
[~?index]?=?sort(radius‘descend‘);
index?=?index(1:n);
newx?=?xp(index);
newy?=?yp(index);
newvalue?=?value(index);
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????.CA....?????27963??2018-12-28?18:58??gui2.1\gui\gui\1.jpg
????.CA....??15861946??2018-12-21?20:11??gui2.1\gui\gui\1.tiff
????.CA....?????10405??2018-11-29?00:50??gui2.1\gui\gui\111.jpg
????.CA....???1587209??2018-11-30?15:10??gui2.1\gui\gui\13.png
????.CA....????671608??2018-11-30?14:05??gui2.1\gui\gui\15.png
????.CA....?????27963??2018-12-28?18:58??gui2.1\gui\gui\2.jpg
????.CA....?????29418??2018-11-28?01:08??gui2.1\gui\gui\24421.jpg
????.CA....?????19094??2018-12-25?14:08??gui2.1\gui\gui\3.jpg
????.CA....???1178464??2018-11-29?00:37??gui2.1\gui\gui\333.jpg
????.CA....????423626??2018-11-30?19:27??gui2.1\gui\gui\599249C27F3D9F29A5B7DC4316361FCA.png
????.CA....???5899203??2018-11-30?14:10??gui2.1\gui\gui\6.png
????.CA....???3245047??2018-11-30?14:06??gui2.1\gui\gui\8.png
????.CA....????242817??2018-11-30?19:48??gui2.1\gui\gui\9e243af33a87e9504e607cc812385343faf2b4c7.jpg
????.CA....??????1119??2018-12-21?23:15??gui2.1\gui\gui\ada_nonmax_suppression.m
????.CA....??????1715??2018-12-21?23:17??gui2.1\gui\gui\blend.m
????.CA....??????1358??2018-11-28?01:03??gui2.1\gui\gui\btfColorImage.m
????.CA....?????57299??2018-12-21?19:30??gui2.1\gui\gui\d.png
????.CA....???????965??2018-12-21?23:16??gui2.1\gui\gui\dist2.m
????.CA....????111033??2018-11-28?18:45??gui2.1\gui\gui\gakki?my?wife?(113).jpg
????.CA....????384347??2018-11-28?18:32??gui2.1\gui\gui\gakki?my?wife?(2).jpg
????.CA....?????44570??2018-12-21?23:20??gui2.1\gui\gui\gakki?my?wife?(59)?-?副本.jpg
????.CA....?????61254??2018-12-21?23:24??gui2.1\gui\gui\gakki?my?wife?(59).jpg
????.CA....?????41389??2018-11-27?22:44??gui2.1\gui\gui\gakki?my?wife.jpg
????.CA....???????851??2018-12-21?23:16??gui2.1\gui\gui\getFeatureDesc
????.CA....???????951??2018-12-21?23:16??gui2.1\gui\gui\getHomographyMatrix.m
????.CA....??????1230??2018-12-21?23:17??gui2.1\gui\gui\getNewSize.m
????.CA....?????21158??2018-12-22?13:31??gui2.1\gui\gui\gui\1.jpg
????.CA....??15861946??2018-12-21?20:11??gui2.1\gui\gui\gui\1.tiff
????.CA....?????10405??2018-11-29?00:50??gui2.1\gui\gui\gui\111.jpg
????.CA....???1587209??2018-11-30?15:10??gui2.1\gui\gui\gui\13.png
............此處省略50個文件信息
評論
共有 條評論