摘要
在静电场描绘实验中,由于实验得到的电势点较多,对实验数据评价较为不便,为此,设计了利用OpenCV的函数获取图中所有电势点的坐标,经过计算即可得到各等势圆半径的测量值,再计算出相对偏差,既可以给出图形的整体评分.
The experiment of depicting electrostatic field produces a paper with lots of dots in it,which is inconvenient for teachers to evaluate the students' operation.A computer program was developed with OpenCV in this paper.The coordinates of all dots in the picture were got with OpenCV's functions.The radiuses of every equipotential circle could be computed.Using the measured value and the theoretical value of the radius of every equipotential circle,the relative errors were computed.Finally,the grade of the picture could be given.
引文
[1]邵静,吕长军,竺江峰.静电场描绘的一种改进方法[J].大学物理实验,2014,27(4):48-51.
[2]周勇,孟玉洁,姚关心,等.静电场描绘实验数据处理方法的分析与改进[J].物理通报,2018(6):59-62.
[3]OpenCV.AI Courses by OpenCV[EB/OL].https://opencv.org/.2019-03-10.
[4]张铮.数字图像处理与机器视觉---Visual C++与MATLAB实现[M].北京:人民邮电出版社,2010:287-288,338-340.
[5]OpenCV.Color Space Conversions[EB/OL].https://docs.opencv.org/4.0.0/d8/d01/group__imgproc__color__conversions.html#ga397ae87e1288a81d2363b61574eb8cab.2019-03-10.
[6]OpenCV.Feature Detection[EB/OL].https://docs.opencv.org/4.0.0/dd/d1a/group__imgproc__feature.html#ga04723e007ed888ddf11d9ba04e2232de.2019-03-10.
[7]OpenCV.Image Filtering[EB/OL].https://docs.opencv.org/4.0.0/d4/d86/group__imgproc__filter.html#ga67493776e3ad1a3df63883829375201f.2019-03-10.
[8]OpenCV.Structural Analysis and Shape Descriptors[EB/OL].https://docs.opencv.org/4.0.0/d3/dc0/group__imgproc__shape.html#gadf1ad6a0b82947fa1fe3c3d497f260e0.2019-03-10.
[9]赵黎,王丰.大学物理实验[M].北京:北京大学出版社,2018:81-87.
[10]刘雅彬,鲁晓东.MATLAB对静电场等势线的最小二乘描绘[J].大学物理实验,2013,26(2):82-84.