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

https://github.com/davidhampgonsalves/opencv-mosiac

An OpenCV based attempt at stitching together images to make a mosaic using histograms
https://github.com/davidhampgonsalves/opencv-mosiac

featured image-processing java opencv

Last synced: 3 months ago
JSON representation

An OpenCV based attempt at stitching together images to make a mosaic using histograms

Awesome Lists containing this project

README

          



Generates a similar image using other images as pixels.

## Details

Using the OpenCV Java bindings we divide each image into tiles and calculate histograms for each quadrant. Then compare the related histograms to the portion of the input image to find the closest match. This process is multithreaded using streams but is very work intensive. You can tune the comparitor parameters to achieve faster but worse results.

##Install
To install you'll need OpenCV and Java 8. Then clone the repo and run
```
ant -DocvJarDir=/usr/local/Cellar/opencv/2.4.9/share/OpenCV/java -DocvLibDir=/usr/local/Cellar/opencv/2.4.3/share/OpenCV/java
```
* change your java paths to point to your OpenCV java dir.