alexunxus / rec2panoramica

C++ version of rec2panoramic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rec2panoramica

It is a side project for me to transform a normal(rectangular) image into a panoramic(circular) image. I found implementing through C++ is way faster than using Python. The concept is easy. We have to tell for each pixel on the target image, can where is the corresponding points on the source image.

User Guide

Input image: alt text

Output image: alt text

  1. clone this directory

$ git clone https://github.com/alexunxus/rec2panoramica.git

  1. install opencv3

$ brew install opencv

If you cannot successfully install opencv, then checkout this page: https://stackoverflow.com/questions/34340578/installing-c-libraries-on-os-x

  1. open terminal and go to directory /rec2panoramica/

$ cd ~/My/Path/To/rec2panoramica/

  1. type make

$ make

If you have not yet install GNU make, then

$ brew install make

  1. put your image into this directory and type

$ ./myImg yourjpgname

  1. your image will be stored in the same directory with prefix "pan"

About

C++ version of rec2panoramic


Languages

Language:C++ 95.2%Language:Makefile 4.8%