Interpolate in one direction

前端 未结 1 852
自闭症患者
自闭症患者 2020-12-12 00:11

I have sampled data and plot it with imshow():

\"enter

I would li

相关标签:
1条回答
  • 2020-12-12 00:44

    This tutorial covers a range of interpolation available in numpy/scipy. If you want to just one direction, I would work on each row independently and then re-assemble the results. You might also be interested is simply smoothing your data (exmple, Python Smooth Time Series Data, Using strides for an efficient moving average filter).

    def smooth_inter_fun(r):
        #what ever process you want to use
    new_data = np.vstack([smooth_inter_fun(r) for r in data])
    
    0 讨论(0)
提交回复
热议问题