-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDeepFeatureMatching.py
More file actions
51 lines (47 loc) · 1.75 KB
/
DeepFeatureMatching.py
File metadata and controls
51 lines (47 loc) · 1.75 KB
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
# instructions for creating new nodes: https://github.com/natowi/meshroom_external_plugins/wiki/2-DevDoc
# has to be exported to pyc file, then placed into /lib/meshroom/nodes/aliceVision
from meshroom.core import desc
# command line node, calls another program through the command line
class DeepFeatureMatching(desc.CommandLineNode):
# command = 'dfm_wrapper {allParams}'
commandLine = 'dfm_wrapper -sfmData {sfmDataValue} -imagePairs {imagePairsValue} -matches {matchesValue} -features {featuresValue} --minMatches {minMatchesValue}'
inputs = [
desc.File(
name="sfmData",
label="SfMData",
description="SFM data file.",
value=desc.Node.internalFolder,
uid=[0],
),
desc.File(
name="imagePairs",
label="Image Pairs",
description="Path to a file which contains the list of image pairs to match.",
value=desc.Node.internalFolder,
uid=[0],
),
desc.IntParam(
name='minMatches',
label='Minimum Matches',
description='''The minimum number of matches required in order to save image pair in matches file''',
value=100,
range=None,
uid=[0],
)
]
outputs = [
desc.File(
name="matches",
label="Matches Folder",
description="Matched features file",
value=desc.Node.internalFolder + '/matches',
uid=[0],
),
desc.File(
name="features",
label="Features Folder",
description="Output path for the features files (*.feat)",
value=desc.Node.internalFolder + '/features',
uid=[0],
)
]