writting an array as an image



hi
i have a small problem. my code generates contour of a grayscale
image based on given threshold limit( between 0 to 255). the contour
is plotted using the command 'plot'.
the input for the command plot is the array which stores the info
about all data points on the contour.( for ex.
c1=contourc(image1,[250,250]) %% gets the matrix c1 which
stores the x and y
co-ordinates of all the
points in image1 which are
at grayscale 250.

plot(c1(1,2:500),c1(2,2:500),'-k'); %% plots the data
%% of the points btwn
%% 2:500

now the problem is when i get a plot using above command,it will be a
..fig file. how do we save the current file as .jpg or .bmp file at a
specified location? note that when i use
h=plot(c1(1,2:500),c1(2,2:500),'-k'); the result h,is a column
vector of handles. but i want a variable that could store the contour
plot as .jpg or .bmp or .fig file.
how do we save this file?
thanks..!
regards,
ganesh.
.



Relevant Pages

  • Re: Mapping spherical antenna patterns to 2D contour plots
    ... trying to take 3D spherical antenna ... everyday spherical transformation map to a x-y plot, ... Just what are you trying to represent in a contour map? ... horizontal plane and vertical plane and plot those as simple ...
    (comp.soft-sys.matlab)
  • Re: Moving the contour plot with the surfc plot function
    ... My name is Matthew Gibb, I am a fourth year physics undergraduate ... need to plot a surfc graph but with the contour graph on top of the ... the contour help file goes into further detail. ...
    (comp.soft-sys.matlab)
  • Re: 3d contour plot of irregularrly spaced data?
    ... I have temperature data from an AUV that I am ... A scatter plot of the data looks like this: ... Instead of this scatter plot, I would like to make a contour plot ...
    (comp.soft-sys.matlab)
  • label_contours.awk: obsolete syntax, both in the script and on the homepage
    ... I'm trying to create plots where contour labels are placed next to the ... I've noticed that the script generates a gnuplot plot script ... My self-compiled gnuplot 4.3 croaks on the original version. ...
    (comp.graphics.apps.gnuplot)
  • Re: Customized contour maps
    ... (making a patch overlay on top of regular contour plot). ... want on the plot, but the 'contourf' function won't care). ... inner and outer boundaries of the annulus is invisible. ...
    (comp.soft-sys.matlab)