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
- Host: GitHub
- URL: https://github.com/davidhampgonsalves/opencv-mosiac
- Owner: davidhampgonsalves
- License: gpl-2.0
- Created: 2015-01-14T14:51:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-10-17T13:30:27.000Z (almost 3 years ago)
- Last Synced: 2025-03-16T20:44:51.619Z (over 1 year ago)
- Topics: featured, image-processing, java, opencv
- Language: Java
- Homepage: https://davidhampgonsalves.com/failed-projects-open-mosaic/
- Size: 1.61 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.