What is diagonal length of an Image and How can I calculate diagonal length of an image?

5 次查看(过去 30 天)
I want to calculate diagonal length of an Image....

回答(1 个)

Star Strider
Star Strider 2016-5-15
Im = imread('Polar_Bear_With_MATLAB_Hat.png')
ImSz = size(Img); % Get Dimensions
DiagLen = hypot(ImSz(1), ImSz(2)) % Invoke Euclid To Get The Diagonal Length
  3 个评论
Star Strider
Star Strider 2016-5-15
Square or rectangular only, but any size that can fit in your computer. Other shapes require the typical specific geometric metrics for them, but they are all still likely to be squares or rectangles originally, simply because that is how the majority of imaging devices format them.

请先登录,再进行评论。

类别

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