Quantcast
Channel: 2D Latest Topics
Viewing all articles
Browse latest Browse all 623

Image Resize - Interpolation with pure Javascript

$
0
0

Hi

I have an image like the picture below. I need to resize this image.(between x2 and x10)

image.png.c068bf517659cc4a88f507787dfa5c80.png

When I resized with Canvas's own features, I couldn't get the image I wanted. The image was pixelated.

I used OpenCV's javascript library for this. (To be able to do interpolation) But here I did not get the exact result I wanted and it was slow in speed(40 - 60 ms). The resizing speed should be between about 10 - 20 ms.

Then I wanted to write an algorithm myself, but I could not prevent pixelation, and the image I wanted was not revealed. In fact, if I can make gradient for each pixel according to the pixels around it (right, left, down and up), I think I can get the image I want.

Is there anyone who can help me with this?


Viewing all articles
Browse latest Browse all 623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>