Skip to content

Commit

Permalink
[nodes] KeyframeSelection: Split rescaling parameter in two new ones
Browse files Browse the repository at this point in the history
Split the existing "rescaledWidth" parameter into "rescaledWidthSharpness"
and "rescaledWidthFlow" to allow independent rescaling of the frames used
to compute the sharpness and motion scores.
  • Loading branch information
cbentejac committed Feb 1, 2023
1 parent 4ab9ace commit b62e75d
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions meshroom/nodes/aliceVision/KeyframeSelection.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,21 @@ class KeyframeSelection(desc.AVCommandLineNode):
enabled=lambda node: node.smartSelection.enabled
),
desc.IntParam(
name="rescaledWidth",
label="Rescaled Frame's Width",
description="Width, in pixels, of the frame after a rescale. Aspect ratio will be preserved. No rescale will be performed if equal to 0.",
name="rescaledWidthSharpness",
label="Rescaled Frame's Width For Sharpness",
description="Width, in pixels, of the frame used for the sharpness score computation after a rescale.\n"
"Aspect ratio will be preserved. No rescale will be performed if equal to 0.",
value=720,
range=(0, 4000, 1),
uid=[0],
enabled=lambda node: node.smartSelection.enabled,
advanced=True
),
desc.IntParam(
name="rescaledWidthFlow",
label="Rescaled Frame's Width For Motion",
description="Width, in pixels, of the frame used for the motion score computation after a rescale.\n"
"Aspect ratio will be preserved. No rescale will be performed if equal to 0.",
value=720,
range=(0, 4000, 1),
uid=[0],
Expand Down

0 comments on commit b62e75d

Please sign in to comment.