Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chaoses-ib/photomosaic-generator

Generate Photomosaic by histogram similarity and OpenMP
https://github.com/chaoses-ib/photomosaic-generator

image-processing opencv openmp photomosaic

Last synced: 19 days ago
JSON representation

Generate Photomosaic by histogram similarity and OpenMP

Awesome Lists containing this project

README

        

# Photomosaic Generator
Generate [Photomosaic](https://wikipedia.org/wiki/Photographic_mosaic) by histogram similarity and OpenMP.

## Download
[Releases](https://github.com/Chaoses-Ib/Photomosaic-generator/releases)

## Usage
```
Allowed options:
--help produce help message
-I [ --images ] arg * directory of the source images
-n arg limit the maximum number of source images
-t [ --target ] arg * target image
--xn arg (=100) number of x blocks
--yn arg (=150) number of y blocks
--precision arg (=8) histogram size
--threads arg number of threads for generating Photomosaic (0 for serial)
-o [ --output ] arg output path
```

## Preview
Original image ([source](https://www.pixiv.net/artworks/34844544)):
![](docs/images/original.jpg)

Generated Photomosaics:
- 160\*90p
![](docs/images/Photomosaic_90p.png)
- 320\*180p
![](docs/images/Photomosaic_180p.png)
- 533\*300p
![](docs/images/Photomosaic_300p.png)
- 800\*450p
![](docs/images/Photomosaic_450p.png)
- 1600\*900p
![](docs/images/Photomosaic_900p.png)