当前位置:网站首页>Matlab提取论文插图中原始数据—Fig2Data工具
Matlab提取论文插图中原始数据—Fig2Data工具
2022-07-24 01:01:00 【阿昆的科研日常】
前段时间,偶然在一个不错的期刊上发现了一篇与自己研究领域相同的论文。
由于自己的研究领域现在做的人还不多,相关的文章很少,所以如获至宝。
原本打算用他的实验结果搞个仿真、做个对照,但苦于没有原始数据,只有其论文中的数据图。
想了想,既然他是用原始数据画的图,那我完全可以用他的图倒推出其原始数据。
于是,我花了些时间,自己用Matlab写了个小工具—Fig2Data。
顾名思义,就是从图片中提取数据。
1.原理
已知数据图的图上坐标系坐标轴范围(xtmin, xtmax, ytmin, ytmax)及其所对应的像素坐标系坐标轴范围(xpmin, xpmax, ypmin, ypmax),那么,像素坐标系下数据点的坐标Pp(x, y)与待求图上坐标系下数据点的坐标Pt(x, y)之间的关系为:


Fig2Data的原理其实并不复杂,无非就是一个坐标转换。
这里就不再赘述。
2.使用方法
假如我们有这样一张数据图:

首先,定义图上坐标系坐标轴的范围(xtmin, xtmax, ytmin, ytmax):
CP = [1 10 0 150];运行Fig2Data工具:
Data = Fig2Data(CP,2);其中,‘2’表示待提取的对象数量为2,此处仅为演示。
然后,依此选择像素坐标系范围xpmin, xpmax, ypmin, ypmax,按任意键完成选择:

接着,用鼠标在第一条曲线上依次点击选点,按任意键完成选择:

第二条也是一样:

完成后,数据会保存在Data变量中,其每一个子单元为一个对象(在此例中为曲线)。
此外,还会生成一个txt文件:

其第2*(i-1)行与第2*i行表示第i条曲线的x和y,i=1, 2,...N,方便后续使用。
有兴趣的朋友可以试试。
以上。
获取方式:
边栏推荐
- Programmeur de cheval noir - test d'interface - test d'interface d'apprentissage de quatre jours - jour 4 - Postman lit des fichiers de données externes, lit des données de fichiers de données, IHRM P
- Xilinx FPGA one way clock input two PLLs
- NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library ‘*****‘
- 1000 okaleido tiger launched binance NFT, triggering a rush to buy
- 测试小码农也有大目标,最新BAT大厂面试题大总结(持续更新中...)
- SkyWalking分布式系统应用程序性能监控工具-上
- Database connection pool & dbutils
- Tutorial on principles and applications of database system (042) -- MySQL query (4): using wildcards to construct query conditions
- Sublime text 3 汉化+添加常用插件
- docker mysql
猜你喜欢

多源文件方式去访问全局变量的方式(extern用法)

docker redis

This is a big problem

黑馬程序員-接口測試-四天學習接口測試-第四天-Postman讀取外部數據文件,讀取數據文件數據,iHRM項目實戰,員工管理模塊,添加員工,批量運行測試用例,生成測試報告,

Hcia-01 initial understanding of the Internet

Xilinx FPGA one way clock input two PLLs

Static extension configuration

IDEA 热部署(热加载)

What impact does the European "gas shortage" have on China?

对皮尔逊相关系数进行假设检验
随机推荐
Socket basic knowledge and various usage scenarios
Understand the locks that can't
Hypothesis test of Pearson correlation coefficient
The postman test interface has 404 or 500 errors when the URL is configured correctly
Bert article translation
Starfish OS: create a new paradigm of the meta universe with reality as the link
Dataframe.groupby learning materials
VLAN division, automatic allocation of IP to all hosts through DHCP, and communication accessible throughout the network
爬虫请求库的使用2
Source code installation and use of APIs IX
出于数据安全考虑 荷兰教育部要求学校暂停使用Chrome浏览器
Is flush opening an account risky and safe?
Sword *offer -- reverse order of linked list
Tutorial on principles and applications of database system (043) -- MySQL query (V): Sorting Query Results
这是一道大水题
How to troubleshoot the problem that VPN server cannot forward
【複盤】關於我在錯誤的時間選錯了技術這件事
Create database table db.create in flask project_ all()
1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
Jianzhi offer 05 two stacks to realize the queue