Skip to content

Commit

Permalink
[nodes] register some nodes for 2D features viz
Browse files Browse the repository at this point in the history
  • Loading branch information
almarouk committed Oct 10, 2023
1 parent d22ec37 commit f20f0ab
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
34 changes: 34 additions & 0 deletions meshroom/nodes/aliceVision/SfMFilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,40 @@ class SfMFilter(desc.AVCommandLineNode):
advanced=True,
uid=[0],
),
desc.ListAttribute(
elementDesc=desc.File(
name="featuresFolder",
label="Features Folder",
description="",
value="",
uid=[], #TODO
),
name="featuresFolders",
label="Features Folders",
description="Folder(s) containing the extracted features and descriptors."
),
desc.ListAttribute(
elementDesc=desc.File(
name="matchesFolder",
label="Matches Folder",
description="",
value="",
uid=[], #TODO
),
name="matchesFolders",
label="Matches Folders",
description="Folder(s) in which the computed matches are stored."
),
desc.ChoiceParam(
name="describerTypes",
label="Describer Types",
description="Describer types used to describe an image.",
value=["dspsift"],
values=["sift", "sift_float", "sift_upright", "dspsift", "akaze", "akaze_liop", "akaze_mldb", "cctag3", "cctag4", "sift_ocv", "akaze_ocv", "tag16h5"],
exclusive=False,
uid=[], # TODO: 0
joinChar=",",
),
]

outputs = [
Expand Down
8 changes: 4 additions & 4 deletions meshroom/ui/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,16 +403,16 @@ class Reconstruction(UIGraph):
activeNodeCategories = {
# All nodes generating a sfm scene (3D reconstruction or panorama)
"sfm": ["StructureFromMotion", "GlobalSfM", "PanoramaEstimation", "SfMTransfer", "SfMTransform",
"SfMAlignment"],
"SfMAlignment", "SfMFilter", "SfMTriangulation"],
# All nodes generating a sfmData file
"sfmData": ["CameraInit", "DistortionCalibration", "StructureFromMotion", "GlobalSfM", "PanoramaEstimation", "SfMTransfer", "SfMTransform",
"SfMAlignment"],
"SfMAlignment", "SfMFilter", "SfMTriangulation"],
# All nodes generating depth map files
"allDepthMap": ["DepthMap", "DepthMapFilter"],
# Nodes that can be used to provide features folders to the UI
"featureProvider": ["FeatureExtraction", "FeatureMatching", "StructureFromMotion"],
"featureProvider": ["FeatureExtraction", "FeatureMatching", "StructureFromMotion", "SfMFilter", "SfMTriangulation"],
# Nodes that can be used to provide matches folders to the UI
"matchProvider": ["FeatureMatching", "StructureFromMotion"]
"matchProvider": ["FeatureMatching", "StructureFromMotion", "SfMFilter", "SfMTriangulation"]
}

def __init__(self, undoStack, taskManager, defaultPipeline='', parent=None):
Expand Down

0 comments on commit f20f0ab

Please sign in to comment.