Image Processing Issue: Fill NaNs in image, which mostly consists of NaNs
问题 I have a dataset / image DD like the one in this image: (by the way: is there a way of uploading small data sets here, so that you can actually work with the same data I use, without having to put them in the code?) Colored pixels in the image represent height/depth ranging from 0 to about 400 meters. Blue pixels are NaN . Now what I need to do is to interpolate the pixel values WITHIN the displayed object, but without interpolating the whole image. I tried using the function inpaint_nans