writting an array as an image
- From: ganesh <gc1009@xxxxxxxxxxx>
- Date: Wed, 30 Nov 2005 00:58:48 -0500
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.
.
- Follow-Ups:
- Re: writting an array as an image
- From: Dav
- Re: writting an array as an image
- Prev by Date: Re: Simulink Help Needed
- Next by Date: Re: Simulink Help Needed
- Previous by thread: how to define a variable
- Next by thread: Re: writting an array as an image
- Index(es):
Relevant Pages
|