How to extract data from existing JPEG/TiFF graph?

Click For Summary
SUMMARY

This discussion focuses on extracting data from graphs in JPEG/TIFF formats using MATLAB and DataThief. The user seeks a method to approximate numerical data from a graph image without access to the raw data. The suggested approach involves using MATLAB's getframe() function to capture the graph and display it using imshow(). DataThief is also recommended as a tool for this type of data extraction.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of image processing concepts
  • Knowledge of graph plotting techniques in MATLAB
  • Basic skills in using DataThief for data extraction
NEXT STEPS
  • Learn how to use MATLAB's getframe() function for capturing images
  • Explore MATLAB's imshow() function for displaying images
  • Research DataThief's capabilities for extracting data from images
  • Investigate alternative tools for graph data extraction, such as WebPlotDigitizer
USEFUL FOR

This discussion is beneficial for data analysts, researchers, and engineers who need to extract numerical data from graphical representations in JPEG or TIFF formats using MATLAB or other software tools.

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: 724
Physics news on Phys.org
I don't know how to do it simply in Matlab. For such tasks, I use DataThief.
 
  • Like
Likes   Reactions: kelvin490
You can use getframe()

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

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K