data (np.ndarray): 2D or 3D array on which it will be computed
data (np.ndarray): 2D or 3D array on which it will be computed
inverted (bool): If True, it will invert the brightness of the image. Defaults to False
inverted (bool): If True, it will invert the brightness of the image. Defaults to False
n_layers (int): Determines amount of layers to look for (result in a layer and background). Defaults to 1.
n_layers (int): Determines amount of layers to look for (result in a layer and background). Defaults to 1.
delta (float): Patameter determining smoothness. Defaults to 1.
delta (float): Parameter determining smoothness. Defaults to 1.
min_margin (int or None): Parameter for minimum margin. If more layers are wanted, a margin is necessary to avoid layers being identical. Defaults to None.
min_margin (int or None): Parameter for minimum margin. If more layers are wanted, a margin is necessary to avoid layers being identical. Defaults to None.
max_margin (int or None): Parameter for maximum margin. If more layers are wanted, a margin is necessary to avoid layers being identical. Defaults to None.
max_margin (int or None): Parameter for maximum margin. If more layers are wanted, a margin is necessary to avoid layers being identical. Defaults to None.
wrap (bool): If True, starting and ending point of the border between layers are at the same level. Defaults to False.
wrap (bool): If True, starting and ending point of the border between layers are at the same level. Defaults to False.