mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[ui] Viewer2D: Add Fisheye Circle display on PanoramaInit node
This commit is contained in:
parent
8929456ae4
commit
042111671a
5 changed files with 129 additions and 65 deletions
|
@ -38,6 +38,38 @@ class PanoramaInit(desc.CommandLineNode):
|
|||
description="Folder(s) in which computed features are stored. (WORKAROUND for valid Tractor graph submission)",
|
||||
group='forDependencyOnly', # not a command line argument
|
||||
),
|
||||
desc.BoolParam(
|
||||
name='useFisheye',
|
||||
label='Full Fisheye',
|
||||
description='To declare a full fisheye panorama setup',
|
||||
value=False,
|
||||
uid=[0],
|
||||
),
|
||||
desc.GroupAttribute(
|
||||
name="fisheyeCenterOffset",
|
||||
label="Fisheye Center",
|
||||
description="Center of the Fisheye circle (XY offset to the center in pixels).",
|
||||
groupDesc=[
|
||||
desc.FloatParam(
|
||||
name="x", label="x", description="",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-1000.0, 10000.0, 1.0)),
|
||||
desc.FloatParam(
|
||||
name="y", label="y", description="",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-1000.0, 10000.0, 1.0)),
|
||||
],
|
||||
),
|
||||
desc.FloatParam(
|
||||
name='fisheyeRadius',
|
||||
label='Radius',
|
||||
description='Fisheye visibillity circle radius (% of image shortest side).',
|
||||
value=96.0,
|
||||
range=(0.0, 150.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name='verboseLevel',
|
||||
label='Verbose Level',
|
||||
|
@ -54,7 +86,7 @@ class PanoramaInit(desc.CommandLineNode):
|
|||
name='outSfMDataFilename',
|
||||
label='Output SfMData File',
|
||||
description='Path to the output sfmdata file',
|
||||
value=desc.Node.internalFolder + 'sfmData.abc',
|
||||
value=desc.Node.internalFolder + 'sfmData.sfm',
|
||||
uid=[],
|
||||
)
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue