How can i find the total length of this rod please anyone help me ?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Shri.s
am 10 Mai 2023
Bearbeitet: Walter Roberson
am 10 Mai 2023
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379339/image.png)
please find the length of this rod from start point to end point please give me solution i am new user in matlab software.
3 Kommentare
Walter Roberson
am 10 Mai 2023
Bearbeitet: Walter Roberson
am 10 Mai 2023
Please examine this photograph of an Imperial I-class Star Destroyer and tell us, using information only from the image, how long the Star Destroyer is? How large was it in the first Star Wars film?
(credit: starwars.com )
Akzeptierte Antwort
Walter Roberson
am 10 Mai 2023
filename = 'https://www.mathworks.com/matlabcentral/answers/uploaded_files/1379339/image.png';
grey = rgb2gray(imread(filename));
BW = grey >= 250;
imshow(BW)
props = regionprops(BW, 'MajorAxisLength');
object_size = props.MajorAxisLength %in pixels
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Geometric Transformation and Image Registration 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!