How can I get pixels info like the function "impixel", but for multiple pixel?
2 ビュー (過去 30 日間)
古いコメントを表示
I want to get a plot of RGB info as a function of location (x,y), by drawing a line. (In impixel I need to choose one pixel, but I want a line of pixel)
Thank you.
0 件のコメント
回答 (1 件)
Iain
2013 年 6 月 3 日
plot(squeeze(image(:,column,1)),'r')
hold on
plot(squeeze(image(:,column,2)),'g')
plot(squeeze(image(:,column,3)),'b')
xlabel 'Column nmumber'
figure
plot(squeeze(image(row,:,1)),'r')
hold on
plot(squeeze(image(row,:,2)),'g')
plot(squeeze(image(row,:,,3)),'b')
xlabel 'Row nmumber'
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!