Python ウェーブレット パッケージからの出力があります。
[[[[[[255 255 255 255]
[255 255 255 255]
[255 255 255 255]
...,
[255 255 255 255]
[255 255 255 255]
[255 255 255 255]]
[[255 255 255 255]
[255 255 255 255]
[255 255 255 255]
...,
[255 255 255 255]
[255 255 255 255]
[255 255 255 255]]
[[255 255 255 255]
[255 255 255 255]
[255 255 255 255]
...,
[255 255 255 255]
[255 255 255 255]
[255 255 255 255]]
...,
[[255 255 255 255]
[255 255 255 255]
[255 255 255 255]
...,
[255 255 255 255]
[255 255 255 255]
[255 255 255 255]]
[[255 255 255 255]
[255 255 255 255]
[255 255 255 255]
...,
[255 255 255 255]
[255 255 255 255]
[255 255 255 255]]
[[255 255 255 255]
[255 255 255 255]
[255 255 255 255]
...,
[255 255 255 255]
[255 255 255 255]
[255 255 255 255]]]]]]
.csv
タブ区切りで括弧なしで1行で端末とファイルに出力する必要があります。
def waveletdbbiorone(self): #function for Wavelets computation
for filename in glob.iglob ('*.tif'):
imgwbior = mahotas.imread (filename) #read the image
arraywbior = numpy.array([imgwbior])#make an array for pywt module
coefwbior = pywt.wavedec(arraywbior,'db1')#compute wavelet coefficients
arr = numpy.array([coefwbior])
np.set_printoptions(precision=3)
print arr