Applying genetic programming (evolutionary algorithm) to generate an artistic version of a reference input image
- Assignment submission for Artificial Intelligence course
Just replace input.bmp with another image of the same name (respecting the requirements below) then run a.out
from the terminal
- Environment: any linux distribution with gcc compiler
- Dependencies: OpenGL Utility Toolkit (GLUT) installed (
GL/
has to exist in directory/usr/include/
) - Input image: a valid 512x512 RGB bitmap
*.bmp
file (generated by software such as MS-Paint or Pinta)
- Specify the input image file location
INPUT_IMAGE_PATH
inmain.cpp
- Open terminal, navigate
cd
to the directory containingmain.cpp
- Run
sh ./compile.sh
to compile the source files into an output executable - Execute the generated file using
./a.out