66
you are viewing a single comment's thread
view the rest of the comments
[-] blotz@lemmy.world 2 points 1 year ago

Very cool! Did you consider any other interpolation algorithms?

[-] Vitaly@feddit.uk 1 points 1 year ago
[-] blotz@lemmy.world 12 points 1 year ago* (last edited 1 year ago)

Its the mathematical term for estimation and constructing new data from existing data. In the context of what you are doing, it's resizing images.

You are doing something called linear interpolation. This works great for shrinking an image. However, have you considered what happens when your ASCII resolution is greater than your image resolution? This is where bilinear and bicubic interpolation come in.

These algorithms are cool but are also massive overkill for your average use case. They only make a different in a very niche use case (when your ASCII resolution is greater than your image, such as pixelart)

Great code! Very cool

[-] Vitaly@feddit.uk 2 points 1 year ago

thank you so much! have a good day!

this post was submitted on 27 Oct 2023
66 points (79.5% liked)

Programmer Humor

32400 readers
263 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS