I have applied my image on a SURF plot. I want to see the pixel information for my image using IMPIXELINFO. I use the following commands in MATLAB to achieve this:
[r1, t1] = meshgrid(0:0.2:1.0,0:15:360); s[a b] = pol2cart(t1*pi/180,r1); S = surf(a,b,ones(size(a))) Pic= imread('cameraman.tif'); % read the image
set(S,'FaceColor','Texturemap','CData',Pic); % set properties to handle S.
view(2); %view the image for 2-d
impixelinfo % display pixel information
I receive the following error: ERROR: ??? Error using ==> impixelinfo The figure must contain at least one image.
How do I obtain the pixel values for my image?
Best Answer