MATLAB MATLAB - Calculate distance/perimeter of an object in 2D image

  • Thread starter Thread starter Ping Ong
  • Start date Start date
  • Tags Tags
    2d Image Matlab
AI Thread Summary
The discussion focuses on determining the size of a tree trunk from images using MATLAB. The user seeks to calculate the trunk's perimeter and is considering methods involving 3D calculations with a single camera or using front view images to derive trunk length. Key points include the necessity of having a known reference length to achieve accurate measurements, as without it, calculations would be unreliable. The user inquires about potential solutions if a reference object is included in the image. Suggestions for alternative software are also welcomed if MATLAB proves inadequate for the task.
Ping Ong
Messages
2
Reaction score
0
Hi, I want to find out how thick/big/fat is the object in the image.

For example, there is a tree in the image(photograph), I want to use MATLAB to calculate how big the tree trunk is.
Problem: Find out the perimeter of trunk as shown in the first picture (named "perimeter.PNG". attached here.

1) Can I use 3D calculation with front view and side view images only(Only use 1 camera)?
2) Or find out the length of trunk from front view ( second image, named "length.PNG") and combine with other algorithm?
3) If the methods I suggested above are not possible, any possible solutions?

p/s: will use matlab, if MATLAB can't do these,any suggestion on software?

Will very appreciate on your suggestions.
Thanks in advance!:smile:
 

Attachments

  • perimeter.PNG
    perimeter.PNG
    15 KB · Views: 698
  • length.PNG
    length.PNG
    2.3 KB · Views: 694
Physics news on Phys.org
Without some known reference length, I don't see how this can be done. You might as well ask MATLAB to guess your height and weight.
 
SteamKing said:
Without some known reference length, I don't see how this can be done. You might as well ask MATLAB to guess your height and weight.

How if height is given or another object in the image with known size?? Any solution? Thanks
 
Last edited:

Similar threads

Replies
4
Views
2K
Replies
3
Views
2K
Replies
1
Views
2K
Replies
5
Views
3K
Replies
3
Views
3K
Replies
2
Views
11K
Back
Top