I'm trying to apply the TV filter to 2D array which includes many nan values:
from skimage.restoration import denoise_tv_chambolle
import numpy as np
data_random = np.random.random ([100,100])*100
plt.imshow(data_random)
plt.imshow(denoise_tv_chambolle(data_random))
data_random[20:30, 50:60] = np.nan
data_random[30:40, 55:60] = np.nan
data_random[40:50, 65:75] = np.nan
plt.imshow(denoise_tv_chambolle(data_random))
The TV filter works well with all valid data, but will return a nan array if there're nan values.
Original data:

Deonised data:

Data with nan values:
