-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorbDescribe.js
55 lines (54 loc) · 1.07 KB
/
orbDescribe.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
module.exports = {
name: "orbDescribe",
ns: "jsfeat",
async: true,
description: "ORB Describe",
phrases: {
active: "Describing ORB"
},
ports: {
input: {
src: {
title: "Source",
type: "function"
},
corners: {
title: "Destination",
type: "function"
},
count: {
title: "Count",
type: "number"
},
descriptors: {
title: "Descriptors",
type: "function",
async: true,
fn: function __DESCRIPTORS__(data, source, state, input, $, output, jsfeat) {
var r = function() {
jsfeat.orb.describe($.src, $.corners, $.count, $.descriptors)
output({
out: $.write('descriptors', $.descriptors)
});
}.call(this);
return {
state: state,
return: r
};
}
}
},
output: {
out: {
title: "Descriptors",
type: "function"
}
}
},
dependencies: {
npm: {
jsfeat: require('jsfeat')
}
},
state: {}
}