Bounding box etc. Problem with this algorithm.

1 view (last 30 days)
Petra
Petra on 16 Apr 2013
help me, please. I have problem with this algorithm... please
Write an algorithm to estimate the size of the pores in the fabric painting (tkanina.jpg). Find out diameter and pore-size dispersion (object) for characteristics (area, perimeter, bounding box). In the original image versed the red outline of the object bounding box color is green color. The picture is to be done and calibration. Calibration: 1pixel is 10,309 micrometers.

Answers (2)

Image Analyst
Image Analyst on 16 Apr 2013
See my image segmentation tutorial, BlobsDemo: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 It could easily be adapted to use your image instead of the demo image. I think it gets all those measurements (area, etc.).

Petra
Petra on 17 Apr 2013
Thank you very much. I did it. But idon´t know, how i calibraliton image (1pixel=10,309 micrometers). And i don´t know, how i do mean and var from area, perimeter and boundingbox.
  1 Comment
Image Analyst
Image Analyst on 17 Apr 2013
Edited: Image Analyst on 17 Apr 2013
Get all the areas, like I do:
allAreas = [measurements.Area];
Then get the variance
varAreas = var(allAreas);
Same for perimeters, and bounding box side lengths. Multiply areas by 10,309^2 to get areas in micrometers and perimeters by 10,309 to get perimeters in micrometers.
By the way, your post is not an "Answer" to your question is it? Shouldn't it have been a comment to my answer?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!