how to put building box on a particular person
2 次查看(过去 30 天)
显示 更早的评论
I am trying to put a building box on a particular person using
%%Calculate Custom Pixel Value-Based Properties
s = regionprops(BW, G, {'Centroid','PixelValues','BoundingBox'});
s(k).StandardDeviation = std(double(s(k).PixelValues));%for getting its standard deviation
sStd = [s.StandardDeviation];
lowStd = find(sStd > 19.0 );
rectangle('Position', s(lowStd(k)).BoundingBox,'EdgeColor','y');%for building the box
But i am not getting the whole person in the box.
What to do to build box for whole person
3 个评论
Walter Roberson
2012-6-5
Post your sample images, and your code that creates the BW array.
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!