how to plot image signal ?
6 ビュー (過去 30 日間)
古いコメントを表示
The code below was given
RGB = imread('flowers.jpg');
RGB1 = imadd(RGB,50);
RGB2 = imsubtract(RGB,100);
RGB3 = imadd(RGB,150);
and all I needed was to create four subplots,and plot variables RGB, RGB1, RGB2, and RGB3 which I did below,
but it didn't work.
subplot(2,2,1);plot(RGB);title('RGB')
subplot(2,2,2);plot(RGB1);title('RGB1')
subplot(2,2,3);plot(RGB2);title('RGB2')
subplot(2,2,4);plot('RGB3');title('RGB3')
As I understood I need to plot three dimension image but I don't how.
Can anyone help me with this code?
0 件のコメント
回答 (1 件)
Brian Hart
2019 年 1 月 22 日
Hi Tim,
Try replacing "plot" with "imshow". Also need to remove the quotes from the second command in the last line...
subplot(2,2,1);plot(RGB);title('RGB')
subplot(2,2,2);imshow(RGB1);title('RGB1')
subplot(2,2,3);imshow(RGB2);title('RGB2')
subplot(2,2,4);imshow(RGB3);title('RGB3')
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!