This demo is curve fitting by G-N method,and it can help us better understand the optimization process.
Eigen3
Download and install instructions can be found at: http://eigen.tuxfamily.org.
OpenCV
Use OpenCV to generate random numbers.
cd XX/XX(include gaussnewton.cpp and CMakeLists.txt)
mkdir build
cd build
cmake ..
make -j2
./gaussnewton