What is diagonal length of an Image and How can I calculate diagonal length of an image?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to calculate diagonal length of an Image....
0 Kommentare
Antworten (1)
Star Strider
am 15 Mai 2016
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 Kommentare
Image Analyst
am 15 Mai 2016
Any size. The answer is in pixels, not real world units. For that, see my attached spatial calibration demo.
Star Strider
am 15 Mai 2016
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.
Siehe auch
Kategorien
Mehr zu Operating on Diagonal Matrices finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!