Contour plot of images in Matlab
We can use
imcontour(<image>)
function to compute contour plot of the data in an intensity image. It sets up the axes for orientation and aspect ratio of the image.
Example
a = imread('marbles.jpg'); % reading images b = rgb2gray(a); % converting image to gray c = imcontour(b); % finding out contours figure, imshow(b);