JuliaImages / juliaimages.github.io

Documentation For JuliaImages
https://juliaimages.org
33 stars 56 forks source link

Having trouble with imresize and pixel art #247

Closed davidalencia closed 2 years ago

davidalencia commented 2 years ago

I have a problem increasing the size of a pixel art image (matrix). I have a 3x3 matrix, and I use imresize to increase it to 200x200 but it doesn't keep the pixel aesthetic. I have tried using different arguments in method but i can't find a way to keep the pixels defined.

finding = RGB.([0 0 0;1 0 1;0 0 0])

image

imresize(finding, (200,200))

image

rubal501 commented 2 years ago

imresize(finding, (200, 200), method=BSpline(Constant()))