可持久化数据结构加扫描线

Traditional cameras and image sensors can only obtain two-dimensional images, lacking depth information, which imposes great limitations on the perception and understanding of real objects. In recent decades, with the continuous development of high-definition, high-speed image sensors and computing capabilities, three-dimensional surface imaging technology has achieved remarkable results in research, engineering, and business. In particular, the structured light three-dimensional surface imaging technology has been applied to various places.

传统的相机和图像传感器只能获取缺乏深度信息的二维图像,这对真实物体的感知和理解施加了很大的限制。 近几十年来,随着高清,高速图像传感器和计算功能的不断发展,三维表面成像技术在研究,工程和商业方面取得了显著成果。 特别地,结构化光三维表面成像技术已被应用于各个地方。

For every major visual effects movie, the principal actors’ bodies and heads are scanned before or during production using the types of scanners. The resulting 3D scans are used to build digital stunt doubles for actors, to aid in creating realistic aging transformations, or to provide a starting point for morphing into a computer-generated creature.

对于每部主要视觉效果电影,在制作之前或制作过程中,都使用扫描仪类型对主要演员的身体和头部进行扫描。 由此产生的3D扫描用于为演员建立数字特技双打,以帮助实现逼真的衰老转换,或提供变身为计算机生成生物的起点。

Projecting a narrow band of light across three dimensions in the shape of a surface produces a line of illumination that appears distorted from perspectives other than that of the projector and can be used for an exact geometric reconstruction of the surface shape.

在表面形状的三个维度上投射一条狭窄的光带会产生一条照明线,该照明线从投影机以外的其他角度看起来会变形,并且可以用于表面形状的精确几何重构。

A faster and more versatile method is the projection of patterns consisting of many stripes at once, or of arbitrary fringes.A sinusoidal fringe is generated by computer programming, and the sinusoidal fringe is projected to the object to be measured through a projection device. The camera is used to capture the degree of curvature of the fringe modulated by the object, the pattern appears geometrically distorted due to the surface shape of the object.

更快,更通用的方法是一次投影由多个条纹组成的图案或任意条纹。通过计算机编程生成正弦条纹,然后将正弦条纹通过投影设备投影到要测量的对象上。 相机用于捕获物体调制的条纹的曲率程度,图案由于物体的表面形状而出现几何失真。

This article mainly describes the principle and implementation of the three-dimensional surface imaging technology of light-composition, especially the phase measuring profilometry (PMP).

本文主要介绍了光组成三维表面成像技术的原理和实现,尤其是相位测量轮廓图(PMP)。

Compared with encoding structured light methods such as Binary code and Gray code, PMP does not require complex encoding, and the algorithm can calculate the height value according to the information of each pixel, so as to achieve full-scale high-precision measurement. In the phase method, the following steps are usually included :

与二进制码,格雷码等编码结构光方法相比,PMP不需要复杂的编码,该算法可以根据每个像素的信息计算出高度值,从而实现了全方位的高精度测量。 在阶段方法中,通常包括以下步骤:

  1. Project a structured texture image (usually a sinusoidal grating pattern) onto the surface of the object to be measured.将结构化的纹理图像(通常是正弦光栅图案)投影到要测量的对象的表面上。
  2. Record raster images phase-modulated by the height of the object.记录通过对象高度进行相位调制的光栅图像。
  3. Use grating analysis technology to extract the phase.使用光栅分析技术提取相位。
  4. Use a suitable phase unwrapping algorithm to obtain a continuous phase distribution that changes in proportion to the height of the object.使用合适的相位展开算法来获得连续的相位分布,该分布与对象的高度成比例地变化。
  5. The calibration system maps the expanded phase distribution to the real-world three-dimensional coordinate system.校准系统将扩展的相位分布映射到实际的三维坐标系。

正弦波模式的产生 (Generation of Sinusoidal Pattern)

Phase measurement profilometry needs to project sinusoidal grating patterns with different phases onto the surface of the object.

