Skip to content

Commit

Permalink
Merge pull request #2193 from alicevision/dev/panoPostProcessOutputs
Browse files Browse the repository at this point in the history
[nodes] PanoramaPostProcessing: Add attributes to change the outputs' names
  • Loading branch information
cbentejac authored Sep 19, 2023
2 parents 05080b2 + ceba9c5 commit 3fc908c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
24 changes: 21 additions & 3 deletions meshroom/nodes/aliceVision/PanoramaPostProcessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@ class PanoramaPostProcessing(desc.CommandLineNode):
uid=[0],
enabled=lambda node: node.compressionMethod.value in ["dwaa", "dwab", "zip", "zips"]
),
desc.StringParam(
name="panoramaName",
label="Output Panorama Name",
description="Name of the output panorama.",
value="panorama.exr",
uid=[],
group=None,
advanced=True
),
desc.StringParam(
name="previewName",
label="Panorama Preview Name",
description="Name of the preview of the output panorama.",
value="panoramaPreview.jpg",
uid=[],
group=None,
advanced=True,
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
Expand All @@ -100,22 +118,22 @@ class PanoramaPostProcessing(desc.CommandLineNode):
label="Output Panorama",
description="Generated panorama in EXR format.",
semantic="image",
value=desc.Node.internalFolder + "panorama.exr",
value=lambda attr: desc.Node.internalFolder + attr.node.panoramaName.value,
uid=[],
),
desc.File(
name="outputPanoramaPreview",
label="Output Panorama Preview",
description="Preview of the generated panorama in JPG format.",
semantic="image",
value=desc.Node.internalFolder + "panoramaPreview.jpg",
value=lambda attr: desc.Node.internalFolder + attr.node.previewName.value,
uid=[],
),
desc.File(
name="downscaledPanoramaLevels",
label="Downscaled Panorama Levels",
description="Downscaled versions of the generated panorama.",
value=desc.Node.internalFolder + "level_*.exr",
value=lambda attr: desc.Node.internalFolder + os.path.splitext(attr.node.panoramaName.value)[0] + "_level_*.exr",
uid=[],
group='',
),
Expand Down
2 changes: 1 addition & 1 deletion meshroom/pipelines/panoramaFisheyeHdr.mg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"PanoramaPrepareImages": "1.1",
"PanoramaInit": "2.0",
"Publish": "1.3",
"PanoramaPostProcessing": "2.0",
"PanoramaPostProcessing": "2.1",
"FeatureMatching": "2.0",
"LdrToHdrSampling": "4.0",
"PanoramaWarping": "1.1",
Expand Down
2 changes: 1 addition & 1 deletion meshroom/pipelines/panoramaHdr.mg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"PanoramaPrepareImages": "1.1",
"PanoramaInit": "2.0",
"Publish": "1.3",
"PanoramaPostProcessing": "2.0",
"PanoramaPostProcessing": "2.1",
"FeatureMatching": "2.0",
"LdrToHdrSampling": "4.0",
"PanoramaWarping": "1.1",
Expand Down

0 comments on commit 3fc908c

Please sign in to comment.