Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[nodes] ExportAnimatedCamera: New option to export undistort maps in EXR format #1229

Merged
merged 3 commits into from
Feb 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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=[],
),
]
]