当前位置:网站首页>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,方便后续使用。
有兴趣的朋友可以试试。
以上。
获取方式:
边栏推荐
- Testers who have been employed for 3 months are facing employment confirmation. Leaders: 1 year of work experience is packaged into 5 years, and the probation period is eliminated
- Design details related to sap e-commerce cloud Spartacus UI store
- 深入理解协程
- [reply] about the fact that I chose the wrong technology at the wrong time
- Determination of host byte order
- [STM32] basic knowledge of serial communication
- 暑假第四周总结
- Off screen rendering & FBO
- Database connection pool & dbutils
- The postman test interface has 404 or 500 errors when the URL is configured correctly
猜你喜欢

Project scenario: NVIDIA SMI unable to datemine the device handle for GPU 0000:01:00.0: unknown error

Linx link, first level directory, redirection, CP and MV

Idea hot deployment (hot load)

Small farmers also have big goals in the test, and the latest big bat interview summary (constantly updating...)

Focus on microservices

Error running ‘XXX‘: Command line is too long. Shorten command line for AudioTest or also ...

LVS load balancing scheduling principle and configuration method

Off screen rendering & FBO

An article teaches you the basic use of kubernetes

SAP 电商云 Spartacus UI Store 相关的设计明细
随机推荐
Understand the locks that can't
落枕如何快速缓解
【Flyway 介绍】
Sparksql design and introduction, 220722,
Sword *offer -- reverse order of linked list
C language: student management system based on sequence table, super detailed, all with notes, if you don't understand it after reading, please slap me.
Group chat room based on UDP
Image processing: Generation 3 × Window of 3
Centernet target detection model and centerfusion fusion target detection model
[STM32] basic knowledge of serial communication
Summary of the fourth week of summer vacation
Case error of MySQL branch statement
What impact does the European "gas shortage" have on China?
EasyExcel导出案例(只有你想不到)
制作 .Img 镜像文件
Tutorial on principles and applications of database system (039) -- MySQL query (I): syntax analysis of select command
Concurrent programming 1-2
Notes: middle order traversal of binary trees (three solutions - recursion, iteration, Morris)
Pbootcms database conversion tutorial (SQLite to MySQL detailed tutorial)
Tutorial on the principle and application of database system (049) -- MySQL query (XI): sub query