Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab How to extract data from existing JPEG/TiFF graph?

  1. Oct 27, 2016 #1

    kelvin490

    User Avatar
    Gold Member

    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.
     

    Attached Files:

  2. jcsd
  3. Oct 27, 2016 #2

    DrClaude

    User Avatar

    Staff: Mentor

    I don't know how to do it simply in Matlab. For such tasks, I use DataThief.
     
  4. Oct 27, 2016 #3
    You can use getframe()

    Code (Text):
    plot(1:10);
    structFrame = getframe(); % Get structure
    rgbImage = structFrame.cdata;
    figure;
    imshow(rgbImage);
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted



Similar Discussions: How to extract data from existing JPEG/TiFF graph?
  1. Matlab data extracting (Replies: 6)

Loading...