Skip to content

Vulfenstein/Photomosaic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photomosaic

Photomosaic - a large-scale detailed picture or map built up by combining photographs of small areas.

Program starts by taking target image and splits it into a grid. Then finds RGB color average of each input image. It then goes through each grid space and gets its average RGB value and finds best replacement out of the input images. A K-D Tree is used to find nearest neighbors index.

User can decide grid size, resulting in more or less accurate photomosaic. As well as having the option of naming the newly created image.

Examples

Usage

main.py --target-image TARGET_IMAGE --input-folder INPUT_FOLDER --grid-size GRID_SIZE GRID_SIZE [--output-file OUTFILE]

Requirements

  • Pillow
  • Numpy
  • Scipy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages