Skip to content

Sergiu154/Mosaic-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mosaic Generator

Given an input image, a dataset of smaller images and the width of the final image, the algorithm found in add_pieces_mosaic.py builds a mosaic which is composed of smaller images and resembles the original input. Such a mosaic has multiple pattern options which are determined by the shape of the subimages(rectangular or hexagonal) and their positioning(with or without different neighbors). The final image is upscaled such that the width = n*piece_width and its aspect ratio is preserved. The path to the image collection, input image and other options are found in run_project.py.

To build your own mosaic type
python3 run_project.py

caroiaj_dist_standing_john_100

hexagon_dist_tom_100

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages