Coder Social home page Coder Social logo

rasmussvala / tnm097-image-reproduction Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 379 MB

Reproduce any image using Pokémon images

MATLAB 82.75% JavaScript 17.25%
image-manipulation image-reproduction matlab pokemon reproduction linkoping-university liu

tnm097-image-reproduction's Introduction

TNM097-Image-Reproduction

This project is part of the course TNM097 - Image Reproduction at LiU. It is implemented in MATLAB and transforms any input image into an image composed of Pokémon characters using k-means clustering to determine the appropriate Pokémon for each pixel. To view samples in full resolution, visit the /reproduced-images folder.

How to Run

To try it out yourself, follow these steps:

  1. Clone this repository.
  2. Open it in MATLAB.
  3. Make sure the /matlab folder is on the MATLAB path (right-click the folder to add it to path).
  4. Open the Command Window.
  5. Call the create_poke_image function with the appropriate arguments:
create_poke_image("./path/to/image.png", "./pokemon-images/genX");

You need to provide the path to an input image and the path to a Pokémon database folder. Currently, only .png files are supported for input images. Multiple database options are available within the /pokemon-images folder. Note that more Pokémon images in the database will increase the loading time. To reduce the number of similar Pokémon images, use the reduce_db.m MATLAB function to create a new folder with fewer Pokémon. For more details, refer to the function.

Pokémons

tnm097-image-reproduction's People

Contributors

rasmussvala avatar m4rcu2 avatar

Watchers

 avatar

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.