acvictor / Monocular-Augmentation-Depth-Map

Augmentation of a monocular image using a CNN generated depth map of the scene.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monocular Augmentation

This project deals with the augmentation of monocular images while attempting to maintain realistic occlusion and minimize manual intervention. The implementation uses Godard et. al. Unsupervised Monocular Depth Estimation With Left Right Consistency to estimate a dense depth map for an input image. Each texel is then rendered at the depth given by the depth map.

NMPC NMPC NMPC

Compilation and Execution Instructions

To compile and execute the code run

make run

Data

  • D.txt is a 768x1024 array of depth values
  • 1.jpg is the original image
  • result.png is the segmented image

Usage

  • Use the arrow keys to move camera up, down, left and right
  • Use the '+' and '-' keys to move camera in and out
    • '+' zooms in
    • '-' zooms out
  • Use left mouse button to rotate camera
  • Use 'b' to toggle bounding boxes
  • Use ESC to quit.

Attribution

Used https://github.com/mrharicot/monodepth to construct the depth map

About

Augmentation of a monocular image using a CNN generated depth map of the scene.

License:MIT License


Languages

Language:C++ 71.5%Language:C 26.4%Language:Python 1.3%Language:Makefile 0.8%