What does imsize = width * height means?

13 ビュー (過去 30 日間)
Belle Kua
Belle Kua 2017 年 2 月 27 日
回答済み: Walter Roberson 2017 年 2 月 27 日
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!

採用された回答

Walter Roberson
Walter Roberson 2017 年 2 月 27 日
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 件)

カテゴリ

Help Center および File ExchangeGeometric 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