【发布时间】:2012-11-01 04:23:13
【问题描述】:
我有一组矩阵作为列表中的 numpy 二维数组。它们有不同的尺寸(19x19 到 63x63)。现在,我必须从最小的尺寸开始排列它们。我输入的矩阵如下:
pics=[]
templates=[]
c1=0
for c1 in range(1,31):
i1=Image.open("data/"+str(c1)+".gif")
pmat = numpy.asarray(i1)
pics.append(i1)
templates.append(pmat)
因此,模板是包含所有图像矩阵的列表。 pmat 当然,包含图像本身。有什么简单的方法可以解决这个问题吗?......
【问题讨论】:
标签: python sorting image-processing numpy multidimensional-array