-
-
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 #1986 from alicevision/mug/undistortionCalibration
[nodes] Distortion calibration
- Loading branch information
Showing
7 changed files
with
380 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
__version__ = "1.0" | ||
|
||
from meshroom.core import desc | ||
|
||
class ApplyCalibration(desc.AVCommandLineNode): | ||
commandLine = 'aliceVision_applyCalibration {allParams}' | ||
size = desc.DynamicNodeSize('input') | ||
|
||
category = 'Utils' | ||
documentation = ''' | ||
Overwrite intrinsics with a calibrated intrinsic. | ||
''' | ||
|
||
inputs = [ | ||
desc.File( | ||
name='input', | ||
label='Input SfMData', | ||
description='SfMData file.', | ||
value='', | ||
uid=[0], | ||
), | ||
desc.File( | ||
name='calibration', | ||
label='Calibration', | ||
description='Calibration SfMData file.', | ||
value='', | ||
uid=[0], | ||
), | ||
] | ||
|
||
outputs = [ | ||
desc.File( | ||
name='output', | ||
label='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
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,49 @@ | ||
__version__ = "1.0" | ||
|
||
from meshroom.core import desc | ||
|
||
class ExportDistortion(desc.AVCommandLineNode): | ||
commandLine = 'aliceVision_exportDistortion {allParams}' | ||
|
||
category = 'Export' | ||
documentation = ''' | ||
Export the distortion model and parameters of cameras in a SfM scene. | ||
''' | ||
|
||
inputs = [ | ||
desc.File( | ||
name='input', | ||
label='Input SfMData', | ||
description='SfMData file.', | ||
value='', | ||
uid=[0], | ||
), | ||
] | ||
|
||
outputs = [ | ||
desc.File( | ||
name='output', | ||
label='Folder', | ||
description='Output folder.', | ||
value=desc.Node.internalFolder, | ||
uid=[], | ||
), | ||
desc.File( | ||
name='distoStMap', | ||
label='Distortion ST Map', | ||
description='Calibrated distortion ST map.', | ||
semantic='image', | ||
value=desc.Node.internalFolder + '<INTRINSIC_ID>_distort.exr', | ||
group='', # do not export on the command line | ||
uid=[], | ||
), | ||
desc.File( | ||
name='undistoStMap', | ||
label='Undistortion ST Map', | ||
description='Calibrated undistortion ST map.', | ||
semantic='image', | ||
value=desc.Node.internalFolder + '<INTRINSIC_ID>_undistort.exr', | ||
group='', # do not export on the command line | ||
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
Oops, something went wrong.