@webarkit/jsfeat-next
Version:
Typescript version of jsfeat for WebARKit
25 lines (21 loc) • 658 B
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Testing jsfeatNext</title>
</head>
<body>
<script src="../dist/jsfeatNext.js"></script>
<script>
var jsfeat = jsfeatNext.jsfeatNext
var linalg = new jsfeat.linalg();
console.log(linalg);
var m3x4 = new jsfeat.matrix_t(3,4,jsfeat.F32C1_t);
var m4x3 = new jsfeat.matrix_t(4,3,jsfeat.F32C1_t);
var res = linalg.svd_invert(m3x4, m4x3);
console.log(res);
</script>
</body>
</html>