Skip to Content

How to concat image using skimage

When you need to concat same size image to make figure.

skimage & numpy combination is too powerfull to concat images.

This is sample script.

from skimage import data, io
import numpy as np

img =
imgs= [img for i in range(10)]"sample_h.png",np.hstack(imgs))"sample_v.png",np.vstack(imgs))

After that you can get below images.

  • concat holiznal
  • concat vertical

Via Gist: