⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imrect.m

📁 用人工神经网络进行人脸识别
💻 M
字号:
function M = imrect(I,ltx,lty,rbx,rby)
% This function draws rectangles on a grayscale image I
% where ltx(i), lty(i): left top point(x,y) and
% rbx(i), rby(i): right bottom point(x,y)
% and returns M, the image matrix with rectangles drawn.

len = length(ltx);
for i=1:len
   for p=ltx(i):rbx(i)
      I(lty(i),p) = 0;
      I(rby(i),p) = 0;
   end
   for p=lty(i):rby(i)
      I(p,ltx(i)) = 0;
      I(p,rbx(i)) = 0;
   end
end
M = I;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -