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 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Akhilesh Singh
le 17 Mar 2014
Modifié(e) : Akhilesh Singh
le 17 Mar 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.
0 commentaires
Réponse acceptée
Walter Roberson
le 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.
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!