How can i find the total length of this rod please anyone help me ?

조회 수: 3 (최근 30일)
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
Walter Roberson
Walter Roberson 2023년 5월 10일
편집: Walter Roberson 2023년 5월 10일
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 )

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2023년 5월 10일
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
object_size = 640.1314

추가 답변 (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