我想使用correlate2d
(代碼:corr = correlate2d(im, im, fft = True)
)來計算兩個矩陣之間的相關性。Python中correlate2d的模塊
correlate2d
是scipy的一部分,現在是stsci_python。
目前我加載模塊如下:
import scipy
from scipy import *
import numpy as np
import stsci
from stsci import *
我得到的錯誤name 'correlate2d' is not defined
。我需要加載哪些模塊?
嗨@sjy,我嘗試了所有的建議,但都沒有工作。 'stsci'似乎可以作爲頂級模塊使用,但我還沒有找到導入'correlate2d'或'convolve'的方法,以便我可以使用它。 –