資源簡介
本資源為基于MATLAB設計的數字圖像處理軟件源碼,有自己設計的GUI、移植于MATLAB官網的標簽頁設計方法,實現基礎的數字圖像處理任務,包含各種圖像加噪、去噪、空間變換、邊緣檢測、尺度變換、圖像增強、圖像分析的功能,可以用來作為數字圖像處理入門學習的例子,其中使用到的算法也可以自行移植到自己的項目中,方便使用。
運行程序前,先運行simpletab.m程序,否則程序中的標簽頁無法使用。

代碼片段和文件信息
function?y?=?isbw(x)
%ISBW?Return?true?for?binary?image.
%???FLAG?=?ISBW(A)?returns?1?if?A?is?a?binary?image?and?0
%???otherwise.
%
%???ISBW?uses?these?criteria?to?decide?if?A?is?a?binary?image:
%
%???-?if?A?is?of?class?double?all?values?must?be?either?0?or?1
%?????and?the?number?of?dimensions?of?A?must?be?2.
%
%???-?If?A?is?of?class?uint8?its?logical?flag?must?be?on?and
%?????the?number?of?dimensions?of?A?must?be?2.
%
%???Note?that?a?four-dimensional?array?that?contains?multiple
%???binary?images?returns?0?not?1.
%
%???Class?Support
%???-------------
%???A?can?be?of?class?uint8?or?double.
%
%???See?also?ISIND?ISGRAY?ISRGB.
%???Clay?M.?Thompson?2-25-93
%???Copyright?1993-1998?The?MathWorks?Inc.??All?Rights?Reserved.
%???$Revision:?5.8?$??$Date:?1997/11/24?15:35:45?$
y?=?ndims(x)==2;
if?isa(x?‘double‘)?&?y
???if?islogical(x)
??????%?At?first?just?test?a?small?chunk?to?get?a?possible?quick?negative??
??????[mn]?=?size(x);
??????chunk?=?x(1:min(m10)1:min(n10));?????????
??????y?=?~any(chunk(:)~=0?&?chunk(:)~=1);
??????%?If?the?chunk?is?a?binary?image?test?the?whole?image
??????if?y
?????????y?=?~any(x(:)~=0?&?x(:)~=1);
??????end
???else
??????y?=?0;
???end
elseif?isa(x?‘uint8‘)?&?y
???y?=?islogical(x);
end
y?=?logical(double(y));
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-08-18?12:49??GUI\
?????文件??????801816??2017-08-11?02:33??GUI\grayPic.jpg
?????文件????????1318??2017-06-22?20:54??GUI\isbw.m
?????文件??????115745??2017-08-18?12:47??GUI\Main_Interface.fig
?????文件???????39209??2017-08-18?12:46??GUI\Main_Interface.m
?????文件?????????766??2017-06-30?01:33??GUI\otsu.m
?????文件????????3322??2017-06-22?22:10??GUI\SimpleTab.zip
評論
共有 條評論