mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
Add first version of the MVS nodes
This commit is contained in:
parent
2c62c75e2e
commit
185fa6e58c
8 changed files with 173 additions and 0 deletions
15
meshroom/nodes/CamPairs.py
Normal file
15
meshroom/nodes/CamPairs.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class CamPairs(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'CMPMVS {mvsConfigValue} --computeCamPairs'
|
||||
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value=None,
|
||||
shortName='',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
15
meshroom/nodes/DepthMap.py
Normal file
15
meshroom/nodes/DepthMap.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class DepthMap(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'CMPMVS {mvsConfigValue} --createDepthmap'
|
||||
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='',
|
||||
shortName='',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
15
meshroom/nodes/DepthMapFilter.py
Normal file
15
meshroom/nodes/DepthMapFilter.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class DepthMapFilter(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'CMPMVS {mvsConfigValue} --filterDepthmap'
|
||||
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='',
|
||||
shortName='',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
15
meshroom/nodes/Fuse.py
Normal file
15
meshroom/nodes/Fuse.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class Fuse(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'CMPMVS {mvsConfigValue} --fuse'
|
||||
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='',
|
||||
shortName='',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
15
meshroom/nodes/Meshing.py
Normal file
15
meshroom/nodes/Meshing.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class Meshing(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'CMPMVS {mvsConfigValue} --meshing'
|
||||
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='',
|
||||
shortName='',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
41
meshroom/nodes/PrepareDenseScene.py
Normal file
41
meshroom/nodes/PrepareDenseScene.py
Normal file
|
@ -0,0 +1,41 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class PrepareDenseScene(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'openMVG_main_openMVG2CMPMVS2 {allParams}'
|
||||
|
||||
outdir = desc.FileAttribute(
|
||||
label='Outdir',
|
||||
description='''path Invalid command line parameter.''',
|
||||
value='{cache}/{nodeType}/{uid0}/',
|
||||
shortName='o',
|
||||
arg='',
|
||||
isOutput=True,
|
||||
)
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='{cache}/{nodeType}/{uid0}/_tmp_scale{scaleValue}/mvs.ini',
|
||||
shortName='',
|
||||
arg='',
|
||||
isOutput=True,
|
||||
)
|
||||
|
||||
sfmdata = desc.FileAttribute(
|
||||
label='Sfmdata',
|
||||
description='''filename, the SfM_Data file to convert''',
|
||||
value='',
|
||||
shortName='i',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
||||
scale = desc.ParamAttribute(
|
||||
label='Scale',
|
||||
description='''downscale image factor''',
|
||||
value=2,
|
||||
shortName='s',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
15
meshroom/nodes/Texturing.py
Normal file
15
meshroom/nodes/Texturing.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
from meshroom.processGraph import desc
|
||||
|
||||
class Texturing(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'CMPMVS {mvsConfigValue} --texturing'
|
||||
|
||||
mvsConfig = desc.FileAttribute(
|
||||
label='MVS Configuration file',
|
||||
description='',
|
||||
value='',
|
||||
shortName='',
|
||||
arg='',
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
42
sfm.mg
42
sfm.mg
|
@ -26,5 +26,47 @@
|
|||
"featuresDir": "{FeatureExtraction.outdir}",
|
||||
"matchdir": "{FeatureMatching.out_dir}"
|
||||
}
|
||||
},
|
||||
"PrepareDenseScene": {
|
||||
"nodeType": "PrepareDenseScene",
|
||||
"attributes": {
|
||||
"sfmdata": "{StructureFromMotion.out_sfmdata_file}"
|
||||
}
|
||||
},
|
||||
"CamPairs": {
|
||||
"nodeType": "CamPairs",
|
||||
"attributes": {
|
||||
"mvsConfig": "{PrepareDenseScene.mvsConfig}"
|
||||
}
|
||||
},
|
||||
"DepthMap": {
|
||||
"nodeType": "DepthMap",
|
||||
"attributes": {
|
||||
"mvsConfig": "{CamPairs.mvsConfig}"
|
||||
}
|
||||
},
|
||||
"DepthMapFilter": {
|
||||
"nodeType": "DepthMapFilter",
|
||||
"attributes": {
|
||||
"mvsConfig": "{DepthMap.mvsConfig}"
|
||||
}
|
||||
},
|
||||
"Fuse": {
|
||||
"nodeType": "Fuse",
|
||||
"attributes": {
|
||||
"mvsConfig": "{DepthMapFilter.mvsConfig}"
|
||||
}
|
||||
},
|
||||
"Meshing": {
|
||||
"nodeType": "Meshing",
|
||||
"attributes": {
|
||||
"mvsConfig": "{Fuse.mvsConfig}"
|
||||
}
|
||||
},
|
||||
"Texturing": {
|
||||
"nodeType": "Texturing",
|
||||
"attributes": {
|
||||
"mvsConfig": "{Meshing.mvsConfig}"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue