How to extract data from existing JPEG/TiFF graph?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
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:

Untitled.jpg


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

  • Untitled.jpg
    Untitled.jpg
    17.6 KB · Views: 732
Physics news on Phys.org
You can use getframe()

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