matlab像提取方法.docVIP

  • 9
  • 0
  • 约8.11万字
  • 约 21页
  • 2016-12-03 发布于河南
  • 举报
matlab像提取方法

matlab像素提取方法 im = imread(***.jpg); [imcroped rect] = imcrop(im); %拖动鼠标选取你要处理的范围,双击完成 %范围图像存放在imcroped中,坐标存放在rect中 imtmp = improcess(imcroped); % 你的处理 %把处理后效果的覆盖原图 im(rect(2):rect(2)+rect(4),rect(1):rect(1)+rect(3)) = imtmp; [x,y]=ginput(2);鼠标点击那两个交点,然后[x,y] [x,y] = ginput; disp({横坐标是:,num2str(x),纵坐标是:,num2str(y)}); 用ginput函数获得鼠标点击后的坐标 ginput Graphical input from mouse or cursor Descriptionginput enables you to select points from the figure using the mouse for cursor positioning. The figure must have focus before ginput receives input. [x,y] = ginput(n) enables you to select

文档评论(0)

1亿VIP精品文档

相关文档