voluptasquisquam
Version:
Image processing and manipulation in JavaScript
19 lines (12 loc) • 346 B
JavaScript
import {Image} from 'test/common';
import 'should';
describe('calculate svd', function () {
it('check the result', function () {
let img = new Image(8, 2, [255, 0], {
kind: 'BINARY'
});
let svd = img.getSvd();
svd.V[0].should.eql([-1, -0]);
svd.V[1].should.eql([-0, -1]);
});
});