1 つの関数で画像の一覧を表示する方法はありますか? matlab にはモンタージュがあります。現在、ループと imshow の場合、matplotlib は上から下に画像を表示します。スペースがない場合は、左から右に、次に下に配置したいと思います。私のコードは以下のとおりですが、もちろん愚かなコードです。
import numpy as np
plot_image = image_list[1]
for i in range(20):
plot_image = np.concatenate((plot_image, image_list[i+1]), axis=1)
plt.figure(figsize = (15,15))
plt.imshow(plot_image, cmap = 'gray');
関数 montage(list_of_images) のようなもの、または smarter_imshow(list_of_images_with_unequal_resolution) のような同じサイズの画像を取り込む必要のない関数があります