相位测量轮廓仪需要将具有不同相位的正弦光栅图案投影到物体表面。

The LCD projector can use a personal computer to control the projected image. The sinusoidal grating image is generated by projection software, which provides an efficient structured light projection scheme. We assume that the resolution of the LCD projector is R x C. For each column c in the generated sinusoidal grating image, c=0,1,2,…,C-1, there are:

LCD投影仪可以使用个人计算机控制投影图像。 正弦光栅图像由投影软件生成,该投影软件提供了有效的结构化光投影方案。 我们假设LCD投影仪的分辨率为R xC。对于生成的正弦光栅图像中的每一列c, c = 0,1,2,…,C-1 ,有:

F_{n}(r,c) is the pixel value at (r,c) in the raster image after phase shifting k steps. In our example, k={1,2,3 ,4}, p is the grating period in pixels, δ is the phase shift increment.Figure below shows the sinusoidal raster images generated by the software.

F_ {n}(r,c)是相移k步后光栅图像中(r,c)处的像素值。 在我们的示例中,k = {1,2,3,4},p是以像素为单位的光栅周期, δ是相移增量。下图显示了该软件生成的正弦光栅图像。

Each image is shifted by a quarter of a period to the right from the previous image. Image By Author
每个图像从上一个图像向右移动四分之一周期。 图片作者

相位测量轮廓仪 (Phase Measuring Profilometry)

The sinusoidal grating image generated by the projection module is projected onto the surface of the object placed on the reference plane, and the refracted light is captured by the image acquisition module (Camera).

由投影模块生成的正弦光栅图像被投影到放置在参考平面上的对象的表面上,并且折射光被图像获取模块(相机)捕获。

The following figure shows the picture when 4 sine grating images with different phases are projected onto the surface of the object using the phase shift method when k=4..Image By Author
下图显示了当k = 4时使用相移方法将4个不同相位的正弦光栅图像投影到对象表面时的图片。

Since the projected sinogram changes in the same pattern in the column direction, the contour of the object can be constructed by the calculation results of each row.

由于投影的正弦图在列方向上以相同的模式变化,因此可以通过每行的计算结果来构造对象的轮廓。

Source资源

We assume that point O is the intersection of the optical axis and the reference plane, point O is used as the origin of the coordinate and the phase is 0.

我们假设点O是光轴与参考平面的交点,点O被用作坐标的原点,并且相位为0。

The period of the sine grating image projected on the reference plane is p_{o}, the period of the original sine grating image is

投影在参考平面上的正弦光栅图像的周期为p_ {o} ,原始正弦光栅图像的周期为

The sensor in the camera receives the light reflected at point D on the surface of the object, if there is no object, the same position in the sensor will receive the light reflected at point C on the reference plane. Correspondingly, the light refracted at point D on the surface of the object is the same as the light refracted at point G on the horizontal plane without an object. So the phase of the projected image at point D is equal to the phase at point G, and there are:

相机中的传感器接收在物体表面D点反射的光,如果没有物体,则传感器中相同的位置将接收在参考平面上C点反射的光。 相应地,在物体表面上的点D处折射的光与在没有物体的情况下在水平面上的点G处折射的光相同。 因此,投影图像在D点的相位等于G点的相位,并且有:

Where,

哪里,

Is the phase value of the projected image at point C.

是投影图像在C点的相位值。

The phase difference between point D and point C is:

D点和C点之间的相位差为:

According to the geometric relationship, we get:

根据几何关系,我们得到:

According to the above formula , we get:

根据以上公式,我们得到:

OD is the height of the object at point O.

OD是对象在点O处的高度。

The general formula is:

通用公式为:

Where,ϕo(x,y) is the phase at the point (x,y), and ϕr(x,y) is the phase on the reference plane at the corresponding point.

其中,φO(X,Y)是在该点的相(X,Y),以及φR(X,y)是在相应点上的基准平面的相位。

相移轮廓仪 (Phase Shift Profilometry)

