mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[ui] reset depthmap node when camerainit change
This commit is contained in:
parent
7bea135993
commit
a37ecc189c
1 changed files with 5 additions and 0 deletions
|
@ -389,6 +389,7 @@ class Reconstruction(UIGraph):
|
||||||
|
|
||||||
# - Depth Map
|
# - Depth Map
|
||||||
self._depthMap = None
|
self._depthMap = None
|
||||||
|
self.cameraInitChanged.connect(self.updateDepthMapNode)
|
||||||
|
|
||||||
# - Texturing
|
# - Texturing
|
||||||
self._texturing = None
|
self._texturing = None
|
||||||
|
@ -486,6 +487,10 @@ class Reconstruction(UIGraph):
|
||||||
""" Set the current FeatureExtraction node based on the current CameraInit node. """
|
""" Set the current FeatureExtraction node based on the current CameraInit node. """
|
||||||
self.featureExtraction = self.lastNodeOfType('FeatureExtraction', self.cameraInit) if self.cameraInit else None
|
self.featureExtraction = self.lastNodeOfType('FeatureExtraction', self.cameraInit) if self.cameraInit else None
|
||||||
|
|
||||||
|
def updateDepthMapNode(self):
|
||||||
|
""" Set the current FeatureExtraction node based on the current CameraInit node. """
|
||||||
|
self.depthMap = self.lastNodeOfType('DepthMapFilter', self.cameraInit) if self.cameraInit else None
|
||||||
|
|
||||||
def lastSfmNode(self):
|
def lastSfmNode(self):
|
||||||
""" Retrieve the last SfM node from the initial CameraInit node. """
|
""" Retrieve the last SfM node from the initial CameraInit node. """
|
||||||
return self.lastNodeOfType("StructureFromMotion", self._cameraInit, Status.SUCCESS)
|
return self.lastNodeOfType("StructureFromMotion", self._cameraInit, Status.SUCCESS)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue