From cf81cad95cdf0ef62846565ad98bc082c7c243fa Mon Sep 17 00:00:00 2001 From: demoulinv Date: Thu, 14 Dec 2023 10:51:36 +0100 Subject: [PATCH] [imageProcessing] Add parameters for enabling pixel aspect ratio application --- meshroom/nodes/aliceVision/ImageProcessing.py | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/meshroom/nodes/aliceVision/ImageProcessing.py b/meshroom/nodes/aliceVision/ImageProcessing.py index f5d7b1d5..9d795176 100644 --- a/meshroom/nodes/aliceVision/ImageProcessing.py +++ b/meshroom/nodes/aliceVision/ImageProcessing.py @@ -460,6 +460,30 @@ Convert or apply filtering to the input images. ), ] ), + desc.GroupAttribute( + name="parFilter", + label="Pixel Aspect Ratio", + description="Pixel Aspect Ratio parameters.", + joinChar=":", + groupDesc=[ + desc.BoolParam( + name="parEnabled", + label="Enable", + description="Apply pixel aspect ratio.", + value=False, + uid=[0], + ), + desc.BoolParam( + name="parRowDecimation", + label="Row decimation", + description="If selected, reduce image height by decimating the number of rows.\n" + "Otherwise, increase width by upsampling image columns.", + value=False, + uid=[0], + enabled=lambda node: node.parFilter.parEnabled.value, + ), + ] + ), desc.ChoiceParam( name="outputFormat", label="Output Image Format",