diff --git a/meshroom/multiview.py b/meshroom/multiview.py index 12dc5679..a46483a7 100644 --- a/meshroom/multiview.py +++ b/meshroom/multiview.py @@ -50,8 +50,11 @@ def photogrammetryPipeline(output='', inputFolder='', inputImages=[], inputViewp depthMap = graph.addNewNode('DepthMap', ini=cameraConnection.ini) depthMapFilter = graph.addNewNode('DepthMapFilter', + depthMapFolder=depthMap.output, ini=depthMap.ini) meshing = graph.addNewNode('Meshing', + depthMapFolder=depthMapFilter.depthMapFolder, + depthMapFilterFolder=depthMapFilter.output, ini=depthMapFilter.ini) texturing = graph.addNewNode('Texturing', ini=meshing.ini, diff --git a/meshroom/nodes/aliceVision/DepthMap.py b/meshroom/nodes/aliceVision/DepthMap.py index 9ed10c95..411e1c9e 100644 --- a/meshroom/nodes/aliceVision/DepthMap.py +++ b/meshroom/nodes/aliceVision/DepthMap.py @@ -18,3 +18,12 @@ class DepthMap(desc.CommandLineNode): ), ] + outputs = [ + desc.File( + name='output', + label='Output', + description='Output folder for generated depth maps.', + value='{cache}/{nodeType}/{uid0}/', + uid=[], + ), + ] diff --git a/meshroom/nodes/aliceVision/DepthMapFilter.py b/meshroom/nodes/aliceVision/DepthMapFilter.py index 4d8d4e86..fa1c8fc6 100644 --- a/meshroom/nodes/aliceVision/DepthMapFilter.py +++ b/meshroom/nodes/aliceVision/DepthMapFilter.py @@ -16,4 +16,21 @@ class DepthMapFilter(desc.CommandLineNode): value='', uid=[0], ), + desc.File( + name="depthMapFolder", + label='Depth Map Folder', + description='Input depth map folder', + value='', + uid=[0], + ), + ] + + outputs = [ + desc.File( + name='output', + label='Output', + description='Output folder for generated depth maps.', + value='{cache}/{nodeType}/{uid0}/', + uid=[], + ), ] diff --git a/meshroom/nodes/aliceVision/Meshing.py b/meshroom/nodes/aliceVision/Meshing.py index 90ca9f41..e92bb9c9 100644 --- a/meshroom/nodes/aliceVision/Meshing.py +++ b/meshroom/nodes/aliceVision/Meshing.py @@ -40,6 +40,20 @@ class Meshing(desc.CommandLineNode): exclusive=True, uid=[0], ), + desc.File( + name="depthMapFolder", + label='Depth Maps Folder', + description='Input depth maps folder', + value='', + uid=[0], + ), + desc.File( + name="depthMapFilterFolder", + label='Filtered Depth Maps Folder', + description='Input filtered depth maps folder', + value='', + uid=[0], + ), ] outputs = [