Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 724 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 724 Bytes

barrel-distortion-cuda

A barrel distortion example written with OpenCV C++ API and CUDA.

Dependencies

  • CMake
  • OpenCV
  • CUDA

How to Compile and Run

If you are using UNIX-like system type these commands:

$ mkdir build
$ cd build
$ cmake ..
$ make
$ cd ..
$ ./barrel_distort_cpp <input image path> <K: coefficient of barrel distortion> [x corrdinate of center of distortion (in pixel)] [y corrdinate of center of distortion (in pixel)]

Reference

The work of barrel distortion is originated from 逍遙文工作室.
You can find his work in the following link (Chinese website):