FFT-based 2D convolution and correlation in Python

后端 未结 6 1409
一个人的身影
一个人的身影 2020-12-01 04:50

Is there a FFT-based 2D cross-correlation or convolution function built into scipy (or another popular library)?

There are functions like these:

6条回答
  •  天涯浪人
    2020-12-01 05:21

    I think you want the scipy.stsci package:

    http://docs.scipy.org/doc/scipy/reference/stsci.html

    In [30]: scipy.__version__
    Out[30]: '0.7.0'
    
    In [31]: from scipy.stsci.convolve import convolve2d, correlate2d
    

提交回复
热议问题