-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeypoint_t.js
63 lines (61 loc) · 1.08 KB
/
keypoint_t.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
56
57
58
59
60
61
62
63
module.exports = {
name: "keypoint_t",
ns: "jsfeat",
description: "Keypoint Type",
phrases: {
active: "Creating keypoint"
},
ports: {
input: {
x: {
title: "X",
type: "number"
},
y: {
title: "Y",
type: "number"
},
score: {
title: "Score",
type: "number",
"default": 0
},
level: {
title: "Level",
type: "number",
"default": 0
},
angle: {
title: "Angle",
type: "number",
"default": -1
}
},
output: {
out: {
title: "Keypoint",
type: "keypoint_t"
}
}
},
dependencies: {
npm: {
jsfeat: require('jsfeat')
}
},
fn: function keypointT(input, $, output, state, done, cb, on, jsfeat) {
var r = function() {
var out = new jsfeat.keypoint_t($.x, $.y, $.score, $.level, $.angle)
output({
out: $.create(out)
});
done();
}.call(this);
return {
output: output,
state: state,
on: on,
return: r
};
}
}