I have created contour plot and saved the contour matrix..But how can i get the same plot by using the contour matrix ? Does contour matrix shows the locations??

7 views (last 30 days)
a=imread('cameraman.tif');
[c,h]=contour(a,4);
now what c represents can I used for plotting contours without using contor function in matlab? Or In other word How can I store the contour boundary or locations , so I can used those data afterwards???????????????????/

Answers (2)

Chad Greene
Chad Greene on 22 May 2014
The C2xyz function does this simply.

Walter Roberson
Walter Roberson on 10 Feb 2013
Yes, if you read through http://www.mathworks.com/help/matlab/creating_plots/contour-plots.html#f10-2614 you will find a description of the structure of a contour matrix.
  3 Comments
Mona
Mona on 10 Feb 2013
[c,h]-imcontour('cameraman.tif'); Act I want to know how contour matrix (here :c) is used to represent the boundary of the object in the form of contour in the image?????

Sign in to comment.

Categories

Find more on Contour Plots in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!