Skip to Main Content Skip to Search
Login
File Exchange
MATLAB Newsgroup
Link Exchange
  Blogs  
 Contest 
MathWorks.com

Thread Subject: getting the data points from an image

Subject: getting the data points from an image

From: yael frankel

Date: 10 Dec, 2007 22:15:54

Message: 1 of 4

I have a set of data points (x and y vectors) which I plot
and then save as in image (jpg format). After processing
the image I get the coordinates of two pixels. I want to
find the data points (the x and y values) that represent
those "interesting" pixels so that I can analyze the data
used for the original plot.
Does any one have any suggestions?

Thanks
Yael

Subject: getting the data points from an image

From: ImageAnalyst

Date: 11 Dec, 2007 02:50:17

Message: 2 of 4

On Dec 10, 5:15 pm, "yael frankel" <y...@nospam.com> wrote:
> I have a set of data points (x and y vectors) which I plot
> and then save as in image (jpg format). After processing
> the image I get the coordinates of two pixels. I want to
> find the data points (the x and y values) that represent
> those "interesting" pixels so that I can analyze the data
> used for the original plot.
> Does any one have any suggestions?
>
> Thanks
> Yael

===================================
I totally don't understand. First you say that you "get the
coordinates of the two pixels." OK, to me that means that you have
now found the x and y values of the two pixels - that's pretty much
the definition of coordinates isn't it? OK, so now you have an (x1,
y1) pair and a (x2, y2) pair. Then you say "I want to find the data
points (the x and y values) that represent those "interesting"
pixels..." Huh? What do you mean find the x and y values? You said
in the first sentence that you had found them already!
Regards,
ImageAnalyst

Subject: getting the data points from an image

From: Yumnam Kirani Singh

Date: 11 Dec, 2007 05:11:46

Message: 3 of 4

It is very simple. Suppose your image data is stored in a variable Im. You know the co-ordinates, x and y then you can the value of the image as
>>Im(x,y)

Subject: getting the data points from an image

From: Daphne

Date: 11 Dec, 2007 09:39:26

Message: 4 of 4


A clarification.
What we have is: vectors of (x,y) locations - our data.
We can plot the data points and get a line.
What we need is: a matrix say 1000x1000 of 0,1, where line
= 1, background = 0.

We were thinking of going into a jpg and then back, but
found it difficult to relate the pixels to the original
axes values.

Is there a way to directly convert a plotted line to a
matrix?

Thanks
Daphne & Yael



"yael frankel" <y..@nospam.com> wrote in message
<fjkdqq$l7h$1@fred.mathworks.com>...
> I have a set of data points (x and y vectors) which I
plot
> and then save as in image (jpg format). After processing
> the image I get the coordinates of two pixels. I want to
> find the data points (the x and y values) that represent
> those "interesting" pixels so that I can analyze the
data
> used for the original plot.
> Does any one have any suggestions?
>
> Thanks
> Yael
>

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
plot Daphne 11 Dec, 2007 04:40:07
pixel Daphne 11 Dec, 2007 04:40:07
image Daphne 11 Dec, 2007 04:40:07
rssFeed for this Thread

envelope graphic E-mail this page to a colleague

Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.
Related Topics