gusucode.com > matlab程序语言实现的水准网平差程序,使用于测绘人员 > 一种基于极大值稳定区域的文本定位方法matlab源码程序/毕业设计/代码/draweveryone.m
function [mserboxes]=draweveryone(mserboxes,mserStats,grayImage) %逐个连通域画框 broder=[mserboxes.BoundingBox]; for i=1:numel(mserStats) if mserboxes(i).Count==1 leftx=broder((i-1)*4+1); lefty=broder((i-1)*4+2); width=broder((i-1)*4+3); height=broder((i-1)*4+4); figure imshow(grayImage) hold on; rectangle('Position',[leftx,lefty,width,height], 'EdgeColor','g'); hold off; end end end