mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[ui] remove colorcheckerdetection pipeline
This commit is contained in:
parent
a014bcf3d1
commit
e3f685ff08
2 changed files with 0 additions and 60 deletions
|
@ -468,59 +468,3 @@ def sfmAugmentation(graph, sourceSfm, withMVS=False):
|
||||||
mvsNodes = mvsPipeline(graph, structureFromMotion)
|
mvsNodes = mvsPipeline(graph, structureFromMotion)
|
||||||
|
|
||||||
return sfmNodes, mvsNodes
|
return sfmNodes, mvsNodes
|
||||||
|
|
||||||
|
|
||||||
def colorCheckerDetection(inputImages=None, inputViewpoints=None, inputIntrinsics=None, output='', graph=None):
|
|
||||||
"""
|
|
||||||
Create a new Graph with a Color Checker Detection pipeline.
|
|
||||||
|
|
||||||
Args:
|
|
||||||
inputImages (list of str, optional): list of image file paths
|
|
||||||
inputViewpoints (list of Viewpoint, optional): list of Viewpoints
|
|
||||||
output (str, optional): the path to export reconstructed model to
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
Graph: the created graph
|
|
||||||
"""
|
|
||||||
if not graph:
|
|
||||||
graph = Graph('ColorCheckerDetection')
|
|
||||||
with GraphModification(graph):
|
|
||||||
nodes = colorCheckerDetectionPipeline(graph)
|
|
||||||
cameraInit = nodes[0]
|
|
||||||
if inputImages:
|
|
||||||
cameraInit.viewpoints.extend([{'path': image} for image in inputImages])
|
|
||||||
if inputViewpoints:
|
|
||||||
cameraInit.viewpoints.extend(inputViewpoints)
|
|
||||||
if inputIntrinsics:
|
|
||||||
cameraInit.intrinsics.extend(inputIntrinsics)
|
|
||||||
|
|
||||||
if output:
|
|
||||||
colorCheckerDetection = nodes[-1]
|
|
||||||
graph.addNewNode('Publish', output=output, inputFiles=[colorCheckerDetection.output])
|
|
||||||
|
|
||||||
return graph
|
|
||||||
|
|
||||||
|
|
||||||
def colorCheckerDetectionPipeline(graph):
|
|
||||||
"""
|
|
||||||
Instantiate a Color Checker Detection pipeline inside 'graph'.
|
|
||||||
Args:
|
|
||||||
graph (Graph/UIGraph): the graph in which nodes should be instantiated
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
list of Node: the created nodes
|
|
||||||
"""
|
|
||||||
cameraInit = graph.addNewNode('CameraInit')
|
|
||||||
|
|
||||||
colorCheckerDetection = graph.addNewNode('ColorCheckerDetection',
|
|
||||||
input=cameraInit.output)
|
|
||||||
|
|
||||||
colorCheckerCorrection = graph.addNewNode('ColorCheckerCorrection',
|
|
||||||
input=colorCheckerDetection.input,
|
|
||||||
inputData=colorCheckerDetection.outputData)
|
|
||||||
|
|
||||||
return [
|
|
||||||
cameraInit,
|
|
||||||
colorCheckerDetection,
|
|
||||||
colorCheckerCorrection,
|
|
||||||
]
|
|
||||||
|
|
|
@ -420,10 +420,6 @@ ApplicationWindow {
|
||||||
text: "Panorama Fisheye HDR"
|
text: "Panorama Fisheye HDR"
|
||||||
onTriggered: ensureSaved(function() { _reconstruction.new("panoramafisheyehdr") })
|
onTriggered: ensureSaved(function() { _reconstruction.new("panoramafisheyehdr") })
|
||||||
}
|
}
|
||||||
Action {
|
|
||||||
text: "Color Checker Detection"
|
|
||||||
onTriggered: ensureSaved(function() { _reconstruction.new("colorcheckerdetection") })
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
id: openActionItem
|
id: openActionItem
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue