필터 지우기
필터 지우기

I wonder how rgb data are inserted in matlab

조회 수: 2 (최근 30일)
Kwanghun Choi
Kwanghun Choi 2017년 10월 19일
댓글: Stephen23 2017년 10월 19일
Sometimes, I show like 256*256*3 unit8 image value. And someone say that last *3 is for color image(R,G,B). but when I seperate that date ( like (:,:,1),(:,:,2),(:,:,3)), I got gray image, not red, green, blue date. How matlab recognize RGB date?
+ Some coding for convert RGB to matlab color vector exist. What is matlab color vector?
  댓글 수: 1
Stephen23
Stephen23 2017년 10월 19일
" but when I seperate that date ( like (:,:,1),(:,:,2),(:,:,3)), I got gray image, not red, green, blue date."
And that is exactly as expected. A 2D array of values displays as gray.

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

채택된 답변

Image Analyst
Image Analyst 2017년 10월 19일
Of course. Any given color plane (channel) is just a 2-D array of numbers, just like a gray scale image. If you want, you can assign them a colormap to make them appear in the color channel that they are, but most people don't do that because (1) it makes them harder to see, and (2) it's simply not needed to carry out any further operations.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!