91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 2.88MB
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2023-09-20
  • 語言: Matlab
  • 標簽: 圖像處理??matlab??

資源簡介

MATLAB常用圖像處理算法演示程序,包含各種常用的圖像處理算法

資源截圖

代碼片段和文件信息

function?rc_new?=?bound2eight(rc)
%BOUND2EIGHT?將4連接邊界轉換為8連接邊界。
%???RC_NEW?=?BOUND2EIGHT(RC)?將4連接邊界轉換為8連接邊界。
%???RC?is?a?P-by-2矩陣?其每行包含圖像邊界像素的行列坐標。RC必須是一個閉合邊界;
%???換句話說,RC的最后一行一定與最后一行相等。?BOUND2EIGHT?刪除了對于4連接邊界
%???必要但對于8連接邊界不必要的邊界像素。?RC_NEW是一個Q-by-2矩陣其中Q<=P.?

%???Copyright?2002-2004?R.?C.?Gonzalez?R.?E.?Woods?&?S.?L.?Eddins
%???Digital?Image?Processing?Using?MATLAB?Prentice-Hall?2004
%???$Revision:?1.6?$??$Date:?2003/11/21?14:19:38?$

if?~isempty(rc)?&?~isequal(rc(1?:)?rc(end?:))????%如果邊界不連續
???error(‘Expected?input?boundary?to?be?closed.‘);??%報錯
end

if?size(rc?1)?<=?3?%如果邊界點小于等于3
???%?退化情況.
???rc_new?=?rc;?%結果即為RC
???return;
end

%?刪除最后一行,因為閉合邊界最后一行與第一行相等
rc_new?=?rc(1:end?-?1?:);

%?刪除四個相連的直角turn中間的像素。?我們可以在矢量fashion中這樣做,但是
%?不能一次全實現。與函數bwmorph函數中‘thin’算法的方式相似,我們將首先
%?刪掉行列坐標均為偶數的四個相連直角反轉中間的像素;然后時行坐標為偶數
%?列坐標為奇數的;再然后是行坐標是奇數列坐標偶數的;最后是行列坐標均為奇
%?數的
remove_locations?=?compute_remove_locations(rc_new);????%得到remove的區域
field1?=?remove_locations?&?(rem(rc_new(:?1)?2)?==?0)?&?...%采用求余數函數得到行列坐標均為偶數的區域
?????????(rem(rc_new(:?2)?2)?==?0);
rc_new(field1?:)?=?[];?%刪除此區域

remove_locations?=?compute_remove_locations(rc_new);????
field2?=?remove_locations?&?(rem(rc_new(:?1)?2)?==?0)?&?...%采用求余數函數得到行坐標為偶數,列坐標為奇數的區域
?????????(rem(rc_new(:?2)?2)?==?1);
rc_new(field2?:)?=?[];?%刪除此區域

remove_locations?=?compute_remove_locations(rc_new);
field3?=?remove_locations?&?(rem(rc_new(:?1)?2)?==?1)?&?...%采用求余數函數得到行坐標為奇數,列坐標為偶數的區域
?????????(rem(rc_new(:?2)?2)?==?0);?%刪除此區域
rc_new(field3?:)?=?[];?%刪除此區域

remove_locations?=?compute_remove_locations(rc_new);
field4?=?remove_locations?&?(rem(rc_new(:?1)?2)?==?1)?&?...%采用求余數函數得到行列坐標均為奇數的區域
?????????(rem(rc_new(:?2)?2)?==?1);
rc_new(field4?:)?=?[];?%刪除此區域

%?Make?the?output?boundary?closed?again.
rc_new?=?[rc_new;?rc_new(1?:)];

%-------------------------------------------------------------------%
function?remove?=?compute_remove_locations(rc)

%?循環差分.
d?=?[rc(2:end?:);?rc(1?:)]?-?rc;?

%?d的每行與其循環情況下的下一行做點積。
d1?=?[d(2:end?:);?d(1?:)];????%得到d的移1位循環向量
dotprod?=?sum(d?.*?d1?2);??%點積后每行元素進行相加

%?東西南北邊界點的位置跟隨一個直角變換
remove?=?~all(d?2)?&?(dotprod?==?0);

%但是我們真的想要刪除turn的中間點像素?
remove?=?[remove(end?:);?remove(1:end?-?1?:)];

if?~any(remove)?%如果不存在需要刪除的點
???done?=?1;????%結束
else????%否則
???idx?=?find(remove);??%刪除此點
???rc(idx(1)?:)?=?[];
end

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2013-06-02?22:41??數字圖像處理MATLAB編程學習及演示軟件\
?????目錄???????????0??2013-06-02?22:41??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing\
?????目錄???????????0??2013-06-02?22:41??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\
?????目錄???????????0??2013-06-02?22:41??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\
?????文件????????2906??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\bound2eight.m
?????文件????????2601??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\bound2four.m
?????文件????????2039??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\bound2im.m
?????文件????????5480??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\boundaries.m
?????文件????????3085??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\bsubsamp.m
?????文件???????49515??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\classic.jpg
?????文件??????302632??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\code.asv
?????文件????????5450??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\code.fig
?????文件??????295296??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\code.m
?????文件????????2353??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\colorgrad.m
?????文件????????2428??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\colorseg.m
?????文件?????????935??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_medical.asv
?????文件?????????935??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_medical.m
?????文件?????????792??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_medical2.asv
?????文件?????????688??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_medical2.m
?????文件????????2186??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_medical3.m
?????文件?????????860??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_remote.asv
?????文件?????????889??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\color_remote.m
?????文件????????1405??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\connectpoly.m
?????文件????????6622??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\diameter.m
?????文件????????1214??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_gaijinsobel.m
?????文件?????????466??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_gauss.asv
?????文件?????????520??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_gauss.m
?????文件????????2291??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_kirsch.asv
?????文件????????2291??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_kirsch.m
?????文件?????????792??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_prewitt.m
?????文件?????????297??2013-01-21?14:59??數字圖像處理MATLAB編程學習及演示軟件\ImageProcessing-new\ImageProcessing\edge_roberts.asv
............此處省略199個文件信息

評論

共有 條評論