the below code changes rgb image to grey ,can the same partision done without changing the image to grey??
조회 수: 2 (최근 30일)
이전 댓글 표시
dataTop = rgb2gray(data(1:240, :,:));
dataMiddle = rgb2gray(data(241:480, :, :));
dataBottom = rgb2gray(data(481:end, :, :));
댓글 수: 0
채택된 답변
Image Analyst
2013년 4월 4일
편집: Image Analyst
2013년 4월 4일
I'm not sure of the question. You cannot do the same thing by doing something different, obviously. So you can't change the image to gray without changing the image to gray. If you don't want to call rgb2gray(), then don't.
댓글 수: 9
Image Analyst
2013년 4월 5일
See my color detection demo where I find red: http://www.mathworks.com/matlabcentral/fileexchange/31118-color-segmentation-by-delta-e-color-difference
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!