When the light is stable and the Camera is linear, the light intensity I(x,y) at a certain point (x,y) in the captured image can be expressed as the following formula :

当光线稳定且相机呈线性时,可以将捕获图像中某个点(x,y)的光强度I(x,y)表示为以下公式:

Where,B(x,y) is the background light intensity, C(x,y) is the amplitude value of the sinusoidal grating, and ϕ(x,y) is the phase value modulated by the height of the object.

其中,B(x,y)是背景光强度,C(x,y)是正弦光栅的幅度值, ϕ (x,y)是由物体高度调制的相位值。

I(x,y) can be obtained by camera. In order to eliminate the B(x,y) and C(x,y) in the formula and get ϕ(x,y), we use aphase extraction algorithm called the phase shift method.

I(x,y)可以通过相机获得。 为了消除公式中的B(x,y)和C(x,y)并获得ϕ (x,y),我们使用一种称为相移法的无相提取算法。

In the phase shift method, the phase will be moved k times, each time the same value is θ_{k}. The formula \ref{eq:2.6} can be written as:

在相移方法中,每次相同的值是θ_ {k}时,相位将移动k次。 公式\ ref {eq:2.6}可以写成:

Let,

让,

Substitute in the above formula, we can get:

用上面的公式代替,我们可以得到:

And,

和,

So we get the phase value:

这样我们就得到了相位值:

Then the surface height of the object can be calculated

然后可以计算出物体的表面高度

The phase shift method uses the light intensity information of multiple images to calculate the phase of each point, so it has a certain anti-noise ability. But in the sampling process, the object is required to remain still, so it is not suitable for dynamic measurement.

相移法利用多个图像的光强度信息来计算每个点的相位,因此具有一定的抗噪能力。 但是在采样过程中,要求对象保持静止,因此不适合动态测量。

相位展开 (Phase Unwrapping)

At this time, the final continuous phase is not what we want, because the phase obtained by the phase shift technique is an inverse tangent function, so the original phase will be compressed in between [-π/2,π/2] with a period of π .

此时,最终的连续相位不是我们想要的,因为通过相移技术获得的相位是反正切函数,因此原始相位将在[-π/ 2,π/ 2]之间压缩为π的周期。

Thus there will appear repeatedly π gap wrapped phase map, and the removal of these drops it is called phase unwrapping technique.

因此,将反复出现π间隙包裹的相位图,将这些液滴的去除称为相位展开技术。

According to Shannon’s sampling theorem, in the correct two-dimensional phase distribution, the absolute value of the phase difference between each point and any point adjacent to it must be less than π to avoid aliasing. Therefore, when the phase difference between the reference point and its neighboring point is greater than π, phase unwrapping is required, and a value of ±2π needs to be added so that a continuous phase distribution can be obtained. This is the basic theory of phase unwrapping.

根据香农的采样定理,在正确的二维相位分布中,每个点和与其相邻的任何点之间的相位差的绝对值必须小于π以避免混叠。 因此,当参考点与其相邻点之间的相位差大于π时,需要相位解缠,并且需要加上±2π的值,以便可以获得连续的相位分布。 这是相位展开的基本理论。

(a) One-dimensional phase distribution diagram, the phase value will be limited to 2π modulus. (b) After judging, add an integer multiple of the period 2π at each phase jump to obtain a continuously distributed phase map.
(a)一维相位分布图,相位值将限制为2π模数。 (b)判断后,在每个相位跳变处添加周期2π的整数倍,以获得连续分布的相位图。

Generally, a two-dimensional phase expansion method can be expressed as the following formula:

通常,二维相扩展方法可以表示为以下公式:

Where, ϕ represents the phase value after expansion, ϕ(x,y) represents the phase value in the original 2π modulus,ϕ_0 represents the phase value of the reference neighboring point, and Round[x] represents the integer value closest to x.

其中, ϕ表示扩展后的相位值, ϕ(x,y)表示原始2π模量的相位值, ϕ _0表示参考相邻点的相位值,Round [x]表示最接近x的整数值。

