-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathSplit360Images.py
70 lines (65 loc) · 1.59 KB
/
Split360Images.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
__version__ = "2.0"
from meshroom.core import desc
class Split360Images(desc.CommandLineNode):
commandLine = 'aliceVision_utils_split360Images {allParams}'
inputs = [
desc.File(
name='input',
label='Images Folder',
description='Images Folder',
value='',
uid=[0],
),
desc.ChoiceParam(
name='splitMode',
label='Split Mode',
description='''Split mode (equirectangular, dualfisheye)''',
value='equirectangular',
values=['equirectangular', 'dualfisheye'],
exclusive=True,
uid=[0],
),
desc.ChoiceParam(
name='dualFisheyeSplitPreset',
label='Dual Fisheye Split Preset',
description='''Dual-Fisheye split type preset (center, top, bottom)''',
value='center',
values=['center', 'top', 'bottom'],
exclusive=True,
uid=[0],
),
desc.IntParam(
name='equirectangularNbSplits',
label='Equirectangular Nb Splits',
description='''Equirectangular number of splits''',
value=2,
range=(1, 100, 1),
uid=[0],
),
desc.IntParam(
name='equirectangularSplitResolution',
label='Equirectangular Split Resolution',
description='''Equirectangular split resolution''',
value=1200,
range=(100, 10000, 1),
uid=[0],
),
desc.ChoiceParam(
name='equirectangularDemoMode',
label='Equirectangular Demo Mode',
description='''Export a SVG file that simulate the split''',
value='0',
values=['0', '1'],
exclusive=True,
uid=[0],
),
]
outputs = [
desc.File(
name='output',
label='Output Folder',
description='''Output folder for extracted frames.''',
value=desc.Node.internalFolder,
uid=[],
),
]