how to read the color image with combined the R,G,B component ?
조회 수: 1 (최근 30일)
이전 댓글 표시
i have a color image like baby.tif when i use a statement as below
imData=imread('baby.tif');
in imData array R,G,B component store separate
like
imData(:,:,1)% red
:
:
imData(:,:,2) %green
:
:
:
:
imData(:,:,3) % blue
:
:
like this but i need all component combined for single pixel example for first pixel i have value for r,g,b (13,16,17) then second and so on if my image size 60*60 then to represent the color value in 60*180 size in array
댓글 수: 3
Image Analyst
2013년 4월 20일
Well . . . . don't do that! You already had the color values in the original format image files.
채택된 답변
Walter Roberson
2013년 4월 20일
reshape( permute(imData, [1 3 2]), size(imData,1), size(imData,2) * size(imData,3) )
댓글 수: 2
Image Analyst
2013년 4월 21일
Actually you've only accepted one other of his answers that he spent time giving you. If what you say is true, then you should go back and accept his other answers also.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!