This basic rule is only applicable to phase diagrams with small noise and no inconsistency. Once the noise increases or there is discontinuity in the phase itself , resulting in discontinuities.

该基本规则仅适用于噪声小且没有不一致的相位图。 一旦噪声增加或相位本身不连续,就会导致不连续。

结论 (Conclusion)

This lesson covers the basic, low-level operations and tools of image processing, which are necessary for understanding most of the commonly used methods and tools of computer vision

本课程涵盖了图像处理的基本,低级操作和工具,这对于理解计算机视觉的大多数常用方法和工具是必不可少的

翻译自: https://towardsdatascience.com/structured-light-scanning-c125d5e06c41

可持久化数据结构加扫描线


http://www.taodudu.cc/news/show-863583.html

相关文章:

  • 信号处理深度学习机器学习_机器学习和信号处理如何融合?
  • python 数组合并排重_并排深度学习:Julia vs Python
  • 强化学习 求解迷宫问题_使用天真强化学习的迷宫求解器
  • 朴素贝叶斯 半朴素贝叶斯_使用朴素贝叶斯和N-Gram的Twitter情绪分析
  • 自动填充数据新增测试数据_用测试数据填充员工数据库
  • bart使用方法_使用简单变压器的BART释义
  • 卷积网络和卷积神经网络_卷积神经网络的眼病识别
  • 了解回归:迈向机器学习的第一步
  • yolo yolov2_PP-YOLO超越YOLOv4 —对象检测的进步
  • 机器学习初学者_绝对初学者的机器学习
  • monk js_对象检测-使用Monk AI进行文档布局分析
  • 线性回归 c语言实现_C ++中的线性回归实现
  • 忍者必须死3 玩什么忍者_降维:忍者新手
  • 交叉验证和超参数调整:如何优化您的机器学习模型
  • 安装好机器学习环境的虚拟机_虚拟环境之外的数据科学是弄乱机器的好方法
  • 遭遇棘手 交接_Librosa的城市声音分类-棘手的交叉验证
  • 模型越复杂越容易惰性_ML模型的惰性预测
  • vgg 名人人脸图像库_您看起来像哪个名人? 图像相似度搜索模型
  • 机器学习:贝叶斯和优化方法_Facebook使用贝叶斯优化在机器学习模型中进行更好的实验
  • power-bi_在Power BI中的VertiPaq内-压缩成功!
  • 模型 标签数据 神经网络_大型神经网络和小数据的模型选择
  • 学习excel数据分析_为什么Excel是学习数据分析的最佳方法
  • 护理方面关于人工智能的构想_如何提出惊人的AI,ML或数据科学项目构想。
  • api数据库管理_API管理平台如何增强您的数据科学项目
  • batch lr替代关系_建立关系的替代方法
  • ai/ml_您本周应阅读的有趣的AI / ML文章(8月9日)
  • snowflake 使用_如何使用机器学习模型直接从Snowflake进行预测
  • 统计 python_Python统计简介
  • ios 图像翻转_在iOS 14中使用计算机视觉的图像差异
  • 熔池 沉积_用于3D打印的AI(第3部分):异常熔池分类的纠缠变分自动编码器

