How to get the length of each square in an image with a lots of square
2 views (last 30 days)
Show older comments
I have an image with a lots of squares, these squares varies in length. some are so small that I need not to consider them while some are too big that i needn't consider them too. I don't know how to solve these problem. Please anyone help me out with a code (complete code) please because I am stuck here.
Thank you
Paul
0 Comments
Answers (1)
Image Analyst
on 13 May 2014
Threshold, label, call regionprops and ask for area. Take square root of area to get the width of the square. See tutorial for example: http://www.mathworks.com/matlabcentral/fileexchange/25157-image-segmentation-tutorial---blobsdemo--
9 Comments
Image Analyst
on 13 May 2014
See examples of rbbox in the attached examples. But to do it automatically for you would just take too much of my time. You can try to look up papers on it here: http://iris.usc.edu/Vision-Notes/bibliography/contents.html
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!