Info
This question is closed. Reopen it to edit or answer.
Using regionprops and boundingbox for matlab R2015
1 view (last 30 days)
Show older comments
I am trying to find length and width.is this ok?: I=Imread(filename) Info=imfinfo(filename) Thres=graythresh(I) I2=~(im2bw(I,thresh)) cmp=bwconncomp(I2) s=regionprops(cmp,'BoundingBox') x=s.BoundingBox(3) y=s.BoundingBox(4) res=info.ResolutionUnit resX=info.XResolutionUnit resY=info.YResolutionUnit
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!