Graph Digitizer Tool

The Graph Digitizer Tool is a MATLAB script that enables users to extract data points from graphs in images. The graphical interface allows
30 Downloads
Aktualisiert 3. Jun 2024

Lizenz anzeigen

The Graph Digitizer Tool is a MATLAB script that enables users to extract data points from graphs in images. The graphical interface allows users to load an image, select the desired region, and digitize the graph with ease. The tool employs a digitization algorithm that traces the graph from the initial point, selecting the nearest point to the previously digitized one. It also provides options to adjust the marker size, threshold factor, and moving average window size to optimize the digitization process and ensure accurate results.
Key features:
- Load images in various formats (JPEG, PNG, BMP)
- Export digitized data to Excel or text files
- View digitized data in a tabular format
Usage:
1. Click the "LOAD IMAGE" button to load an image containing the graph you want to digitize.
2. If needed, adjust the marker size using the "Marker Size" slider to control the size of the selection marker. Set the threshold factor using the "Threshold Factor" slider to determine the brightness threshold for the points considered part of the graph. Specify the moving average window size using the "Windows Size" slider to control the smoothing of the digitized graph.
3. If required, enter the pixel dimensions for the x and y axes in the "X-axis Pixel Dimension" and "Y-axis Pixel Dimension" text fields to set the scale of the graph. To set the origin coordinates, you can manually enter the values in the "X0 px" and "Y0 px" text fields. Alternatively, you can use the toggle buttons "X0 px" and "Y0 px" to enable origin selection mode. After enabling the mode, click on a point on the loaded image to set it as the origin coordinates. The selected point's coordinates will be automatically filled in the respective text fields.
4. Use the marker to select the region of interest on the graph by clicking and holding the left mouse button while dragging the mouse over the desired area.
5. Click the "DIGITIZE" button to start the digitization process. The algorithm will trace the graph from the initial point within the selected region, selecting the nearest point to the previously digitized one based on the brightness threshold set by the "Threshold Factor" slider.
- The digitized graph will be smoothed using a moving average filter, with the window size determined by the "Windows Size" slider. This helps to reduce noise and create a smoother representation of the graph.
- If the "Detrend" checkbox is selected, the linear trend will be removed from the digitized graph.
6. Manage the digitized graphs:
- Click the "ADD" button to add the current graph to the list of digitized graphs.
- Click the "REPLACE" button to replace the selected graph with the current one.
- Click the "DELETE" button to remove the selected graph from the list.
7. Export the digitized data:
- Click the "SAVE EXCEL" button to export the digitized data to an Excel file.
- Click the "SAVE TXT" button to export the digitized data to a text file.
The exported Excel or text files will have a table format where each digitized graph is represented in two columns. The first column contains the x-coordinates, and the second column contains the corresponding y-coordinates of the digitized points. If multiple graphs are digitized, they will be arranged side by side in the table, with each graph having its own pair of columns for x and y coordinates.
- Click the "VIEW DATA" button to view the digitized data in a tabular format in a new window.

Zitieren als

Andrey Shapkin (2024). Graph Digitizer Tool (https://www.mathworks.com/matlabcentral/fileexchange/167311-graph-digitizer-tool), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2023b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0