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