[nodes] ImageMatching: Add methods and option nbNeighbors

This commit is contained in:
Theo 2020-01-23 12:26:17 +01:00
parent b075945266
commit c1cedd50a3

View file

@ -1,4 +1,4 @@
__version__ = "1.0" __version__ = "1.1"
import os import os
from meshroom.core import desc from meshroom.core import desc
@ -28,6 +28,15 @@ class ImageMatching(desc.CommandLineNode):
label="Features Folders", label="Features Folders",
description="Folder(s) containing the extracted features and descriptors." description="Folder(s) containing the extracted features and descriptors."
), ),
desc.ChoiceParam(
name='method',
label='Method',
description='Method used to select the image pairs to match.',
value='VocabularyTree',
values=['VocabularyTree', 'Sequential', 'SequentialAndVocabularyTree','Exhaustive','Frustum'],
exclusive=True,
uid=[0],
),
desc.File( desc.File(
name='tree', name='tree',
label='Tree', label='Tree',
@ -70,6 +79,15 @@ class ImageMatching(desc.CommandLineNode):
uid=[0], uid=[0],
advanced=True, advanced=True,
), ),
desc.IntParam(
name='nbNeighbors',
label='Nb Neighbors',
description='The number of neighbors to retrieve for each image (If 0 it will retrieve all the neighbors).',
value=50,
range=(0, 1000, 1),
uid=[0],
advanced=True,
),
desc.ChoiceParam( desc.ChoiceParam(
name='verboseLevel', name='verboseLevel',
label='Verbose Level', label='Verbose Level',