What does imsize = width * height means?
14 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Belle Kua
am 27 Feb. 2017
Beantwortet: Walter Roberson
am 27 Feb. 2017
Does it mean the image size can be obtained by multiplying the height and width? Will it get a matrix and/or a 2D image?
Since the matlab line above this is [height,width,~] = size(im); And the ~ variable means the dimensions of an image. Correct me if I am wrong. Thanks!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 27 Feb. 2017
imsize = width * height would get you a scalar telling you how many elements there are in a 2D subset of the im array. It will not in itself generate a matrix -- just calculate the memory requirements for a matrix.
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!