mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
Lidar nodes
This commit is contained in:
parent
7d8b7cbef5
commit
f1dcaf442b
3 changed files with 110 additions and 3 deletions
63
meshroom/nodes/aliceVision/LidarDecimating.py
Normal file
63
meshroom/nodes/aliceVision/LidarDecimating.py
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
__version__ = "1.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
from meshroom.core.utils import VERBOSE_LEVEL
|
||||||
|
|
||||||
|
class LidarDecimating(desc.AVCommandLineNode):
|
||||||
|
commandLine = 'aliceVision_lidarDecimating {allParams}'
|
||||||
|
|
||||||
|
size = desc.StaticNodeSize(10)
|
||||||
|
parallelization = desc.Parallelization(blockSize=1)
|
||||||
|
commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeFullSize}'
|
||||||
|
|
||||||
|
cpu = desc.Level.INTENSIVE
|
||||||
|
ram = desc.Level.INTENSIVE
|
||||||
|
|
||||||
|
category = 'Dense Reconstruction'
|
||||||
|
documentation = '''
|
||||||
|
This node simplifies previously reconstructed meshes
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name="input",
|
||||||
|
label="Input JSON",
|
||||||
|
description="Input JSON file with description of inputs.",
|
||||||
|
value="",
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.FloatParam(
|
||||||
|
name="errorLimit",
|
||||||
|
label="Error limit",
|
||||||
|
description="Maximal distance allowed",
|
||||||
|
value=0.001,
|
||||||
|
range=(0.0, 1.0, 0.001),
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.ChoiceParam(
|
||||||
|
name="verboseLevel",
|
||||||
|
label="Verbose Level",
|
||||||
|
description="Verbosity level (fatal, error, warning, info, debug, trace).",
|
||||||
|
values=VERBOSE_LEVEL,
|
||||||
|
value="info",
|
||||||
|
exclusive=True,
|
||||||
|
uid=[],
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
desc.File(
|
||||||
|
name="output",
|
||||||
|
label="Sub-Meshes directory",
|
||||||
|
description="Output directory for sub-meshes",
|
||||||
|
value=desc.Node.internalFolder,
|
||||||
|
uid=[],
|
||||||
|
),
|
||||||
|
desc.File(
|
||||||
|
name="outputJson",
|
||||||
|
label="Scene description",
|
||||||
|
description="Output Scene description.",
|
||||||
|
value=desc.Node.internalFolder + "scene.json",
|
||||||
|
uid=[],
|
||||||
|
),
|
||||||
|
]
|
44
meshroom/nodes/aliceVision/LidarMerging.py
Normal file
44
meshroom/nodes/aliceVision/LidarMerging.py
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
__version__ = "1.0"
|
||||||
|
|
||||||
|
from meshroom.core import desc
|
||||||
|
from meshroom.core.utils import VERBOSE_LEVEL
|
||||||
|
|
||||||
|
class LidarMerging(desc.AVCommandLineNode):
|
||||||
|
commandLine = 'aliceVision_lidarMerging {allParams}'
|
||||||
|
|
||||||
|
cpu = desc.Level.INTENSIVE
|
||||||
|
ram = desc.Level.INTENSIVE
|
||||||
|
|
||||||
|
category = 'Dense Reconstruction'
|
||||||
|
documentation = '''
|
||||||
|
This node merge meshes into one
|
||||||
|
'''
|
||||||
|
|
||||||
|
inputs = [
|
||||||
|
desc.File(
|
||||||
|
name="input",
|
||||||
|
label="Input JSON",
|
||||||
|
description="Input JSON file with description of inputs.",
|
||||||
|
value="",
|
||||||
|
uid=[0],
|
||||||
|
),
|
||||||
|
desc.ChoiceParam(
|
||||||
|
name="verboseLevel",
|
||||||
|
label="Verbose Level",
|
||||||
|
description="Verbosity level (fatal, error, warning, info, debug, trace).",
|
||||||
|
values=VERBOSE_LEVEL,
|
||||||
|
value="info",
|
||||||
|
exclusive=True,
|
||||||
|
uid=[],
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
desc.File(
|
||||||
|
name="output",
|
||||||
|
label="Mesh path output",
|
||||||
|
description="Output directory for mesh",
|
||||||
|
value=desc.Node.internalFolder + "output.obj",
|
||||||
|
uid=[],
|
||||||
|
)
|
||||||
|
]
|
|
@ -6,9 +6,9 @@ from meshroom.core.utils import VERBOSE_LEVEL
|
||||||
class LidarMeshing(desc.AVCommandLineNode):
|
class LidarMeshing(desc.AVCommandLineNode):
|
||||||
commandLine = 'aliceVision_lidarMeshing {allParams}'
|
commandLine = 'aliceVision_lidarMeshing {allParams}'
|
||||||
|
|
||||||
# size = desc.DynamicNodeSize('input')
|
size = desc.StaticNodeSize(10)
|
||||||
# parallelization = desc.Parallelization(blockSize=2)
|
parallelization = desc.Parallelization(blockSize=1)
|
||||||
# commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeBlockSize}'
|
commandLineRange = '--rangeStart {rangeStart} --rangeSize {rangeFullSize}'
|
||||||
|
|
||||||
cpu = desc.Level.INTENSIVE
|
cpu = desc.Level.INTENSIVE
|
||||||
ram = desc.Level.INTENSIVE
|
ram = desc.Level.INTENSIVE
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue