How to plot intensity like this?

 采纳的回答

KALYAN ACHARJYA
KALYAN ACHARJYA 2018-6-10
编辑:KALYAN ACHARJYA 2018-6-10

0 个投票

%Do the required operation (filtered as per your question) and plot (with " hold on" a statement) in the respective plot, your question having three plot in each graph.

I=imread('flower.jpg');
im_r=I(:,:,1);
im_g=I(:,:,2);
im_b=I(:,:,3);
subplot(311),plot(mean(im_r),'r','linewidth',2);
subplot(312),plot(mean(im_g),'g','linewidth',2);
subplot(313),plot(mean(im_b),'b','linewidth',2);

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Images 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by