-
-
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 #1173 from alicevision/dev/largeWarping
[panorama] PanoramaCompositing: new out-of-core algorithm
- Loading branch information
Showing
10 changed files
with
236 additions
and
53 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
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,78 @@ | ||
__version__ = "1.0" | ||
|
||
import json | ||
import os | ||
|
||
from meshroom.core import desc | ||
|
||
|
||
class PanoramaMerging(desc.CommandLineNode): | ||
commandLine = 'aliceVision_panoramaMerging {allParams}' | ||
size = desc.DynamicNodeSize('input') | ||
|
||
cpu = desc.Level.NORMAL | ||
ram = desc.Level.INTENSIVE | ||
|
||
|
||
documentation = ''' | ||
Merge all inputs coming from PanoramaComposiring | ||
''' | ||
|
||
inputs = [ | ||
desc.File( | ||
name='input', | ||
label='Input SfMData', | ||
description="Input SfMData.", | ||
value='', | ||
uid=[0], | ||
), | ||
desc.File( | ||
name='compositingFolder', | ||
label='compositing Folder', | ||
description="Panorama Compositing results", | ||
value='', | ||
uid=[0], | ||
), | ||
desc.ChoiceParam( | ||
name='outputFileType', | ||
label='Output File Type', | ||
description='Output file type for the undistorted images.', | ||
value='exr', | ||
values=['jpg', 'png', 'tif', 'exr'], | ||
exclusive=True, | ||
uid=[0], | ||
group='', # not part of allParams, as this is not a parameter for the command line | ||
), | ||
desc.ChoiceParam( | ||
name='storageDataType', | ||
label='Storage Data Type', | ||
description='Storage image data type:\n' | ||
' * float: Use full floating point (32 bits per channel)\n' | ||
' * half: Use half float (16 bits per channel)\n' | ||
' * halfFinite: Use half float, but clamp values to avoid non-finite values\n' | ||
' * auto: Use half float if all values can fit, else use full float\n', | ||
value='float', | ||
values=['float', 'half', 'halfFinite', 'auto'], | ||
exclusive=True, | ||
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='outputPanorama', | ||
label='Output Folder', | ||
description='', | ||
value=desc.Node.internalFolder + 'panorama.{outputFileTypeValue}', | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
__version__ = "1.0" | ||
|
||
import json | ||
import os | ||
|
||
from meshroom.core import desc | ||
|
||
|
||
class PanoramaSeams(desc.CommandLineNode): | ||
commandLine = 'aliceVision_panoramaSeams {allParams}' | ||
size = desc.DynamicNodeSize('input') | ||
|
||
cpu = desc.Level.INTENSIVE | ||
ram = desc.Level.INTENSIVE | ||
|
||
documentation = ''' | ||
Estimate the seams lines between the inputs to provide an optimal compositing in a further node | ||
''' | ||
|
||
inputs = [ | ||
desc.File( | ||
name='input', | ||
label='Input SfMData', | ||
description="Input SfMData.", | ||
value='', | ||
uid=[0], | ||
), | ||
desc.File( | ||
name='warpingFolder', | ||
label='Warping Folder', | ||
description="Panorama Warping results", | ||
value='', | ||
uid=[0], | ||
), | ||
desc.IntParam( | ||
name='maxWidth', | ||
label='Max Resolution', | ||
description='Maximal resolution for the panorama seams estimation.', | ||
value=5000, | ||
range=(0, 100000, 1), | ||
uid=[0], | ||
), | ||
desc.BoolParam( | ||
name='useGraphCut', | ||
label='Use Smart Seams', | ||
description='Use a graphcut algorithm to optmize seams for better transitions between images.', | ||
value=True, | ||
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='Output Labels', | ||
description='', | ||
value=desc.Node.internalFolder + 'labels.exr', | ||
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.