Extract data from .PNG file
28 ビュー (過去 30 日間)
古いコメントを表示
Hi all,
I have an x,y,z plot saved as a .PNG file. I want to extract the data from the x, y and z axes. Preferably in matrix form. Any tips?
0 件のコメント
回答 (2 件)
Sebastian Castro
2015 年 8 月 17 日
I'd recommend using the Data Theif (yes, they misspelled it too) entry in the File Exchange. It lets you click on an image to calibrate its dimensions and extract X-Y data points.
... Now, I'm not sure if that works for 3-D since an image is 2-D, but that would be true of almost any image processing algorithm as well (unless you have multiple images or depth data).
Was that JPG image saved from MATLAB? If possible, it would make things a lot easier if whoever generated that figure saved it as a .fig file instead. Then, you could load it into MATLAB and get the exact point locations.
- Sebastian
3 件のコメント
Image Analyst
2020 年 4 月 7 日
According to the error message, it expects a .mat file, not a .fig file. Try saving your image array into a .mat file instead.
Walter Roberson
2020 年 4 月 27 日
.fig files are mat files, and it did in fact try to read it as a binary mat file.
The problem must be with the way the .fig was created.
Image Analyst
2015 年 8 月 17 日
Another option is http://www.mathworks.com/matlabcentral/fileexchange/36904-matlab-script-for-digitizing-a-published-graph. I haven't tried it so I can't help you with it.
3 件のコメント
george panayotov
2020 年 4 月 27 日
Yes, does not allow to export data. Don't waste time with it, just a click bait.
参考
カテゴリ
Help Center および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!