Skip to content

Instantly share code, notes, and snippets.

View devernay's full-sized avatar

Frédéric Devernay devernay

View GitHub Profile

Structured light with sinusoidal patterns and phase unwrapping

This project was about adding structured light methods, based on sinusoidal patterns, along with phase unwrapping to OpenCV. Our work was based on the following reference papers:

  • [1] Cong, Pengyu, et al. "Accurate dynamic 3D sensing with Fourier-assisted phase shifting." IEEE Journal of Selected Topics in Signal Processing 9.3 (2015): 396-408.
  • [2] Lei, Hai, et al. "A novel algorithm based on histogram processing of reliability for two-dimensional phase unwrapping." Optik-International Journal for Light and Electron Optics 126.18 (2015): 1640-1644.

The code can be found here and some data were also added here. Examples of wrapped phase maps stored in yml files can be found in opencv_extra/cv/testdata. They can be used with the sample created f

@devernay
devernay / colmap_colab.ipynb
Created April 15, 2021 00:29 — forked from kwea123/colmap_colab.ipynb
colmap_colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@devernay
devernay / xcode-clang-vers
Created May 6, 2020 20:32 — forked from yamaya/xcode-clang-vers
Xcode clang version record
# Xcode 4.3.3
Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
# Xcode 4.3.2
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix
@devernay
devernay / noscreensaver.sh
Created May 6, 2020 18:39
Move mouse to prevent screensaver from activating & locking (wiggleme)
#!/bin/bash
# https://www.darklaunch.com/move-mouse-to-prevent-screensaver-from-activating-locking
case $(uname -s) in
Darwin)
timeout=$((10 * 60))
while :; do
last_mouse_position=$(cliclick "p")
sec="${timeout}"
while [[ $sec -ge 0 ]]; do
@devernay
devernay / cineon.log
Created August 5, 2016 11:12
OpenImageIO 1.6.15 iinfo and ImageMagick 6.9.5-4 identify output for various Cineon files
$ iinfo -v ./Digital_LAD_cin/Digital_LAD_2048x1556.cin
./Digital_LAD_cin/Digital_LAD_2048x1556.cin : 2048 x 1556, 3 channel, uint10 cineon
channel list: R, G, B
oiio:BitsPerSample: 10
Orientation: 1 (normal)
oiio:ColorSpace: "GammaCorrected"
oiio:Gamma: 0
DateTime: "2010:07:28 09:32:24"
cineon:ImageDescriptor: "Red, printing density", "Green, printing density", "Blue, printing density"
cineon:Version: "V4.5 K:/Digital_LAD_2048x1556.cin"