Example #1
0
    def __init__(self, epsilon=0.00005, max_iterations=200, threading=True):
        """
        An algorithm for the Gradient Domain Fusion problem, using gradient descent implemented
        natively.

        """
        ReferenceFusion.__init__(self)

        self.cache_mask = None
        self.cache_native = None
        self.cache_errorlog = None
        self.cache_target = None
        self.cache_source_bounds = None
        self.cache_target_bounds = None

        self.epsilon = epsilon
        self.max_iterations = max_iterations
        self.threading = threading