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 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Akhilesh Singh
am 17 Mär. 2014
Bearbeitet: Akhilesh Singh
am 17 Mär. 2014
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/158741/image.jpeg)
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 17 Mär. 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.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!