Skip to content

hn-88/OCVWarp

Repository files navigation

OCVWarp

Warping images and videos for planetarium fulldome display using OpenCV. Windows and Linux binaries are available in Releases. The wiki has some more information.

In case you want to build your own binaries, if OpenCV and CMake are installed on your system, instructions for building:

cd build
cmake ..
make OCVWarp.bin

Initial behaviour and parameters are set using OCVWarp.ini in the build folder. Please see transformtype.txt for supported transforms.

A file open dialog asks you for the input ini file, then for the input video file, and finally the filename of the desired output file. The codec used for the output is the same codec as for the input if available on your system, or as chosen in the ini file. (If the input file's codec is not available, the output is saved as an uncompressed avi, which can quickly become huge.)

Keyboard commands are

ESC, x or X to exit
u, + or =   to increase angley by 1 degree - the angle seen vertically in output
m, - or _   to decrease angley by 1 degree 
U           to increase angley by 10 degrees
M           to decrease angley by 10 degrees
k, ] or }   to increase anglex by 1 degree - the angle seen horizontally in output
h, [ or {   to decrease anglex by 1 degree - the angle seen horizontally in output
K           to increase anglex by 10 degrees
H           to decrease anglex by 10 degrees
d or D      to toggle display of warped file. Turning off display marginally increases processing speed.