フィルターのクリア

what is error in this program ?

1 回表示 (過去 30 日間)
venmal devi
venmal devi 2015 年 9 月 2 日
編集済み: Walter Roberson 2015 年 9 月 2 日
%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');

回答 (1 件)

Walter Roberson
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.

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by