Skip to content

Commit

Permalink
[nodes] ImageProcessing: add new option to fix non finite pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Sep 11, 2020
1 parent 4e5446a commit 6ad8ed0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions meshroom/multiview.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ def panoramaHdrPipeline(graph):

imageProcessing = graph.addNewNode('ImageProcessing',
input=panoramaCompositing.output,
fixNonFinite=True,
fillHoles=True,
extension='exr')

Expand Down
10 changes: 9 additions & 1 deletion meshroom/nodes/aliceVision/ImageProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ class ImageProcessing(desc.CommandLineNode):
value=False,
uid=[0],
),
desc.BoolParam(
name='fixNonFinite',
label='Fix Non-Finite',
description='Fix non-finite pixels based on neighboring pixels average.',
value=False,
uid=[0],
),
desc.BoolParam(
name='exposureCompensation',
label='Exposure Compensation',
Expand Down Expand Up @@ -120,7 +127,8 @@ class ImageProcessing(desc.CommandLineNode):
desc.BoolParam(
name='fillHoles',
label='Fill Holes',
description='Fill holes based on the alpha channel.',
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,
uid=[0],
),
Expand Down

0 comments on commit 6ad8ed0

Please sign in to comment.