mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-30 17:36:33 +02:00
[photometricStereo] Add nodes for PS
This commit is contained in:
parent
cef8cf6fd8
commit
1f4976610c
3 changed files with 147 additions and 0 deletions
57
meshroom/nodes/aliceVision/LightingCalibration.py
Normal file
57
meshroom/nodes/aliceVision/LightingCalibration.py
Normal file
|
@ -0,0 +1,57 @@
|
||||||
|
__version__ = "3.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
|
||||||
|
|
||||||
|
class LightingCalibration(desc.CommandLineNode):
|
||||||
|
commandLine = 'aliceVision_lightingCalibration {allParams}'
|
||||||
|
category = 'Photometry'
|
||||||
|
documentation = '''
|
||||||
|
TODO.
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name='inputPath',
|
||||||
|
label='SfmData',
|
||||||
|
description='Input file. Coulb be SfMData file or folder.',
|
||||||
|
value='',
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.GroupAttribute(
|
||||||
|
name="sphereCenter",
|
||||||
|
label="Sphere Center",
|
||||||
|
description="Center of the circle (XY offset to the center in pixels).",
|
||||||
|
groupDesc=[
|
||||||
|
desc.FloatParam(
|
||||||
|
name="x", label="x", description="X Offset in pixels",
|
||||||
|
value=0.0,
|
||||||
|
uid=[0],
|
||||||
|
range=(-1000.0, 10000.0, 1.0)),
|
||||||
|
desc.FloatParam(
|
||||||
|
name="y", label="y", description="Y Offset in pixels",
|
||||||
|
value=0.0,
|
||||||
|
uid=[0],
|
||||||
|
range=(-1000.0, 10000.0, 1.0)),
|
||||||
|
],
|
||||||
|
group=None, # skip group from command line
|
||||||
|
),
|
||||||
|
desc.FloatParam(
|
||||||
|
name='sphereRadius',
|
||||||
|
label='Radius',
|
||||||
|
description='Sphere radius in pixels.',
|
||||||
|
value=500.0,
|
||||||
|
range=(0.0, 5000, 0.1),
|
||||||
|
uid=[0],
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
desc.File(
|
||||||
|
name='outputFile',
|
||||||
|
label='Output json file',
|
||||||
|
description='Light information will be written here.',
|
||||||
|
value=desc.Node.internalFolder +'/lights.json' ,
|
||||||
|
uid=[],
|
||||||
|
)
|
||||||
|
]
|
37
meshroom/nodes/aliceVision/NormalIntegration.py
Normal file
37
meshroom/nodes/aliceVision/NormalIntegration.py
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
__version__ = "3.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
|
||||||
|
class NormalIntegration(desc.CommandLineNode):
|
||||||
|
commandLine = 'aliceVision_normalIntegration {allParams}'
|
||||||
|
category = 'Photometry'
|
||||||
|
documentation = '''
|
||||||
|
TODO.
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name='sfmDataFile',
|
||||||
|
label='sfmDataFile',
|
||||||
|
description='''SfMData file.''',
|
||||||
|
value='',
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name='inputPath',
|
||||||
|
label='inputPath',
|
||||||
|
description='Normal maps folder',
|
||||||
|
value='',
|
||||||
|
uid=[0]
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
desc.File(
|
||||||
|
name='outputPath',
|
||||||
|
label='Output path',
|
||||||
|
description='Path to the output folder',
|
||||||
|
value=desc.Node.internalFolder,
|
||||||
|
uid=[],
|
||||||
|
)
|
||||||
|
]
|
53
meshroom/nodes/aliceVision/PhotometricStereo.py
Normal file
53
meshroom/nodes/aliceVision/PhotometricStereo.py
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
__version__ = "3.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
|
||||||
|
class PhotometricStereo(desc.CommandLineNode):
|
||||||
|
commandLine = 'aliceVision_photometricStereo {allParams}'
|
||||||
|
category = 'Photometry'
|
||||||
|
documentation = '''
|
||||||
|
TODO.
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name='inputPath',
|
||||||
|
label='SfmData',
|
||||||
|
description='Input file. Coulb be SfMData file or folder.',
|
||||||
|
value='',
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name='maskPath',
|
||||||
|
label='Mask folder path',
|
||||||
|
description='Mask folder path',
|
||||||
|
value='',
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name='pathToJSONLightFile',
|
||||||
|
label='Lights Folder',
|
||||||
|
description='Folder containing lighting information.',
|
||||||
|
value='',
|
||||||
|
uid=[0]
|
||||||
|
),
|
||||||
|
desc.IntParam(
|
||||||
|
name='HSOrder',
|
||||||
|
label='HS order',
|
||||||
|
description='Order of the spherical harmonics. ',
|
||||||
|
value=0,
|
||||||
|
range=(0, 2, 1),
|
||||||
|
uid=[0],
|
||||||
|
advanced=True,
|
||||||
|
)
|
||||||
|
]
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
desc.File(
|
||||||
|
name='outputPath',
|
||||||
|
label='Output path',
|
||||||
|
description='Path to the output folder',
|
||||||
|
value=desc.Node.internalFolder,
|
||||||
|
uid=[],
|
||||||
|
)
|
||||||
|
]
|
Loading…
Add table
Add a link
Reference in a new issue