JSfeat ORB匹配-如何训练多种模式

时间:2018-07-10 10:05:23

标签: javascript computer-vision jsfeat

JSfeat ORB匹配-如何训练多种模式

使用以下代码

var image = new Image();
image.src = "image.jpg";
var c = document.getElementById("myCanvas");
var ctxx = c.getContext("2d");
c.width = image.width;
c.height = image.height;
ctxx.drawImage(image, 0, 0, image.width, image.height);
var imgData = ctxx.getImageData(0, 0, c.width, c.height);
var imgg = new jsfeat.matrix_t(image.width, image.height, jsfeat.U8_t | jsfeat.C1_t);
jsfeat.imgproc.grayscale(imgData.data, image.width, image.height, imgg);
jsfeat.imgproc.resample(imgg, lev0_img, new_width, new_height);

0 个答案:

没有答案