gusucode.com > matlab程序语言实现的水准网平差程序,使用于测绘人员 > 一种基于极大值稳定区域的文本定位方法matlab源码程序/毕业设计/代码/change.m

    function [mserboxes]=change(mserStats,mserConComp)
    broder=[mserStats.BoundingBox];
    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);
        
        mserboxes(i).BoundingBox=[leftx,lefty,width,height];
        mserboxes(i).Count=1;
        mserboxes(i).idx=i;

    end

end