可持久化数据结构加扫描线_结构化光扫描相关推荐

  1. access“idno”字段改为文本型_结构化文本计算示例(一)

    结构化文本是很常见的文件格式,对结构化文本的计算也是很常见的需求.在实现这种计算时,一种很容易想到的办法是将文件导入数据库后再计算,但这会消耗大量时间以及昂贵的数据库资源,而且有的场合下并没有合适的数 ...

  2. python文档字符串_结构化的python文档字符串,对IDE友好

    在PHP中,我习惯了PHPdoc语法: /** Do something useful @param first Primary data @return int @throws BadExcepti ...

  3. mysql支持结构化查询语言_结构化查询语言(SQL)详解之一

    转载自:https://study.qqcf.com/web/168/19166.htm 一.SQL语句的分类 ANSI SQL语句分成以下六类(按使用频率排列): 数据查询语言(DQL):其语句,也 ...

  4. 机器学习结构化学习模型_生产化机器学习模型

    机器学习结构化学习模型 The biggest issue in the life-cycle of ML project isn't to create a good algorithm or to ...

  5. python文本结构化处理_在Python中标记非结构化文本数据

    python文本结构化处理 Labelled data has been a crucial demand for supervised machine learning leading to a n ...

  6. 专利:结构化大数据通信协议

    发明专利技术 结构化大数据通信协议 发明人:樊永正 269779216@qqqq.com 技术领域 结构化大数据通信协议是一种通信协议,也是一种让数据成为合格的结构化大数据的技术.结构化大数据通信协议 ...

  7. 结构化数据与非结构化数据

    结构化数据和非结构化数据是大数据的两种类型,关系数据库用于结构化数据,大多数其他类型的应用程序用于非结构化数据 结构化数据:高度组织和整齐格式化的数据.它是可以放入表格和电子表格中的数据类型. 能够用 ...

  8. VTK和ParaView中引入了显式结构化网格表达地质网格

    Introducing Explicit Structured Grids in VTK and ParaView - Kitware Blog 1.简介 新版本的vtk引入了适用于油藏角点网格模型的 ...

  9. 结构化数据、半结构数据和非结构数据的总结

    (一) (1)结构化数据(即行数据,存储在数据库里,可以用二维表结构来逻辑表达实现的数据) (2)非结构化数据,包括所有格式的办公文档.文本.图片.XML.HTML.各类报表.图像和音频/视频信息等等 ...

最新文章

  1. JavaScript的函数
  2. 【arduino】用VSCode替代Arduino编辑器,arduino VSCode编辑器
  3. Java黑皮书课后题第6章:**6.34(打印日历)编程练习题3.21使用Zeller一致性原理来计算某天是星期几,使用Zeller的算法简化程序清单6-12以获得每月开始的第一天是星期几
  4. ncbi查找目的基因序列_教你如何利用NCBI寻找目的基因
  5. java des加密类_java的DES加密解密辅助类
  6. 计算机网络之网络层:2、IP数据报、IP数据报分片
  7. 基于JAVA+SpringMVC+Mybatis+MYSQL的网上试衣间设计
  8. cholesky分解java代码_cholesky分解
  9. 在idea中启动tomcat项目报错提示“java.util.zip.ZipException: error in opening zip file“
  10. Gantt(甘特图)与PERT(项目计划评审技术)图各自的缺陷
  11. matlab 虚位温,大气边界层湍流基础
  12. html5有哪些小特效,超级惊艳 10款HTML5动画特效推荐
  13. md-editor-v3 markdown编辑器
  14. 游戏汉化技术内幕 第2章解包封包
  15. Shopee店铺装修是什么?怎么做到效果翻倍?
  16. 初学Python:encode、decode和Unicode等
  17. js前端身份证号、手机号脱敏、手机号、身份证号加密(ios浏览器兼容性问题)
  18. 计算机专业英语(500词)
  19. 如何进入PageAdmin CMS 安装界面
  20. 1.3 Latex页眉页脚设置

热门文章

  1. Debian Gnu/Linux 9关闭 111端口
  2. shp与json互转(转载)
  3. ASP.net mvc Code First 更新数据库
  4. php实现解压功能的函数
  5. 浅谈本地服务器的搭建 XAMPP
  6. android覆盖扩散动画,[Android]多层波纹扩散动画——自定义View绘制
  7. SSH putty Disconnected: Server protocol violation: unexpected SSH2_MSG_UNIMPLEMENTED packet
  8. php mysql修复_MySQL数据表损坏的巧妙修复
  9. php qcloud sdk weapp_微信小程序源码+PHP后台
  10. mysql not exists无效_分析MySQL中哪些情况下数据库索引会失效