Skip to content

Instantly share code, notes, and snippets.

@taikomatsu
Created May 27, 2019 13:14
Show Gist options
  • Save taikomatsu/879a436ee6b2d3a493cf52304ca33365 to your computer and use it in GitHub Desktop.
Save taikomatsu/879a436ee6b2d3a493cf52304ca33365 to your computer and use it in GitHub Desktop.
Read hdr using imageio
import imageio
imgpath = 'myhdri.hdr'
# freeimageがインストールされていないシステムでも以下の一行を実行すればHDRが読める
imageio.plugins.freeimage.download()
img = imageio.imread(imgpath)
# 画像サイズも確認可能
print(img.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment