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 次查看(过去 30 天)
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.

采纳的回答

Walter Roberson
Walter Roberson 2014-3-17
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Geometric Transformation and Image Registration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by