close all;clc;clear all;resize_value = 0.3; % 0From to 1
% TraceImage = imresize(rgb2gray(imread('Trace6.jpg')),resize_value);
TraceImage = imresize(rgb2gray(imread('f1-38-6st.jpg')),resize_value);original = TraceImage;bw = im2bw(TraceImage,graythresh(TraceImage)); %
% 3D http://www.mathworks.com/matlabcentral/answers/91442-how-do-i-create-a-3-d-plot-of-the-pixel-intensity-of-an-image-in-matlab
I=TraceImage;[x,y]=size(I);X=1:x;Y=1:y;[xx,yy]=meshgrid(Y,X);i=im2double(I);figure;mesh(xx,yy,i);colorbarfigure;imshow(i)
MATLAB: I am using a colour image to create a 3-d plot of pixel intensity. I have to turn it gray for the project to work, but I would like to know how to make the 3-d plot of pixel intensity, on the original without changing its colour.
3-d plotpixel intensity
Best Answer