mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-05 12:21:59 +02:00
move photogrammetryPipeline to new multiview module
This commit is contained in:
parent
ce6925117a
commit
84945c52bb
2 changed files with 40 additions and 34 deletions
35
meshroom/multiview.py
Normal file
35
meshroom/multiview.py
Normal file
|
@ -0,0 +1,35 @@
|
|||
import os
|
||||
|
||||
from .core.graph import Graph
|
||||
|
||||
|
||||
def photogrammetryPipeline():
|
||||
# type: () -> Graph
|
||||
graph = Graph('pipeline')
|
||||
|
||||
cameraInit = graph.addNewNode('CameraInit',
|
||||
sensorDatabase=os.environ.get('ALICEVISION_SENSOR_DB', 'sensor_width_camera_database.txt'))
|
||||
|
||||
featureExtraction = graph.addNewNode('FeatureExtraction',
|
||||
input=cameraInit.outputSfm)
|
||||
# TODO: imageMatching
|
||||
featureMatching = graph.addNewNode('FeatureMatching',
|
||||
input=cameraInit.outputSfm,
|
||||
featuresDirectory=featureExtraction.output)
|
||||
structureFromMotion = graph.addNewNode('StructureFromMotion',
|
||||
input=cameraInit.outputSfm,
|
||||
featuresDirectory=featureExtraction.output,
|
||||
matchesDirectory=featureMatching.output)
|
||||
prepareDenseScene = graph.addNewNode('PrepareDenseScene',
|
||||
input=structureFromMotion.output)
|
||||
camPairs = graph.addNewNode('CamPairs',
|
||||
mvsConfig=prepareDenseScene.mvsConfig)
|
||||
depthMap = graph.addNewNode('DepthMap',
|
||||
mvsConfig=camPairs.mvsConfig)
|
||||
depthMapFilter = graph.addNewNode('DepthMapFilter',
|
||||
mvsConfig=depthMap.mvsConfig)
|
||||
meshing = graph.addNewNode('Meshing',
|
||||
mvsConfig=depthMapFilter.mvsConfig)
|
||||
texturing = graph.addNewNode('Texturing',
|
||||
mvsConfig=meshing.mvsConfig)
|
||||
return graph
|
Loading…
Add table
Add a link
Reference in a new issue