📄 syna11max.m
字号:
function A11 = synA11max(A10, A01, cmin)%-----------------------------------------------------------------------------%% For each point of colour 11 this function assigns the maximum value at the% neighbouring gridpoints of colours 10 and 01.%% 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%-----------------------------------------------------------------------------[n10, m10]=size(A10);[n01, m01]=size(A01);n11=n10;m11=m01;%[n11, m11]=size(A11);if m11 == m10 S=max(stripL(extR(A10, cmin)), A10);elseif m11 == m10-1 S=max(stripL(A10), stripR(A10));else disp([' size A10 = ' int2str(size(A10)) ' size A01 = ' int2str(size(A01))]); error(' synA11max - A10 and A01 do not match ');endif n11 == n01 T=max(A01, stripU(extD(A01, cmin))); elseif n11 == n01-1 T=max(stripD(A01), stripU(A01)); else disp([' size A10 = ' int2str(size(A10)) ' size A01 = ' int2str(size(A01))]); error(' synA11max - A10 and A01 do not match ');end %Note: all(size(S) == size(T)) & all(size(S) == [n11 m11]) always holds.A11=max(S, T);%-----------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -