def getProgress(self):
     progress = camphorRegistrationProgress()
     progress.iteration = self.registration_method.GetOptimizerIteration()
     progress.objectiveFunctionValue = self.registration_method.GetMetricValue()
     progress.percentDone = self.percentDone
     progress.totalPercentDone = (self.nDone + self.percentDone / 100) / self.nTotal * 100
     return progress
Example #2
0
    def getProgress(self):
        progress = camphorRegistrationProgress()
        progress.iteration = self.registration_method.GetOptimizerIteration()
        progress.objectiveFunctionValue = self.registration_method.GetMetricValue()
        progress.percentDone = 100 * (self.curFrame + progress.iteration / self.parameters.numberOfIterations) / self.nFrames
        progress.totalPercentDone = (self.nDone + progress.percentDone / 100) / self.nTotal * 100

        return progress