필터 지우기
필터 지우기

array size notation

조회 수: 1 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 3월 24일
Hi,
I have a doubt in working with Images. An image is represented in MATLAB in the form of row multiplied with columns.
3D image has been represented as for e.g., 256 * 208 *2...
In the above example, 256 indicates rows. 208 indicates columns..
Could you tell me 2 indicates what factor exactly.
Could you explain the same concept for 4D images also.
Thanks & Regards,
Siva
9003241032

채택된 답변

Jan
Jan 2012년 3월 24일
The rows and columns are not multiplied. "256 * 208 * 2" means, that the array has the dimensions [256, 208, 2]. The trailing 2 could mean, that each pixel of a 2D plane has 2 color components, e.g. hue and saturation or red and blue. Or the first component can be the Z-value, while the second one is the grey level.
There is no standard definition for 4D images (as there is no for 3D images). It could be a movie, when the 4th component is the time and the first 3 components are RGB images.
Is it clearer now? The numbers are not factors, but the dimension of a kind of table.

추가 답변 (1개)

Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 3월 24일
Hi Jan, Thanks for your reply. consider the following. You are standing. a train is running on your background. Now i am capturing this situation.
Whether the obtained image is a 4D image.
Regards. Siva
  댓글 수: 2
Jan
Jan 2012년 3월 27일
I do not understand the statement. Is this a question? Do you want to know, if this situation can be represented as 4D array? If so, it depends on what you call "capturing". Taking a movie on tape means discrete 5D data usually: 2D matrix of [1x3] RGB value, one for each frame, plus sound. On the other hand these data are stored sequentially on the tape, so you actually have an 1D data stream...
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 3월 28일
capturing means, just a still image. not a video

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

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by