Code Monkey home page Code Monkey logo

calibration.alignment_with_synchro's Introduction

Calibration.Alignment_with_Synchro

任务进度

  • 视频同步 方法待验证
  • 畸变校正
  • VIS$\rightarrow$IR 单应矩阵 待验证
  • 可见光到近红外的透视变换 效果不佳
./Launch_from_Scratch.sh

VIS.mp4IR.mp4 文件放入 ./calibration_data/videos 目录下后可选择分开运行或者 .sh 文件运行


STEP.0:同步近红外与可见光视频(数据预处理)

存在问题:近红外视频与可见光视频的录制过程缺乏同步

xxx

解决方案:计算背景声音的 correlation 得到可见光视频同步到近红外视频的最佳 offset

xxx

xxx

STEP.1:将视频剪切成 jpg 格式图片并保存

STEP.2:计算相机内参和畸变系数

相机内参: $$ \begin{bmatrix} fx & 0 & cx \ 0 & fy & cy \ 0 & 0 & 1 \end{bmatrix} $$

fxfy 是相机在 x 和 y 方向的焦距(以像素为单位)。

cxcy 是主点(通常是图像的中心点)的坐标。

畸变系数: $$ [k1, k2, p1, p2, k3] $$

k1k2 是径向畸变系数。

p1p2 是切向畸变系数。

k3 是径向畸变的更高阶系数。

STEP.3:校正指定文件夹中的图像

**$\alpha$ (Alpha) :**自由缩放参数。如果它是-1或缺省,则该函数将执行默认缩放。否则,该参数应在0到1之间。alpha = 0表示对校正的图像已经经过缩放和移动了,以便仅有效像素可见(在校正之后的非黑色区域)。 alpha = 1表示对校正后的图像进行抽取和移位,以便将来自摄像机的原始图像中的所有像素保留在校正后的图像中(不丢失任何源图像像素)。任何中间值(0~1)都会在这两种极端情况之间产生中间结果。

Alpha_comparison

STEP.4:校正后计算可见光到近红外的单应矩阵

STEP.5:利用单应矩阵计算可见光图像的透视变换

xxx

calibration.alignment_with_synchro's People

Contributors

liziyu403 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.