how to put building box on a particular person

2 Ansichten (letzte 30 Tage)
swati
swati am 3 Jun. 2012
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 Kommentare
swati
swati am 5 Jun. 2012
then what should i do.give me some hint
Walter Roberson
Walter Roberson am 5 Jun. 2012
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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Read, Write, and Modify Image finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by