An implementation of a 3D scanner using the three-step phase shifting method.
In a calibrated setup, a beamer is used to project special stripe patterns onto the target object. A camera then captures the scene for each the different patterns. As the camera sees the stripes from a different angle than the beamer, they appear distorted proportionally to depth of the object's surface. From the difference of the distorted to the original pattern, the depth for each pixel can be reconstructed.
The patterns are grayscale images, that consist from an equal number of horizontal stripes with a sine intensity distribution. In each pattern, the sine wave is shifted by 120° or 2/3 PI. From the different intensity values, a relative phase in the range of [-PI,PI] can be computed. The discontinueties of the wrapped phase map are unwrapped using a flood fill algorithm, by following neigbouring pixels with the best phase quality, starting in the center of the image. The resulting absolute phase, is proportional to he surface depth of the pixel.
In the root dirctory, you will find various code, like implementation of the algorithm, a simple commandline test application, a script for generating the fringe pattern images and code for viewing the result as a 3D point cloud.
The slapp directory contains graphical application with basic user interface, that supports:
Wikipedia:
Calibration:
Three Phase Shift
Phase Unwrapping
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。