Mosaic generator
This functions goal generate a mosaic image based on a single (usually large) main image, and multiple small tile images. A large mosaic image will be randomly generated from the multiple tile images. The resulting mosaic image will be combined with the main image, forming the desired result. The ratio between images “strength” is defined by the Overlay Ratio ranging between [0:1]. Smaller value will make the large main image be dominant, while larger Overlay Ratio will make the mosaic image (formed from tiles images) more obvious, at the expense of the main image. The user can (and should) define regions with different Overlay Ratio values. For example when the main image is a portrait, the Overlay Ratio value around the face should be small (about 0.2), while it can be high about 0.7) in other less important areas. The user can also resize the final image, sharpen the small images, convert them to color (RGB) or Gray images, if needed.
The program was inspired by this video: http://www.youtube.com/watch?v=c3af_HyhLI4 . After a few attempts via Photoshop I’ve decided to switch to a field where I feel more confident (Matlab), and enjoyed doing it. Later on I’ve seen the other Matlab based implementation, some better than mine, but I believe mine can be useful to someone as well.
Have fun!
In case of comments I'll try to fix the code.
Get the most updated "input to files list" function (submission 34944- http://www.mathworks.com/matlabcentral/fileexchange/34944) for this one.
Citar como
Nikolay S. (2024). Mosaic generator (https://www.mathworks.com/matlabcentral/fileexchange/30039-mosaic-generator), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
- Gaming > Puzzles >
- Image Processing and Computer Vision > Image Processing Toolbox > Get Started with Image Processing Toolbox >
Etiquetas
Agradecimientos
Inspirado por: Files Under Folders (fuf), List of files from directories/files list or browser
Inspiración para: ManyPieces
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
MosaicGenerator/
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.8.0.0 | Improved memory management and minor chnages |
||
1.7.0.0 | Taken care of disappearing persistent variable (when Matlab is closed for example). |
||
1.6.0.0 | Added persistent variable to prevent re-reading images. Consumes memeory.
|
||
1.5.0.0 | - some documentation inprovements
|
||
1.4.0.0 | - Packed into an App, for easier use.
|
||
1.3.0.0 | Some bugs fixed, some new features added or modified. |
||
1.2.0.0 | - Compatibility with R2011b (fileparts outputs change) resolved.
|
||
1.1.0.0 | - Better GUI for sub images choosing.
|
||
1.0.0.0 |