darsia.tvd#

tvd(img, method='chambolle', weight=1.0, max_num_iter=200, eps=0.0002, **kwargs)[source]#

Inline application of TVD.

Parameters:
imgnp.ndarray or Image

Image.

methodstr

TVD method.

weightfloat or np.ndarray

Weight.

max_num_iterint

Maximum number of iterations.

epsfloat

Tolerance.

**kwargs

Additional arguments.

  • omega (array or float): data fidelity weight for heterogeneous bregman

  • regularization (float): regularization parameter for heterogeneous bregman

Returns:
np.ndarray or Image

Upscaled image (same type as input).