Contour plot of images in Matlab
We can use
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.
a = imread('marbles.jpg'); % reading images b = rgb2gray(a); % converting image to gray c = imcontour(b); % finding out contours figure, imshow(b);