-
-
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.
- Loading branch information
1 parent
2e6990d
commit b9df717
Showing
1 changed file
with
110 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,110 @@ | ||
__version__ = "1.1" | ||
|
||
from meshroom.core import desc | ||
|
||
|
||
class ImageProcessing(desc.CommandLineNode): | ||
commandLine = 'aliceVision_utils_imageProcessing {allParams}' | ||
size = desc.DynamicNodeSize('input') | ||
# parallelization = desc.Parallelization(blockSize=40) | ||
# commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeBlockSize}' | ||
|
||
inputs = [ | ||
desc.File( | ||
name='input', | ||
label='Input', | ||
description='SfMData file.', | ||
value='', | ||
uid=[0], | ||
), | ||
desc.ChoiceParam( | ||
name='extension', | ||
label='File Extension', | ||
description='File Extension.', | ||
value='', | ||
values=['', 'exr', 'jpg', 'tiff', 'png'], | ||
exclusive=True, | ||
uid=[0], | ||
), | ||
desc.BoolParam( | ||
name='reconstructedViewsOnly', | ||
label='Only Reconstructed Views', | ||
description='Process Only Reconstructed Views', | ||
value=False, | ||
uid=[0], | ||
), | ||
desc.BoolParam( | ||
name='exposureCompensation', | ||
label='Exposure Compensation', | ||
description='Exposure Compensation', | ||
value=False, | ||
uid=[0], | ||
), | ||
desc.FloatParam( | ||
name='downscale', | ||
label='Downscale', | ||
description='Downscale.', | ||
value=1.0, | ||
range=(0.0, 1.0, 0.01), | ||
uid=[0], | ||
), | ||
desc.FloatParam( | ||
name='contrast', | ||
label='Contrast', | ||
description='Contrast.', | ||
value=1.0, | ||
range=(0.0, 100.0, 0.1), | ||
uid=[0], | ||
), | ||
desc.IntParam( | ||
name='medianFilter', | ||
label='Median Filter', | ||
description='Median Filter.', | ||
value=0, | ||
range=(0, 10, 1), | ||
uid=[0], | ||
), | ||
desc.IntParam( | ||
name='sharpenWidth', | ||
label='Sharpen Width', | ||
description='Sharpen Width.', | ||
value=1, | ||
range=(1, 9, 2), | ||
uid=[0], | ||
), | ||
desc.FloatParam( | ||
name='sharpenContrast', | ||
label='Sharpen Contrast', | ||
description='Sharpen Contrast.', | ||
value=1.0, | ||
range=(0.0, 100.0, 0.1), | ||
uid=[0], | ||
), | ||
desc.FloatParam( | ||
name='sharpenThreshold', | ||
label='Sharpen Threshold', | ||
description='Sharpen Threshold.', | ||
value=0.0, | ||
range=(0.0, 1.0, 0.01), | ||
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='outSfMData', | ||
label='Output sfmData', | ||
description='Output sfmData.', | ||
value=desc.Node.internalFolder + 'sfmData.abc', | ||
uid=[], | ||
), | ||
] |