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

  • Context: MATLAB 
  • Thread starter Thread starter Ping Ong
  • Start date Start date
  • Tags Tags
    2d Image Matlab
Click For Summary
SUMMARY

The discussion centers on using MATLAB to calculate the distance and perimeter of an object, specifically a tree trunk, in a 2D image. Users inquire about the feasibility of utilizing 3D calculations from front and side view images captured with a single camera. The conversation highlights the necessity of having a known reference length to achieve accurate measurements, as without it, MATLAB cannot provide reliable results. Suggestions for alternative software are also sought if MATLAB proves inadequate for the task.

PREREQUISITES
  • Understanding of MATLAB image processing functions
  • Familiarity with 2D and 3D geometry concepts
  • Knowledge of algorithms for object measurement
  • Experience with image calibration techniques
NEXT STEPS
  • Research MATLAB's Image Processing Toolbox for perimeter calculations
  • Explore 3D reconstruction techniques using multiple views
  • Learn about image calibration methods to establish reference lengths
  • Investigate alternative software like OpenCV for image analysis
USEFUL FOR

This discussion is beneficial for image processing engineers, MATLAB users, and anyone involved in computer vision or object measurement in images.

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: 715
  • length.PNG
    length.PNG
    2.3 KB · Views: 722
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 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
48K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 2 ·
Replies
2
Views
12K