필터 지우기
필터 지우기

Matrix Size of my images

조회 수: 3 (최근 30일)
Esther
Esther 2012년 9월 12일
Hi. how do i check the matrix size of my image?

답변 (2개)

Image Analyst
Image Analyst 2012년 9월 12일
[rows columns numberOfColorChannels] = size(yourImageArray); % Best way
For images, make sure you use the third output argument. Otherwise if it's a color image and you do
[rows columns] = size(yourImageArray); % unsafe way to do it.
then your columns will actually be columns multiplied by the number of color channels (3) in your image.
  댓글 수: 1
Jan
Jan 2012년 9월 12일
@Esther: It is not surprising that the command size determines the size of arrays. I recommend to read the "Getting Started" chapters of the documentation to learn at first the basics and at second how to find related information in the docs.

댓글을 달려면 로그인하십시오.


ajith
ajith 2012년 9월 12일
편집: ajith 2012년 9월 12일
first store your array in a particular name for ex A= 1 2 3 4 5 6 7 8 9
then [m,n] = size(A)
shown the size of your array

카테고리

Help CenterFile Exchange에서 Eye Tracking에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by