Skip to content

bkarwoski/star_align

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

star_align

Using OpenCV to align star exposures in C++.

Milky Way Galactic Core Composition of 64 images, Sony A7ii, 50mm F/1.8, 3200 ISO, 5 second exposures. Edited in Adobe Lightroom.

Build Instructions

Tested on Ubuntu 18.04.

Setup Dependencies

sudo apt install cmake build-essential gfortran -y
mkdir deps
cd deps

Eigen

git clone https://gitlab.com/libeigen/eigen.git
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/${USER}/star_align/deps/install -DCMAKE_BUILD_TYPE=Release -DEIGEN_INCLUDE_DIR:PATH=/home/blake/star_align/deps/install/include/eigen3 ..
make install

OpenCV

cd ~/star_align/deps
git clone git@github.com:opencv/opencv_contrib.git
cd opencv_contrib
git checkout 3.4.1
cd ~/star_align/deps
git clone git@github.com:opencv/opencv.git
cd opencv
git checkout 3.4.1
mkdir build
cd build
sudo apt install libgtk2.0-dev pkg-config ffmpeg libpng-dev -y
cmake -DCMAKE_INSTALL_PREFIX=/home/${USER}/star_align/deps/install -DCMAKE_PREFIX_PATH=/home/${USER}/star_align/deps/install -DOPENCV_EXTRA_MODULES_PATH=/home/${USER}/star_align/deps/opencv_contrib/modules -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_DOC=OFF -DOPENCV_ENABLE_NONFREE=ON -DBUILD_opencv_dnn=ON..

make install -j

Note: I ran into this issue when running make with multiple threads. If your build fails, try removing the -j option.

Ceres (Not used in current version, may change in the future)

Download from here: https://github.com/ceres-solver/ceres-solver/archive/1.14.0.tar.gz

Download and extract to ~/star_align/deps/

sudo apt install libsuitesparse-dev libatlas-base-dev libgoogle-glog-dev -y
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/${USER}/star_align/deps/install -DCMAKE_PREFIX_PATH=/home/${USER}/star_align/deps/install -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_SHARED_LIBS=ON -DBUILD_EXAMPLES=OFF -DBUILD_DOCUMENTATION=OFF ..
make install -j

nlohmann/json

Download the single header json.hpp file from nlohmann/json, and place it in the deps directory.

star_align

cd ~/star_align
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_PREFIX_PATH=/home/${USER}/star_align/deps/install -DCMAKE_BUILD_TYPE=Release ..
make -j

About

Using OpenCV to align star exposures.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages