GithubHelp home page GithubHelp logo

mosaicmaker's Introduction

MosaicMaker

Photo Mosaic Maker

Example: image

And, here's a closer look (zoom in to analyze the tiles) output

Uses olcPixelGameEngine to generate and display a photo mosaic.

Usage:

  1. create a "photos" folder and copy several photos to be used in generating the Mosaic
  2. run the program (it asks for the Target file name in the Terminal, so don't forget to switch to the terminal when you see the big Canvas)
  3. hang on, while the computer analyses your input photos to generate a Mosaic of your target photo.
  4. If you like the result, capture it using Screen Capture (it does not write to a file, yet).

notes:

  • uses C++/17 standard (to search for filenames)
  • comes with no Warranty
  • You are supposed to utilize your own photos as this code repo does not contain photos (except for the Readme)
  • photos can be any of {*.jpg, *.jpeg, *.png}

Licenses and dependencies:

:)

mosaicmaker's People

Contributors

gurkanctn avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

mosaicmaker's Issues

too big target file causes crash

the TargetBrightness array was created as 100x100, which caused a crash when I tried Mosaic Maker on a 4000px x 2500px photo.
Quick workaround, the array is now 400x400, which should be enough for everyone :)

In fact, a few parameters are declared before reading the files, that's why there are a few magic numbers in the program. They will be dynamically allocated/created someday.

UI for general users

In its current form the code has built-in (hard-coded) parameters for output image (overall width & height, stamp_image width & height).

These parameters could be taken from the user (a simple user interface, or an input file), so that the user can run different parameters to get the best looking picture of their desire.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.