plotbox.m
来自「Advanced Human Mood detection technique 」· M 代码 · 共 33 行
M
33 行
function result=plotbox(Target,Template,M);
%
%By Alaa Eleyan May,2008
%*********************************************************
[r1,c1]=size(Target);
[r2,c2]=size(Template);
[r,c]=max(M);
[r3,c3]=max(max(M));
i=c(c3);
j=c3;
result=Target;
for x=i:i+r2-1
for y=j
result(x,y)=255;
end
end
for x=i:i+r2-1
for y=j+c2-1
result(x,y)=255;
end
end
for x=i
for y=j:j+c2-1
result(x,y)=255;
end
end
for x=i+r2-1
for y=j:j+c2-1
result(x,y)=255;
end
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?