mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-22 19:17:16 +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
|
||||
|
||||
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):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue