ardila/paintingReorganize
À propos
Use PCA analysis to reorganize the pixels of a painting into a smooth color palette.
Autres projetsProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalpaintingReorganize
To install
pip install -r requirements.txt
If that doesn't work you will have to manually track down and install these pip packages.
To use
python palette.py /path/to/input_file.jpg
Output will be written to output.png
Examples
Input:
Kupka - Mme Kupka Among Verticals

Output:

Input:
Van Gogh - Starry Night

Output:

Input:
Picasso - Demoiselles D'Avignon

Output:

Input:
Cezanne - The Large Bathers

Output:

How it works
Mostly based on PCA a little tutorial on what that means here
Organize pixels according to their first principal component (the direction along which variance is greatest)
Grab a column of pixels at a time, and organize them according to their first principal component
Use the resulting columns one by one in the final result. With each column, check to see if flipping it upside down gives a better match to the previous column.
Explorer des projets similaires
Chargement…