mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-11 15:21:59 +02:00
[nodes] Remove invalidate=True
from descriptions
This commit is contained in:
parent
07b65499ce
commit
41a1b47c43
81 changed files with 8 additions and 1076 deletions
|
@ -52,7 +52,6 @@ Convert or apply filtering to the input images.
|
|||
" - '?' matches one character.\n"
|
||||
" - '*' matches zero character or more.",
|
||||
value="",
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ListAttribute(
|
||||
elementDesc=desc.File(
|
||||
|
@ -60,7 +59,6 @@ Convert or apply filtering to the input images.
|
|||
label="Input Folder",
|
||||
description="Folder containing images.",
|
||||
value="",
|
||||
invalidate=True,
|
||||
),
|
||||
name="inputFolders",
|
||||
label="Input Images Folders",
|
||||
|
@ -72,7 +70,6 @@ Convert or apply filtering to the input images.
|
|||
label="Metadata Folder",
|
||||
description="Specific folder containing images with metadata.",
|
||||
value="",
|
||||
invalidate=True,
|
||||
),
|
||||
name="metadataFolders",
|
||||
label="Input Metadata Folders",
|
||||
|
@ -86,49 +83,42 @@ Convert or apply filtering to the input images.
|
|||
value="",
|
||||
values=["", "exr", "jpg", "tiff", "png"],
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="reconstructedViewsOnly",
|
||||
label="Only Reconstructed Views",
|
||||
description="Only process reconstructed views.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="keepImageFilename",
|
||||
label="Keep Image Name",
|
||||
description="Keep the original image name instead of the view name.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="reorient",
|
||||
label="Automatic Reorientation",
|
||||
description="Automatic image reorientation.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="fixNonFinite",
|
||||
label="Fix Non-Finite",
|
||||
description="Fix non-finite pixels based on neighboring pixels average.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="exposureCompensation",
|
||||
label="Exposure Compensation",
|
||||
description="Exposure compensation (only valid for SfMData).",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="rawAutoBright",
|
||||
label="RAW Auto Bright",
|
||||
description="Enable automatic exposure adjustment for RAW images.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="rawExposureAdjust",
|
||||
|
@ -136,7 +126,6 @@ Convert or apply filtering to the input images.
|
|||
description="Manual exposure adjustment in fstops for RAW images.",
|
||||
value=0.0,
|
||||
range=(-2.0, 3.0, 0.125),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.GroupAttribute(
|
||||
name="lensCorrection",
|
||||
|
@ -149,14 +138,12 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Enable lens correction.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="geometry",
|
||||
label="Geometry",
|
||||
description="Geometry correction if a model is available in the SfMData.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.lensCorrection.lensCorrectionEnabled.value,
|
||||
),
|
||||
desc.BoolParam(
|
||||
|
@ -164,7 +151,6 @@ Convert or apply filtering to the input images.
|
|||
label="Vignetting",
|
||||
description="Vignetting correction if the model parameters are available in the metadata.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.lensCorrection.lensCorrectionEnabled.value,
|
||||
),
|
||||
desc.BoolParam(
|
||||
|
@ -172,7 +158,6 @@ Convert or apply filtering to the input images.
|
|||
label="Chromatic Aberration",
|
||||
description="Chromatic aberration (fringing) correction if the model parameters are available in the metadata.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.lensCorrection.lensCorrectionEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -183,7 +168,6 @@ Convert or apply filtering to the input images.
|
|||
description="Scale factor.",
|
||||
value=1.0,
|
||||
range=(0.0, 1.0, 0.01),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="maxWidth",
|
||||
|
@ -191,7 +175,6 @@ Convert or apply filtering to the input images.
|
|||
description="Maximum width of the output images (0: ignored).",
|
||||
value=0,
|
||||
range=(0, 10000, 1),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="maxHeight",
|
||||
|
@ -199,7 +182,6 @@ Convert or apply filtering to the input images.
|
|||
description="Maximum height of the output images (0: ignored).",
|
||||
value=0,
|
||||
range=(0, 10000, 1),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="contrast",
|
||||
|
@ -207,7 +189,6 @@ Convert or apply filtering to the input images.
|
|||
description="Contrast.",
|
||||
value=1.0,
|
||||
range=(0.0, 100.0, 0.1),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="medianFilter",
|
||||
|
@ -215,7 +196,6 @@ Convert or apply filtering to the input images.
|
|||
description="Median filter.",
|
||||
value=0,
|
||||
range=(0, 10, 1),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="fillHoles",
|
||||
|
@ -223,7 +203,6 @@ Convert or apply filtering to the input images.
|
|||
description="Fill holes based on the alpha channel.\n"
|
||||
"Note: It will enable 'fixNonFinite', as it is required for the image pyramid construction used to fill holes.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.GroupAttribute(
|
||||
name="sharpenFilter",
|
||||
|
@ -236,7 +215,6 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Use sharpen filter.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="width",
|
||||
|
@ -244,7 +222,6 @@ Convert or apply filtering to the input images.
|
|||
description="Sharpening width.",
|
||||
value=3,
|
||||
range=(1, 9, 2),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.sharpenFilter.sharpenFilterEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -253,7 +230,6 @@ Convert or apply filtering to the input images.
|
|||
description="Sharpening contrast.",
|
||||
value=1.0,
|
||||
range=(0.0, 100.0, 0.1),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.sharpenFilter.sharpenFilterEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -262,7 +238,6 @@ Convert or apply filtering to the input images.
|
|||
description="Sharpening threshold.",
|
||||
value=0.0,
|
||||
range=(0.0, 1.0, 0.01),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.sharpenFilter.sharpenFilterEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -278,7 +253,6 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Use bilateral filter.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="bilateralFilterDistance",
|
||||
|
@ -287,7 +261,6 @@ Convert or apply filtering to the input images.
|
|||
"Could be very slow for large filters, so it is recommended to use 5.",
|
||||
value=0,
|
||||
range=(0, 9, 1),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.bilateralFilter.bilateralFilterEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -296,7 +269,6 @@ Convert or apply filtering to the input images.
|
|||
description="Bilateral filter sigma in the coordinate space.",
|
||||
value=0.0,
|
||||
range=(0.0, 150.0, 0.01),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.bilateralFilter.bilateralFilterEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -305,7 +277,6 @@ Convert or apply filtering to the input images.
|
|||
description="Bilateral filter sigma in the color space.",
|
||||
value=0.0,
|
||||
range=(0.0, 150.0, 0.01),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.bilateralFilter.bilateralFilterEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -321,7 +292,6 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Use Contrast Limited Adaptive Histogram Equalization (CLAHE) filter.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="claheClipLimit",
|
||||
|
@ -329,7 +299,6 @@ Convert or apply filtering to the input images.
|
|||
description="Threshold for contrast limiting.",
|
||||
value=4.0,
|
||||
range=(0.0, 8.0, 1.0),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.claheFilter.claheEnabled.value,
|
||||
),
|
||||
desc.IntParam(
|
||||
|
@ -339,7 +308,6 @@ Convert or apply filtering to the input images.
|
|||
"Input image will be divided into equally sized rectangular tiles.",
|
||||
value=8,
|
||||
range=(4, 64, 4),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.claheFilter.claheEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -355,7 +323,6 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Add noise.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="noiseMethod",
|
||||
|
@ -367,7 +334,6 @@ Convert or apply filtering to the input images.
|
|||
value="uniform",
|
||||
values=["uniform", "gaussian", "salt"],
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.noiseFilter.noiseEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -379,7 +345,6 @@ Convert or apply filtering to the input images.
|
|||
" - salt: the value of the specified portion of pixels.",
|
||||
value=0.0,
|
||||
range=(0.0, 1.0, 0.0001),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.noiseFilter.noiseEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -391,7 +356,6 @@ Convert or apply filtering to the input images.
|
|||
" - salt: the portion of pixels to set to a specified value.",
|
||||
value=1.0,
|
||||
range=(0.0, 1.0, 0.0001),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.noiseFilter.noiseEnabled.value,
|
||||
),
|
||||
desc.BoolParam(
|
||||
|
@ -400,7 +364,6 @@ Convert or apply filtering to the input images.
|
|||
description="If selected, a single noise value will be applied to all channels.\n"
|
||||
"Otherwise, a separate noise value will be computed for each channel.",
|
||||
value=True,
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.noiseFilter.noiseEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -417,7 +380,6 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Use Non-Local Mean Denoising from OpenCV to denoise images.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="nlmFilterH",
|
||||
|
@ -427,7 +389,6 @@ Convert or apply filtering to the input images.
|
|||
"smaller H value preserves details but also preserves some noise.",
|
||||
value=5.0,
|
||||
range=(1.0, 1000.0, 0.01),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.nlmFilter.nlmFilterEnabled.value,
|
||||
),
|
||||
desc.FloatParam(
|
||||
|
@ -438,7 +399,6 @@ Convert or apply filtering to the input images.
|
|||
"smaller HColor value preserves details but also preserves some noise.",
|
||||
value=10.0,
|
||||
range=(0.0, 1000.0, 0.01),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.nlmFilter.nlmFilterEnabled.value,
|
||||
),
|
||||
desc.IntParam(
|
||||
|
@ -447,7 +407,6 @@ Convert or apply filtering to the input images.
|
|||
description="Size in pixels of the template patch that is used to compute weights. Should be odd.",
|
||||
value=7,
|
||||
range=(1, 101, 2),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.nlmFilter.nlmFilterEnabled.value,
|
||||
),
|
||||
desc.IntParam(
|
||||
|
@ -457,7 +416,6 @@ Convert or apply filtering to the input images.
|
|||
"Should be odd. Affect performance linearly: greater searchWindowsSize - greater denoising time.",
|
||||
value=21,
|
||||
range=(1, 1001, 2),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.nlmFilter.nlmFilterEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -473,7 +431,6 @@ Convert or apply filtering to the input images.
|
|||
label="Enable",
|
||||
description="Apply pixel aspect ratio.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="parRowDecimation",
|
||||
|
@ -481,7 +438,6 @@ Convert or apply filtering to the input images.
|
|||
description="If selected, reduce image height by decimating the number of rows.\n"
|
||||
"Otherwise, increase width by upsampling image columns.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.parFilter.parEnabled.value,
|
||||
),
|
||||
],
|
||||
|
@ -493,7 +449,6 @@ Convert or apply filtering to the input images.
|
|||
value="rgba",
|
||||
values=["rgba", "rgb", "grayscale"],
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="inputColorSpace",
|
||||
|
@ -502,7 +457,6 @@ Convert or apply filtering to the input images.
|
|||
values=COLORSPACES,
|
||||
value="AUTO",
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="outputColorSpace",
|
||||
|
@ -511,7 +465,6 @@ Convert or apply filtering to the input images.
|
|||
values=COLORSPACES,
|
||||
value="AUTO",
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="workingColorSpace",
|
||||
|
@ -520,7 +473,6 @@ Convert or apply filtering to the input images.
|
|||
values=COLORSPACES,
|
||||
value="Linear",
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
enabled=lambda node: not node.applyDcpMetadata.value,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
|
@ -530,14 +482,12 @@ Convert or apply filtering to the input images.
|
|||
values=RAW_COLOR_INTERPRETATION,
|
||||
value="DCPLinearProcessing" if os.environ.get("ALICEVISION_COLOR_PROFILE_DB", "") else "LibRawWhiteBalancing",
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.BoolParam(
|
||||
name="applyDcpMetadata",
|
||||
label="Apply DCP Metadata",
|
||||
description="If the image contains some DCP metadata, then generate a DCP profile from them and apply it to the image content.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.File(
|
||||
name="colorProfileDatabase",
|
||||
|
@ -552,7 +502,6 @@ Convert or apply filtering to the input images.
|
|||
label="Error On Missing DCP Color Profile",
|
||||
description="If a color profile database is specified but no color profile is found for at least one image, then an error is thrown.",
|
||||
value=True,
|
||||
invalidate=True,
|
||||
enabled=lambda node: (node.rawColorInterpretation.value == "DCPLinearProcessing") or (node.rawColorInterpretation.value == "DCPMetadata"),
|
||||
),
|
||||
desc.BoolParam(
|
||||
|
@ -560,7 +509,6 @@ Convert or apply filtering to the input images.
|
|||
label="Use DCP Color Matrix Only",
|
||||
description="Use only the Color Matrix information from the DCP and ignore the Forward Matrix.",
|
||||
value=True,
|
||||
invalidate=True,
|
||||
enabled=lambda node: (node.rawColorInterpretation.value == "DCPLinearProcessing") or (node.rawColorInterpretation.value == "DCPMetadata"),
|
||||
),
|
||||
desc.BoolParam(
|
||||
|
@ -568,7 +516,6 @@ Convert or apply filtering to the input images.
|
|||
label="WB After Demosaicing",
|
||||
description="Do White Balance after demosaicing, just before DCP profile application.",
|
||||
value=False,
|
||||
invalidate=True,
|
||||
enabled=lambda node: (node.rawColorInterpretation.value == "DCPLinearProcessing") or (node.rawColorInterpretation.value == "DCPMetadata"),
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
|
@ -578,7 +525,6 @@ Convert or apply filtering to the input images.
|
|||
value="AHD",
|
||||
values=["linear", "VNG", "PPG", "AHD", "DCB", "AHD-Mod", "AFD", "VCD", "Mixed", "LMMSE", "AMaZE", "DHT", "AAHD", "none"],
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="highlightMode",
|
||||
|
@ -591,7 +537,6 @@ Convert or apply filtering to the input images.
|
|||
value=0,
|
||||
values=[0, 1, 2, 3, 4, 5, 6, 7, 8, 9],
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.FloatParam(
|
||||
name="correlatedColorTemperature",
|
||||
|
@ -600,7 +545,6 @@ Convert or apply filtering to the input images.
|
|||
"A negative or null value indicates that the metadata information will be used.",
|
||||
value=-1.0,
|
||||
range=(-1.0, 10000.0, 1.0),
|
||||
invalidate=True,
|
||||
),
|
||||
desc.File(
|
||||
name="lensCorrectionProfileInfo",
|
||||
|
@ -614,7 +558,6 @@ Convert or apply filtering to the input images.
|
|||
label="LCP Generic Search",
|
||||
description="The lens name and camera maker are used to match the LCP database, but the camera model is ignored.",
|
||||
value=True,
|
||||
invalidate=True,
|
||||
advanced=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
|
@ -628,7 +571,6 @@ Convert or apply filtering to the input images.
|
|||
values=EXR_STORAGE_DATA_TYPE,
|
||||
value="float",
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="exrCompressionMethod",
|
||||
|
@ -637,7 +579,6 @@ Convert or apply filtering to the input images.
|
|||
value="auto",
|
||||
values=["none", "auto", "rle", "zip", "zips", "piz", "pxr24", "b44", "b44a", "dwaa", "dwab"],
|
||||
exclusive=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="exrCompressionLevel",
|
||||
|
@ -647,7 +588,6 @@ Convert or apply filtering to the input images.
|
|||
"A value of 0 will be ignored, and the default value for the selected method will be used.",
|
||||
value=0,
|
||||
range=(0, 500, 1),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.exrCompressionMethod.value in ["dwaa", "dwab", "zip", "zips"],
|
||||
),
|
||||
desc.BoolParam(
|
||||
|
@ -655,7 +595,6 @@ Convert or apply filtering to the input images.
|
|||
label="JPEG Compress",
|
||||
description="Enable JPEG compression.",
|
||||
value=True,
|
||||
invalidate=True,
|
||||
),
|
||||
desc.IntParam(
|
||||
name="jpegQuality",
|
||||
|
@ -663,7 +602,6 @@ Convert or apply filtering to the input images.
|
|||
description="JPEG images quality after compression.",
|
||||
value=90,
|
||||
range=(0, 100, 1),
|
||||
invalidate=True,
|
||||
enabled=lambda node: node.jpegCompress.value,
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
|
@ -673,7 +611,6 @@ Convert or apply filtering to the input images.
|
|||
values=VERBOSE_LEVEL,
|
||||
value="info",
|
||||
exclusive=True,
|
||||
invalidate=False,
|
||||
),
|
||||
]
|
||||
|
||||
|
@ -683,7 +620,6 @@ Convert or apply filtering to the input images.
|
|||
label="SfMData",
|
||||
description="Output SfMData file.",
|
||||
value=lambda attr: (desc.Node.internalFolder + os.path.basename(attr.node.input.value)) if (os.path.splitext(attr.node.input.value)[1] in [".abc", ".sfm"]) else "",
|
||||
invalidate=False,
|
||||
group="", # do not export on the command line
|
||||
),
|
||||
desc.File(
|
||||
|
@ -691,7 +627,6 @@ Convert or apply filtering to the input images.
|
|||
label="Folder",
|
||||
description="Output images folder.",
|
||||
value=desc.Node.internalFolder,
|
||||
invalidate=False,
|
||||
),
|
||||
desc.File(
|
||||
name="outputImages",
|
||||
|
@ -700,6 +635,5 @@ Convert or apply filtering to the input images.
|
|||
semantic="image",
|
||||
value=outputImagesValueFunct,
|
||||
group="", # do not export on the command line
|
||||
invalidate=False,
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue