Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: extracting data from a scanned graph
Date: Sun, 25 Oct 2009 20:14:01 +0000 (UTC)
Organization: Loughborough University
Lines: 6
Message-ID: <hc2bi9$mht$1@fred.mathworks.com>
References: <hbuolc$27f$1@fred.mathworks.com> <hbv869$65m$1@fred.mathworks.com> <hc0vrh$ghv$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1256501641 23101 172.30.248.37 (25 Oct 2009 20:14:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 25 Oct 2009 20:14:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1338633
Xref: news.mathworks.com comp.soft-sys.matlab:579916


"Omid" <omid_dr@yahoo.com> wrote in message <hc0vrh$ghv$1@fred.mathworks.com>...
> I don't know anything about the image processing you meant and I think it isn't worth it for me to work on that, but the second approach seems applicable however it's a bit time consuming to get all the points coordinates using ginput to reproduce the figure. I wish there was a more straight way!

by reading in your image, you will get a matrix of numbers (the actual numbers will depend on the type of your image). For example a black and white image would give a matrix with 1s and 0s. From this you could plot the black pixels in a figure and then fit a spline to the data. 

edge detection could also work (type 'help edge' in the command window). If you could supply an example image it would be easier to give suitable example lines of code back to you.