Legofy

Matlab: Convert a normal image (or internet image) into Lego-style, similar to https://github.com/JuanPotato/Legofy
28 Downloads
Aktualisiert 30 Nov 2022

This is a Matlab function that converts a normal RGB image into a Lego-style image. The input can be either an image that has been imported into Matlab or the url address of an image anywhere on the internet.

The conversion is super easy, you only need to download the function

Legofy.m

This function will take three arguments:

the image to convert,
the scale to pixelise and,
if you want to display block by block.

Arguments 2 and 3 are optional The image can be either an image or a URL.

Examples

Read an image from wikimedia and convert (no extra parameters). The results is saved in dataOut and displayed with a second line of code:


dataOut = Legofy('https://upload.wikimedia.org/wikipedia/commons/d/d5/Vincent_Van_Gogh_0014.jpg');
imagesc(dataOut)

Zitieren als

Constantino Carlos Reyes-Aldasoro (2024). Legofy (https://github.com/reyesaldasoro/Legofy), GitHub. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2019b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und MATLAB Answers
Tags Tags hinzufügen

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

CODE

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
1.0.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.