How i can plot gray-scale image values?
이전 댓글 표시
I want to 2-D plot the grayscale image values.The below code plot the 3-D values of a grayscale image.What i can use
instead of meshgrid function to plot 2-D values of a gray scale image.Please see the pictures for more details.
Ix = imread('C:\Users\Haseeb\Desktop\images\capture.jpg');
I= rgb2gray(Ix);
x = 1:size(I,1);
y = 1:size(I,2);
[X,Y] = meshgrid(x,y);
figure,plot3(X,Y,I)


채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Image Filtering에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

