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 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