📄 syna01max.m
字号:
function A01 = synA01max(A11, A00, cmin)%-----------------------------------------------------------------------------%% For each point of colour 01 this function assigns the maximum value at the% neighbouring gridpoints of colours 11 and 00.%% Design and implementation by:% Dr. Paul M. de Zeeuw <Paul.de.Zeeuw@cwi.nl> http://homepages.cwi.nl/~pauldz/% Last Revision: December 7, 2001.% Copyright 1998-2002 Stichting CWI, Amsterdam%-----------------------------------------------------------------------------[n00, m00]=size(A00);[n11, m11]=size(A11);%[n01, m01]=size(A01);n01=n00;m01=m11;if m01 == m00 S=max(stripL(extR(A00,cmin)), A00);elseif m01 == m00-1 S=max(stripL(A00), stripR(A00));else disp([' size A11 = ' int2str(size(A11)) ' size A00 = ' int2str(size(A00))]); error(' synA01max - A11 and A00 do not match ');endif n01 == n11 T=max(A11, stripD(extU(A11, cmin)));elseif n01 == n11+1 T=max(extD(A11, cmin), extU(A11, cmin));else disp([' size A11 = ' int2str(size(A11)) ' size A00 = ' int2str(size(A00))]); error(' synA01max - A11 and A00 do not match ');end%Note: all(size(S) == size(T)) & all(size(S) == [n01 m01]) always holds.A01=max(S, T);%-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -