EPX (Eric's Pixel Expansion) scaling algorithm implementation in JavaScript
Usage:
var epx = require('ndarray-upsample-epx');
epx(out, inp);
where inp
is a 2-dimensional
ndarray,
and out
is as well but double in size. The image
will be scaled up by 2x.
Example in demo.js
, input:
.....
.***.
.*.*.
.***.
.....
output:
..........
..........
...****...
..******..
..**..**..
..**..**..
..******..
...****...
..........
..........
MIT