matlab在图片上画框 之前写过一个MATLAB在图片上画框的代码, http://blog.csdn.net/carson2005/article/details/17262811 最近使用后发现效果不好,貌似有个bug,这里做更改, function [state result] = draw_rect(img, rectVec, showOrNot) %img: input color image %rectVec: input vector of rect draw on image.