If I make equatorial triangle in AUTOCAD with such as 50 mm Dimension and save it .jpg image, then we use this image in MatLab it will show the same dimension in MatLab with same area or different. If different dimension than what we do?

1 view (last 30 days)
Plz. Answer my such dought which i have:-
1. i want the same area and i want to find the area of equatorial triangle in Matlab.
2. which code i use to find the area of equatorial triangle.

Accepted Answer

Walter Roberson
Walter Roberson on 17 Mar 2014
If all you give to MATLAB is the image as an image file, then all that you can be sure of getting is the area in square pixels. To do that, threshold the image and then use regionprops(ThresholdedImage, 'Area')
There is a possibility that the image file passed from AutoCad might have an EXIF or TIFF header that allows the "50mm" to be retrieved from the image file. But if not, then you would need to tell MATLAB the real-world dimensions in order to calculate real-world area.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!