|
| 1 | +__version__ = "1.0" |
| 2 | + |
| 3 | +from meshroom.core import desc |
| 4 | +from meshroom.core.utils import VERBOSE_LEVEL |
| 5 | + |
| 6 | + |
| 7 | +class GlobalRotationEstimating(desc.AVCommandLineNode): |
| 8 | + commandLine = "aliceVision_globalRotationEstimating {allParams}" |
| 9 | + |
| 10 | + category = "Sparse Reconstruction" |
| 11 | + documentation = ''' |
| 12 | +Estimate the global rotation given tracks. |
| 13 | +''' |
| 14 | + |
| 15 | + inputs = [ |
| 16 | + desc.File( |
| 17 | + name="input", |
| 18 | + label="SfMData", |
| 19 | + description="SfMData file.", |
| 20 | + value="", |
| 21 | + ), |
| 22 | + desc.File( |
| 23 | + name="tracksFilename", |
| 24 | + label="Tracks File", |
| 25 | + description="Tracks file.", |
| 26 | + value="", |
| 27 | + ), |
| 28 | + desc.File( |
| 29 | + name="pairs", |
| 30 | + label="Pairs File", |
| 31 | + description="Information on pairs.", |
| 32 | + value="", |
| 33 | + ), |
| 34 | + desc.ChoiceParam( |
| 35 | + name="rotationAveragingMethod", |
| 36 | + label="Rotation Averaging Method", |
| 37 | + description="Method for rotation averaging:\n" |
| 38 | + " - L1 minimization\n" |
| 39 | + " - L2 minimization", |
| 40 | + values=["L1_minimization", "L2_minimization"], |
| 41 | + value="L2_minimization", |
| 42 | + ), |
| 43 | + desc.FloatParam( |
| 44 | + name="angularTolerance", |
| 45 | + label="Angular Tolerance", |
| 46 | + description="Angular (in degrees) tolerance for a given triplet.", |
| 47 | + value=5.0, |
| 48 | + range=(0.0, 180.0, 1.0), |
| 49 | + ), |
| 50 | + desc.ChoiceParam( |
| 51 | + name="verboseLevel", |
| 52 | + label="Verbose Level", |
| 53 | + description="Verbosity level (fatal, error, warning, info, debug, trace).", |
| 54 | + values=VERBOSE_LEVEL, |
| 55 | + value="info", |
| 56 | + ), |
| 57 | + ] |
| 58 | + |
| 59 | + outputs = [ |
| 60 | + desc.File( |
| 61 | + name="output", |
| 62 | + label="SfMData", |
| 63 | + description="Path to the output SfMData file.", |
| 64 | + value=desc.Node.internalFolder + "sfm.abc", |
| 65 | + ), |
| 66 | + ] |
0 commit comments