Meshroom/meshroom/nodes/aliceVision/PanoramaSeams.py
Candice Bentéjac 41280dc22a [nodes] M-P: Harmonize and improve labels and descriptions
Use CamelCase for all labels, always end descriptions with periods, and
replace the mixed use of single and double quotes with double quotes
only.
2023-06-16 10:31:42 +02:00

77 lines
2.1 KiB
Python

__version__ = "2.0"
import json
import os
from meshroom.core import desc
class PanoramaSeams(desc.AVCommandLineNode):
commandLine = 'aliceVision_panoramaSeams {allParams}'
size = desc.DynamicNodeSize('input')
cpu = desc.Level.INTENSIVE
ram = desc.Level.INTENSIVE
category = 'Panorama HDR'
documentation = '''
Estimate the seams lines between the inputs to provide an optimal compositing in a further node
'''
inputs = [
desc.File(
name="input",
label="Input SfMData",
description="Input SfMData file.",
value="",
uid=[0],
),
desc.File(
name="warpingFolder",
label="Warping Folder",
description="Panorama warping results.",
value="",
uid=[0],
),
desc.IntParam(
name="maxWidth",
label="Max Resolution",
description="Maximal resolution for the panorama seams estimation.",
value=5000,
range=(0, 100000, 1),
uid=[0],
),
desc.BoolParam(
name="useGraphCut",
label="Use Smart Seams",
description="Use a graphcut algorithm to optimize seams for better transitions between images.",
value=True,
uid=[0],
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
value="info",
values=["fatal", "error", "warning", "info", "debug", "trace"],
exclusive=True,
uid=[],
)
]
outputs = [
desc.File(
name="output",
label="Labels",
description="",
semantic="image",
value=desc.Node.internalFolder + "labels.exr",
uid=[],
),
desc.File(
name="outputSfm",
label="Output SfMData File",
description="Path to the output SfMData file.",
value=desc.Node.internalFolder + "panorama.sfm",
uid=[],
)
]