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 = skimage.data.astronaut()
imgs= [img for i in range(10)]
skimage.io.imsave("sample_h.png",np.hstack(imgs))
skimage.io.imsave("sample_v.png",np.vstack(imgs))
After that you can get below images.
Via Gist: https://gist.github.com/hurutoriya/fedf059ad3db5c67b16d8d5dd6d3df70
関連しているかもしれない記事
- Google Colaboratory で Mecab-ipadic-Neologd を使用可能にする
- Jupyter Notebookの差分を明瞭に確認する事ができるpackage : nbdime
- PythonでGaussian Kernelのアニメーションを作成
- JupyterNotebookをリモートサーバー上で公開して、どこでも研究開発 & 講義でJupyterhubを利用する
- Jupyter上でSVGのイラストやアニメーションが作成できるプラグイン egel
Support
記事をお読みくださりありがとうございます。 このウェブサイトの運営を支援していただける方を募集しています。 もしよろしければ、Buy Me a Coffee からサポート(投げ銭)していただけると、記事の執筆、情報発信のモチベーションに繋がります✨--
記事を楽しめましたか? RSSで更新情報を配信しているので、お好きなフィードリーダーで購読してみてください。また、記事へのリアクションやコメントなどを、以下のGitHub を利用したコメントシステムからしていただけると執筆の励みになります。