2

Keras has preprocessing.image.flow_from_directory() to read the gray scale and rgb image formats. Is there some way i can read HDR images with 4 channels ('rgbe') using keras or similar library? Any ideas will be appreciated.

Thank you in advance.

raghu
  • 83
  • 2
  • 12
  • Did you tried it with 4 channel? I remember a git post, where fchollet added 4 channels to keras. – Lau Jul 16 '18 at 08:34
  • I have keras 2.2.0, but i dont see the code change related to that. Could you check and point me to the change. I see we can comment few lines about the checks as a work around. – raghu Jul 16 '18 at 10:18

1 Answers1

1

The function preprocessing.image.flow_from_directory() is a very powerful one. Sadly it has only the two modes you mentioned. I would suggest you two things since there is not a similar library that could work for you:

  1. Go from RGBE to RGB and use preprocessing.image.flow_from_directory()
  2. Checkout this Github link. They talk about keras having preprocessing with 4 channels, I suggest you update keras.
  3. If you want to use the E value, because you think it will have importance in your net, just build your own reader. This might help.
Ignacio Peletier
  • 2,056
  • 11
  • 24
  • I think if your point 2 doesn't work i will go with point 3. I have keras 2.2.0, but i dont see the code change related to that. Could you check and point me to the change. I see we can comment few lines about the checks as a work around. – raghu Jul 16 '18 at 10:19