mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
[nodes] Align FloatParams' and IntParams' ranges with their params' type
This commit is contained in:
parent
545f3a7218
commit
e7290313bf
9 changed files with 29 additions and 29 deletions
|
@ -34,8 +34,8 @@ Intrinsic = [
|
|||
"So this value is used to limit the range of possible values in the optimization. \n"
|
||||
"If you put -1, this value will not be used and the focal length will not be bounded.",
|
||||
value=-1.0, uid=[0], range=None),
|
||||
desc.FloatParam(name="focalLength", label="Focal Length", description="Known/Calibrated Focal Length (in mm)", value=1000.0, uid=[0], range=(0, 10000, 1)),
|
||||
desc.FloatParam(name="pixelRatio", label="pixel Ratio", description="ratio between pixel width and pixel height", value=1.0, uid=[0], range=(0, 10, 0.1)),
|
||||
desc.FloatParam(name="focalLength", label="Focal Length", description="Known/Calibrated Focal Length (in mm)", value=1000.0, uid=[0], range=(0.0, 10000.0, 1.0)),
|
||||
desc.FloatParam(name="pixelRatio", label="pixel Ratio", description="ratio between pixel width and pixel height", value=1.0, uid=[0], range=(0.0, 10.0, 0.1)),
|
||||
desc.BoolParam(name='pixelRatioLocked', label='Pixel ratio Locked',
|
||||
description='the pixelRatio value is locked for estimation',
|
||||
value=True, uid=[0]),
|
||||
|
@ -53,12 +53,12 @@ Intrinsic = [
|
|||
value="", values=['', 'pinhole', 'radial1', 'radial3', 'brown', 'fisheye4', 'equidistant_r3', '3deanamorphic4', '3declassicld', '3deradial4'], exclusive=True, uid=[0]),
|
||||
desc.IntParam(name="width", label="Width", description="Image Width", value=0, uid=[0], range=(0, 10000, 1)),
|
||||
desc.IntParam(name="height", label="Height", description="Image Height", value=0, uid=[0], range=(0, 10000, 1)),
|
||||
desc.FloatParam(name="sensorWidth", label="Sensor Width", description="Sensor Width (mm)", value=36.0, uid=[0], range=(0, 1000, 1)),
|
||||
desc.FloatParam(name="sensorHeight", label="Sensor Height", description="Sensor Height (mm)", value=24.0, uid=[0], range=(0, 1000, 1)),
|
||||
desc.FloatParam(name="sensorWidth", label="Sensor Width", description="Sensor Width (mm)", value=36.0, uid=[0], range=(0.0, 1000.0, 1.0)),
|
||||
desc.FloatParam(name="sensorHeight", label="Sensor Height", description="Sensor Height (mm)", value=24.0, uid=[0], range=(0.0, 1000.0, 1.0)),
|
||||
desc.StringParam(name="serialNumber", label="Serial Number", description="Device Serial Number (Camera UID and Lens UID combined)", value="", uid=[0]),
|
||||
desc.GroupAttribute(name="principalPoint", label="Principal Point", description="Position of the Optical Center in the Image (i.e. the sensor surface).", groupDesc=[
|
||||
desc.FloatParam(name="x", label="x", description="", value=0.0, uid=[0], range=(0, 10000, 1)),
|
||||
desc.FloatParam(name="y", label="y", description="", value=0.0, uid=[0], range=(0, 10000, 1)),
|
||||
desc.FloatParam(name="x", label="x", description="", value=0.0, uid=[0], range=(0.0, 10000.0, 1.0)),
|
||||
desc.FloatParam(name="y", label="y", description="", value=0.0, uid=[0], range=(0.0, 10000.0, 1.0)),
|
||||
]),
|
||||
|
||||
desc.ChoiceParam(name="initializationMode", label="Initialization Mode",
|
||||
|
@ -168,7 +168,7 @@ The metadata needed are:
|
|||
label='Default Field Of View',
|
||||
description='Empirical value for the field of view in degree.',
|
||||
value=45.0,
|
||||
range=(0, 180.0, 1),
|
||||
range=(0.0, 180.0, 1.0),
|
||||
uid=[],
|
||||
advanced=True,
|
||||
),
|
||||
|
|
|
@ -59,7 +59,7 @@ Use a downscale factor of one (full-resolution) only if the quality of the input
|
|||
label='Max View Angle',
|
||||
description='Maximum angle between two views.',
|
||||
value=70.0,
|
||||
range=(10.0, 120.0, 1),
|
||||
range=(10.0, 120.0, 1.0),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
|
|
@ -45,7 +45,7 @@ This allows to filter unstable points before starting the fusion of all depth ma
|
|||
label='Max View Angle',
|
||||
description='Maximum angle between two views.',
|
||||
value=70.0,
|
||||
range=(10.0, 120.0, 1),
|
||||
range=(10.0, 120.0, 1.0),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
|
|
@ -43,7 +43,7 @@ class ImageMasking(desc.CommandLineNode):
|
|||
description='Hue value to isolate in [0,1] range. 0 = red, 0.33 = green, 0.66 = blue, 1 = red.',
|
||||
semantic='color/hue',
|
||||
value=0.33,
|
||||
range=(0, 1, 0.01),
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0]
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -51,7 +51,7 @@ class ImageMasking(desc.CommandLineNode):
|
|||
label='Tolerance',
|
||||
description='Tolerance around the hue value to isolate.',
|
||||
value=0.1,
|
||||
range=(0, 1, 0.01),
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0]
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -59,7 +59,7 @@ class ImageMasking(desc.CommandLineNode):
|
|||
label='Min Saturation',
|
||||
description='Hue is meaningless if saturation is low. Do not mask pixels below this threshold.',
|
||||
value=0.3,
|
||||
range=(0, 1, 0.01),
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0]
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -67,7 +67,7 @@ class ImageMasking(desc.CommandLineNode):
|
|||
label='Max Saturation',
|
||||
description='Do not mask pixels above this threshold. It might be useful to mask white/black pixels.',
|
||||
value=1.0,
|
||||
range=(0, 1, 0.01),
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0]
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -75,7 +75,7 @@ class ImageMasking(desc.CommandLineNode):
|
|||
label='Min Value',
|
||||
description='Hue is meaningless if value is low. Do not mask pixels below this threshold.',
|
||||
value=0.3,
|
||||
range=(0, 1, 0.01),
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0]
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -83,7 +83,7 @@ class ImageMasking(desc.CommandLineNode):
|
|||
label='Max Value',
|
||||
description='Do not mask pixels above this threshold. It might be useful to mask white/black pixels.',
|
||||
value=1.0,
|
||||
range=(0, 1, 0.01),
|
||||
range=(0.0, 1.0, 0.01),
|
||||
uid=[0]
|
||||
),
|
||||
]),
|
||||
|
|
|
@ -84,7 +84,7 @@ You can extract frames at regular interval by configuring only the min/maxFrameS
|
|||
label="Frame Offset",
|
||||
description="Frame offset.",
|
||||
value=0,
|
||||
range=(0, 100.0, 1.0),
|
||||
range=(0, 100, 1),
|
||||
uid=[0],
|
||||
),
|
||||
name="frameOffsets",
|
||||
|
|
|
@ -94,19 +94,19 @@ A Graph Cut Max-Flow is applied to optimally cut the volume. This cut represents
|
|||
name="x", label="x", description="Euler X Rotation",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-90.0, 90.0, 1)
|
||||
range=(-90.0, 90.0, 1.0)
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="y", label="y", description="Euler Y Rotation",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-180.0, 180.0, 1)
|
||||
range=(-180.0, 180.0, 1.0)
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="z", label="z", description="Euler Z Rotation",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-180.0, 180.0, 1)
|
||||
range=(-180.0, 180.0, 1.0)
|
||||
)
|
||||
],
|
||||
joinChar=","
|
||||
|
@ -164,7 +164,7 @@ A Graph Cut Max-Flow is applied to optimally cut the volume. This cut represents
|
|||
label='Min Observations Angle For SfM Space Estimation',
|
||||
description='Minimum angle between two observations for SfM space estimation.',
|
||||
value=10.0,
|
||||
range=(0, 120, 1),
|
||||
range=(0.0, 120.0, 1.0),
|
||||
uid=[0],
|
||||
enabled=lambda node: node.estimateSpaceFromSfM.value,
|
||||
),
|
||||
|
|
|
@ -99,19 +99,19 @@ The transformation can be based on:
|
|||
name="x", label="x", description="Euler X Rotation",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-90.0, 90.0, 1)
|
||||
range=(-90.0, 90.0, 1.0)
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="y", label="y", description="Euler Y Rotation",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-180.0, 180.0, 1)
|
||||
range=(-180.0, 180.0, 1.0)
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="z", label="z", description="Euler Z Rotation",
|
||||
value=0.0,
|
||||
uid=[0],
|
||||
range=(-180.0, 180.0, 1)
|
||||
range=(-180.0, 180.0, 1.0)
|
||||
)
|
||||
],
|
||||
joinChar=","
|
||||
|
|
|
@ -213,7 +213,7 @@ It iterates like that, adding cameras and triangulating new 2D features into 3D
|
|||
label='Min Angle For Triangulation',
|
||||
description='Minimum angle for triangulation.',
|
||||
value=3.0,
|
||||
range=(0.1, 10, 0.1),
|
||||
range=(0.1, 10.0, 0.1),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
@ -222,7 +222,7 @@ It iterates like that, adding cameras and triangulating new 2D features into 3D
|
|||
label='Min Angle For Landmark',
|
||||
description='Minimum angle for landmark.',
|
||||
value=2.0,
|
||||
range=(0.1, 10, 0.1),
|
||||
range=(0.1, 10.0, 0.1),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
@ -231,7 +231,7 @@ It iterates like that, adding cameras and triangulating new 2D features into 3D
|
|||
label='Max Reprojection Error',
|
||||
description='Maximum reprojection error.',
|
||||
value=4.0,
|
||||
range=(0.1, 10, 0.1),
|
||||
range=(0.1, 10.0, 0.1),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
@ -240,7 +240,7 @@ It iterates like that, adding cameras and triangulating new 2D features into 3D
|
|||
label='Min Angle Initial Pair',
|
||||
description='Minimum angle for the initial pair.',
|
||||
value=5.0,
|
||||
range=(0.1, 10, 0.1),
|
||||
range=(0.1, 10.0, 0.1),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
@ -249,7 +249,7 @@ It iterates like that, adding cameras and triangulating new 2D features into 3D
|
|||
label='Max Angle Initial Pair',
|
||||
description='Maximum angle for the initial pair.',
|
||||
value=40.0,
|
||||
range=(0.1, 60, 0.1),
|
||||
range=(0.1, 60.0, 0.1),
|
||||
uid=[0],
|
||||
advanced=True,
|
||||
),
|
||||
|
|
|
@ -80,7 +80,7 @@ class RenderAnimatedCamera(desc.CommandLineNode):
|
|||
label='Particle Size',
|
||||
description='''Scale of particles used to show the point cloud''',
|
||||
value=0.1,
|
||||
range=(0.01, 1, 0.01),
|
||||
range=(0.01, 1.0, 0.01),
|
||||
uid=[0],
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
|
|
Loading…
Add table
Reference in a new issue