필터 지우기
필터 지우기

images splitting

조회 수: 1 (최근 30일)
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 4월 9일
can anyone explain me the output of the following code
i=imread('football.jpg');
v=i(:,:)
imshow(v)
I am getting three output images. What are they. Could you relate your answer with the thought that : stands for including all elements in rowwise or columnwise.
I would be grateful if you could mail me the exact answer in a simple way.
Regards,
Siva

채택된 답변

Image Analyst
Image Analyst 2012년 4월 9일
The colon basically means "all" so imageArray(:,:,2) means all rows and all columns of the 2nd color plane in the image.
You're getting three images because you did not specify the color plane so you're getting the columns and color planes all combined into one image that's 3 times as wide. If you'd done v=i(:,:,2) you'd get only one image, not three.
By the way, we don't usually email private answers to questions asked here in this public forum. We give the answers here so everyone can learn from them.
  댓글 수: 1
Sivakumaran Chandrasekaran
Sivakumaran Chandrasekaran 2012년 4월 9일
Hi Image Analyst,
Thanks for explaining the concept in a simple way.
These days i thought that third plane indicates 3rd Dimension. So, my thinking is wrong.
Regards,
Siva

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by