import os import cv2 import numpy as np # フォルダ内のtif画像のファイル名を取得 folder = '/path/to/folder' file_list = [f for f in os.listdir(folder) if f.endswith('.tif')] for file_name in file_list: # 画像の読み込み img = ...
features = [x for x in df.columns if x.find(lab) != -1 and x.find('-1') == -1] data_list_to_fft = np.fft.fft(np.array(df[features])[0]) data_list_to_fft = data_list ...
np.fft.fft returns type np.complex128 regardless of input type. If the input type is np.complex64 returning a complex128 array can have a huge effect on system memory and type casting back with ...