mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 03:27:34 +02:00
[ui] new pipeline hdriFisheye
Setup the 2 fisheye options on LDRToHDR and PanoramaInit nodes.
This commit is contained in:
parent
e88651ba01
commit
7b8405c5f6
3 changed files with 17 additions and 0 deletions
|
@ -117,6 +117,16 @@ def hdri(inputImages=list(), inputViewpoints=list(), inputIntrinsics=list(), out
|
||||||
|
|
||||||
return graph
|
return graph
|
||||||
|
|
||||||
|
def hdriFisheye(inputImages=list(), inputViewpoints=list(), inputIntrinsics=list(), output='', graph=None):
|
||||||
|
if not graph:
|
||||||
|
graph = Graph('HDRI-Fisheye')
|
||||||
|
with GraphModification(graph):
|
||||||
|
hdri(inputImages, inputViewpoints, inputIntrinsics, output, graph)
|
||||||
|
for ldrToHdr in graph.nodesByType("LDRToHDR"):
|
||||||
|
ldrToHdr.attribute("fisheyeLens").value = True
|
||||||
|
for panoramaInit in graph.nodesByType("PanoramaInit"):
|
||||||
|
panoramaInit.attribute("useFisheye").value = True
|
||||||
|
return graph
|
||||||
|
|
||||||
def hdriPipeline(graph):
|
def hdriPipeline(graph):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -343,6 +343,10 @@ ApplicationWindow {
|
||||||
text: "HDRI"
|
text: "HDRI"
|
||||||
onTriggered: ensureSaved(function() { _reconstruction.new("hdri") })
|
onTriggered: ensureSaved(function() { _reconstruction.new("hdri") })
|
||||||
}
|
}
|
||||||
|
Action {
|
||||||
|
text: "HDRI Fisheye"
|
||||||
|
onTriggered: ensureSaved(function() { _reconstruction.new("hdriFisheye") })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
id: openActionItem
|
id: openActionItem
|
||||||
|
|
|
@ -426,6 +426,9 @@ class Reconstruction(UIGraph):
|
||||||
elif p.lower() == "hdri":
|
elif p.lower() == "hdri":
|
||||||
# default hdri pipeline
|
# default hdri pipeline
|
||||||
self.setGraph(multiview.hdri())
|
self.setGraph(multiview.hdri())
|
||||||
|
elif p.lower() == "hdrifisheye":
|
||||||
|
# default hdri pipeline
|
||||||
|
self.setGraph(multiview.hdriFisheye())
|
||||||
else:
|
else:
|
||||||
# use the user-provided default photogrammetry project file
|
# use the user-provided default photogrammetry project file
|
||||||
self.load(p, setupProjectFile=False)
|
self.load(p, setupProjectFile=False)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue