Legofy

Matlab: Convert a normal image (or internet image) into Lego-style, similar to https://github.com/JuanPotato/Legofy
다운로드 수: 28
업데이트 날짜: 2022/11/30

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)

인용 양식

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

MATLAB 릴리스 호환 정보
개발 환경: R2019b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Convert Image Type에 대해 자세히 알아보기
태그 태그 추가

Community Treasure Hunt

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

Start Hunting!

CODE

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.