what is error in this program ?
조회 수: 1 (최근 30일)
이전 댓글 표시
%Split into RGB Channels
Red = image(:,:,1);
Green = image(:,:,2);
Blue = image(:,:,3);
%Get histValues for each channel
[yRed, x] = imhist(Red);
[yGreen, x] = imhist(Green);
[yBlue, x] = imhist(Blue);
%Plot them together in one plot
plot(x, yRed, 'Red', x, yGreen, 'Green', x, yBlue, 'Blue');
댓글 수: 0
답변 (1개)
Walter Roberson
2015년 9월 2일
편집: Walter Roberson
2015년 9월 2일
plot(x, yRed, 'r', x, yGreen, 'g', x, yBlue, 'b');
legend({'Red', 'Green', 'Blue'});
Also, it is firmly advised never to name a variable "image" as that interferes with using a fundamental MATLAB graphics routine.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!