-
-
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.
[nodes] new IntrinsicsCalibration node
- Loading branch information
Showing
1 changed file
with
57 additions
and
0 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,57 @@ | ||
__version__ = '1.0' | ||
|
||
from meshroom.core import desc | ||
|
||
|
||
class IntrinsicsCalibration(desc.AVCommandLineNode): | ||
commandLine = 'aliceVision_intrinsicsCalibration {allParams}' | ||
size = desc.DynamicNodeSize('input') | ||
|
||
category = 'Other' | ||
documentation = ''' | ||
Estimate the camera intrinsics and extrinsincs on a set of checkerboard images. | ||
''' | ||
|
||
inputs = [ | ||
desc.File( | ||
name="input", | ||
label="Input SfMData", | ||
description="SfMData file.", | ||
value="", | ||
uid=[0], | ||
), | ||
desc.File( | ||
name="checkerboards", | ||
label="Checkerboards Folder", | ||
description="Folder containing checkerboard JSON files.", | ||
value="", | ||
uid=[0], | ||
), | ||
desc.FloatParam( | ||
name="squareSize", | ||
label="Square Size", | ||
description="Checkerboard square width in mm", | ||
value=10., | ||
range=(0.1, 100., 0.1), | ||
uid=[0], | ||
), | ||
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="output", | ||
label="SfMData File", | ||
description="Path to the output SfMData file.", | ||
value=desc.Node.internalFolder + "sfmData.sfm", | ||
uid=[], | ||
) | ||
] |