## box counting to boundary

### Damodara (view profile)

on 10 Feb 2011
hi, i have a problem. i wanted to use box counting method to boundary. Boundary is done from bwboundaries function . how can i get or use box counting to boundary ..? plz help me in this regard

### Brett Shoelson (view profile)

on 10 Feb 2011

Damodara,
There are no MathWorks-supported functions (Toolbox or otherwise) that I'm aware of for box counting. There are, however, several on the MATLAB Central File Exchange (including one called "BoxCount") that might be useful to you.
Cheers,
Brett

Damodara

### Damodara (view profile)

on 11 Feb 2011
your right ..! i used boundary to image conversion after that i used your method ..! nice working ..! but you need more time to compute if you change the numblocks to 256 or more .

### Damodara (view profile)

on 16 Feb 2011

i saw the code that is Ib = zeros(size(grayImage)); BP = B{1}; L = sub2ind(size(Ib), BP(:,1), BP1(:,2)); grayImage= zeros(size(I)); Ib(L) = 1;
but this is for only one object ie B(1) if i have two or more objects boundary then how do i get all those boundaries in a single image...???

### CHE (view profile)

on 8 Mar 2011

can i used this method on video?because i want to create the boundingbox on the people that i want to track.can i?

Brett Shoelson

### Brett Shoelson (view profile)

on 8 Mar 2011
If you have the Image Processing Toolbox, CHE, function REGIONPROPS will allow you to calculate boundingboxes directly.
CHE

### CHE (view profile)

on 8 Mar 2011
the function really working on image but not on the video.should i must consider the frames of the video sir?
Brett Shoelson

### Brett Shoelson (view profile)

on 8 Mar 2011
This is really a different question, CHE, than the one asked by the OP--better posed on a distinct page. What tools are you using? The Video and Image Processing Blockset has a BoundingBox port on the Blob Analysis block. There's an in-product demo (VIPTRACKPEOPLE) that shows how to use Simulink to track people using bounding boxes. With MATLAB, you'd do that using REGIONPROPS. In both cases, you'd calculate bounding boxes frame-by-frame (though the approaches differ in each case).