Skip to content

johnny-jiang-000/sector_undistortion

Repository files navigation

sector_undistortion

目前想到的方法是用GLSL写一个vertex shader来对图像做扇形remap。像素点mapping可以放到shader里面pixel by pixel计算或者是单独算好map(sector.cpp就是只算map,38400x21600大小的map在ryzen 3700x @16线程下只要1.5秒左右)然后shader读取。

  • clutter支持添加GLSL到渲染层。。。
  • GLSL似乎在不同openGL下有不同的写法。。。

undistortion simulator

  • overlay.py is a simple program to simulate undistortion effect under DART-MX8M (distortion algorithm on DART is solely runinng on GPU and fully optimized so it will be much much much (>100x) faster than this crap simulator)
  • how to use?

install python 3.7

  • run "pip install opencv-python" in CMD to install opencv
  • connect camera and run "python overlay.py" in CMD
  • control ?
  • wasd/ijkl : left/right eye frame position offset
  • 9/0 : undistortion coefficient +/-

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published