MATLAB Answers

How to get the length of each square in an image with a lots of square

5 views (last 30 days)
Pman
Pman on 13 May 2014
Commented: Image Analyst on 23 Aug 2014
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

Answers (1)

Image Analyst
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

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!