How to extract data from existing JPEG/TiFF graph?

2 replies · 3K views · last reply
kelvin490
Gold Member
Messages
227
Reaction score
3
Is there any method to extract data from a graph in JPEG/TIFF format, using simple software such as MATLAB? I have a graph as shown below:

Scatter-style plot of black square markers with y-axis from 0 to 50 and x-axis from 0.00 to 0.04; the points rise in stepwise segments from near 0 to about 50, then jump near x = 0.04.


I only have this picture but no raw data and I want to plot the black curve in this graph. How to get approximate numerical data of the x and y axis? Thank you.
 
Attachments
  • Scatter plot of black square markers forming a stepped curve rising from near 0 to about 49 as x runs from 0 to 0.04, with a steep final rise near x = 0.04 and a flat line along y = 0 below it.
    Untitled.jpg
    17.6 KB · Views: 751
You can use getframe()

Code:
plot(1:10);
structFrame = getframe(); % Get structure
rgbImage = structFrame.cdata;
figure;
imshow(rgbImage);