Image fitting with Gabor functions - see full writeup at https://mzucker.github.io/2016/08/01/gabor-2.html
To build the software, you will need these libraries:
You must install cmake to build the software as well. To build:
cd /path/to/imfit
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
Try running
./imfit -s128 -n128 -i ../params/zz_rect.txt -w ../images/zz_rect_weights.png ../images/zz_rect.png