Read PFM format in python

前端 未结 2 881
心在旅途
心在旅途 2021-01-17 04:07

I want to read pfm format images in python. I tried with imageio.read but it is throwing an error. Can I have any suggestion, please?

img = imageio.imread(\'im

2条回答
  •  无人及你
    2021-01-17 04:38

    img = imageio.imread('image.pfm')
    

    will just do it. For easy use it can be converted to numpy array.

    img = numpy.asarray(img)
    

提交回复
热议问题