Filter image that contains NaNs in Matlab?

前端 未结 4 2010
被撕碎了的回忆
被撕碎了的回忆 2021-02-14 13:09

I have a 2d array (doubles) representing some data, and it has a bunch of NaNs in it. The contour plot of the data looks like this:

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-14 13:27

    nanfilter does exactly the same thing with nanconv when filtering as long as the filter is the same. If you get the nan values before you use nanfilter and then add the back to the after-filtered matrix, you will get the same result with what you get from nanconv with the option 'nanout', as long as you use the same filter.

提交回复
热议问题