-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1403 from alicevision/dev/distortionCalibration
New lens distortion calibration node
- Loading branch information
Showing
4 changed files
with
85 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
__version__ = '2.0' | ||
|
||
from meshroom.core import desc | ||
|
||
|
||
class DistortionCalibration(desc.CommandLineNode): | ||
commandLine = 'aliceVision_distortionCalibration {allParams}' | ||
size = desc.DynamicNodeSize('input') | ||
|
||
documentation = ''' | ||
Calibration of a camera/lens couple distortion using a full screen checkerboard | ||
''' | ||
|
||
inputs = [ | ||
desc.File( | ||
name='input', | ||
label='SfmData', | ||
description='SfmData File', | ||
value='', | ||
uid=[0], | ||
), | ||
desc.ListAttribute( | ||
elementDesc=desc.File( | ||
name='lensGridImage', | ||
label='Lens Grid Image', | ||
description='', | ||
value='', | ||
uid=[0], | ||
), | ||
name='lensGrid', | ||
label='Lens Grid Images', | ||
description='Lens grid images to estimate the optical distortions.', | ||
), | ||
desc.ChoiceParam( | ||
name='verboseLevel', | ||
label='Verbose Level', | ||
description='Verbosity level (fatal, error, warning, info, debug, trace).', | ||
value='info', | ||
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'], | ||
exclusive=True, | ||
uid=[], | ||
), | ||
] | ||
|
||
outputs = [ | ||
desc.File( | ||
name='outSfMData', | ||
label='Output SfmData File', | ||
description='Path to the output sfmData file', | ||
value=desc.Node.internalFolder + 'sfmData.sfm', | ||
uid=[], | ||
) | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters