This project is a simple implementation of the A* algorithm to sort colors by hue. The project is written in Python and uses the Image library to read and write images. The A* algorithm is used to sort the colors by hue, and will create a matrix of color sorted by its gradient.
- Python 3.6 or higher
- Clone the repository
- Install the required libraries using the following command:
pip install -r requirements.txt- Go to src folder using
cd src - If you want to generate a starting image with given matrix, use Generator.py. You can modify the matrix anything you want. Run the following command:
python Generator.py ColorImage.py- If you want to sort the colors in the image, use Solver.py. Run the following command:
python Solver.py Node.py ColorImage.pyNOTE: Make sure you save the size of a color box the same as generated