Skip to content

Commit

Permalink
Merge pull request #1229 from alicevision/dev/undistordMap
Browse files Browse the repository at this point in the history
[nodes] ExportAnimatedCamera: New option to export undistort maps in EXR format
  • Loading branch information
fabiencastan authored Feb 24, 2021
2 parents 340ab2e + b0487dc commit 7b3523d
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions meshroom/nodes/aliceVision/ExportAnimatedCamera.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,44 @@ class ExportAnimatedCamera(desc.CommandLineNode):
value='',
uid=[0],
),
desc.BoolParam(
name='exportUVMaps',
label='Export UV Maps',
description='Export UV Maps, absolutes values (x,y) of distortion are encoding in UV channels.',
value=True,
uid=[0],
),
desc.BoolParam(
name='exportUndistortedImages',
label='Export Undistorted Images',
description='Export Undistorted Images.',
value=True,
value=False,
uid=[0],
),
desc.ChoiceParam(
name='undistortedImageType',
label='Undistort Image Format',
label='Undistort Image Format ',
description='Image file format to use for undistorted images ("jpg", "png", "tif", "exr (half)").',
value='jpg',
value='exr',
values=['jpg', 'png', 'tif', 'exr'],
exclusive=True,
uid=[0],
enabled= lambda node: node.exportUndistortedImages.value,
),
desc.BoolParam(
name='exportFullROD',
label='Export Full ROD',
description='Export Full ROD.',
value=False,
enabled=lambda node: node.exportUndistortedImages.value and node.undistortedImageType.value == 'exr',
uid=[0],
),
desc.BoolParam(
name='correctPrincipalPoint',
label='Correct Principal Point ',
description='Correct Principal Point.',
value=True,
uid=[0],
),
desc.ChoiceParam(
name='verboseLevel',
Expand Down Expand Up @@ -70,4 +93,5 @@ class ExportAnimatedCamera(desc.CommandLineNode):
group='', # exclude from command line
uid=[],
),
]
]

0 comments on commit 7b3523d

Please sign in to comment.