Stitching Mask Generation

Digiround settings

KM1024

Mask linear blending [%] calculations for .xlsm file


In [5]:
import numpy as np
stitching_size = 32
random_percent = np.linspace(0, 1, stitching_size)
print(random_percent)


[ 0.          0.03225806  0.06451613  0.09677419  0.12903226  0.16129032
  0.19354839  0.22580645  0.25806452  0.29032258  0.32258065  0.35483871
  0.38709677  0.41935484  0.4516129   0.48387097  0.51612903  0.5483871
  0.58064516  0.61290323  0.64516129  0.67741935  0.70967742  0.74193548
  0.77419355  0.80645161  0.83870968  0.87096774  0.90322581  0.93548387
  0.96774194  1.        ]

In [6]:
import numpy as np
nbr_of_values = 26
amplitude_value = np.linspace(100, 0, nbr_of_values)
print(amplitude_value)


[ 100.   96.   92.   88.   84.   80.   76.   72.   68.   64.   60.   56.
   52.   48.   44.   40.   36.   32.   28.   24.   20.   16.   12.    8.
    4.    0.]