Notes on HDR and RAW image processing with Python

background

I want to process HDR and RAW images with Python

rawpy

https://github.com/letmaik/rawpy

Basic RAW processing library. Compatible with Windows (prebuilt and piped)

colour-hdri

color-science https://github.com/colour-science

https://www.colour-science.org/colour-hdri/

I use rawpy to read and write RAW.

Also pay attention to the color package!

https://github.com/colour-science/colour

In addition, various color chart data (EXR format) is added to color-nuke.

https://github.com/colour-science/colour-nuke/tree/master/colour_nuke/resources/images

imageio

You can read various things.

https://imageio.readthedocs.io/en/stable/formats.html

OpenEXR was also supported (via FreeImage).

https://imageio.readthedocs.io/en/stable/format_exr-fi.html#exr-fi

If it is pip, prebuilt will be included? It may not be necessary to compile. (The prebuilt binaries linked above are 6 years old and old)

EXR

There seems to be an OpenEXR package.

https://pypi.org/project/OpenEXR/

Is pyexr easier?

https://github.com/tvogels/pyexr

However, both are troublesome because they are from source to build.

imageio may be fine, but PyEXR using TinyEXR

https://github.com/ialhashim/PyEXR

I made a prebuilt binary wheel for Windows, macOS, and Linux with cibuildwheel.

Build python bwheel (including C ++ module) with cibuildwheel in bulk with CI and upload it to PyPI Note: https://qiita.com/syoyo/items/97f35b4d5c40761cc314

https://pypi.org/project/pytinyexr/

You can install pip without compiling! (python2.7 is not supported.)

save.

If you want to save as 32bit float, is tifffile https://pypi.org/project/tifffile/ good?

You may be able to use rawpy.

Image processing

Is it quick to make it a numpy 2D array (float32) and process it with numpy or something?

tone map

T.B.W. (Is it in the colour-science package?)

Add zebra to the image

You want to create a zebra (striped pattern) pattern where the highlights are flying. There seems to be no quick way to do it. Is it possible to create an image of a zebra pattern and combine it?

T.B.W.

Summary

Happy HDR/RAW image loading & editing!

Recommended Posts

Notes on HDR and RAW image processing with Python
Image processing with Python
Image processing with Python (Part 2)
Image processing with Python (Part 1)
Image processing with Python (Part 3)
[Python] Image processing with scikit-image
Notes on Python and dictionary types
Personal notes for python image processing
Image processing with Python 100 knocks # 3 Binarization
Notes on using rstrip with python.
Image processing with Python 100 knocks # 2 Grayscale
[Let's play with Python] Image processing to monochrome and dots
Notes on deploying pyenv with Homebrew and managing Python versions
Image processing with Python 100 knock # 10 median filter
python image processing
Image processing with Python 100 knocks # 8 Max pooling
A memo with Python2.7 and Python3 on CentOS
Notes on doing Japanese OCR with Python
Image processing with Python & OpenCV [Tone Curve]
Image processing with Python 100 knock # 12 motion filter
Notes on building Python and pyenv on Mac
Drawing with Matrix-Reinventor of Python Image Processing-
Easy image processing in Python with Pillow
Image processing with Python 100 knocks # 7 Average pooling
Light image processing with Python x OpenCV
Image processing with Python 100 knocks # 9 Gaussian filter
Read the file with python and delete the line breaks [Notes on reading the file]
Getting started with Python with 100 knocks on language processing
Notes on installing Python3 and using pip on Windows7
Image processing from scratch with python (5) Fourier transform
Install OpenCV 4.0 and Python 3.7 on Windows 10 with Anaconda
Image processing from scratch with python (4) Contour extraction
Image Processing with Python Environment Setup for Windows
Image processing with MyHDL
First Python image processing
Image Processing with PIL
Install selenium on Mac and try it with python
Automatic follow on Twitter with python and selenium! (RPA)
Get comments on youtube Live with [python] and [pytchat]!
Ubuntu 20.04 on raspberry pi 4 with OpenCV and use with python
Email hipchat with postfix, fluentd and python on Azure
Automate Chrome with Python and Selenium on your Chromebook
Create a High Dynamic Range Image (HDR) with OpenCV and Python (Mertens, Robertson, Debevec)
Image processing with Python (I tried binarizing it into a mosaic art of 0 and 1)
Programming with Python and Tkinter
Encryption and decryption with Python
Notes on tf.function and Tracing
Image processing with PIL (Pillow)
"Apple processing" with OpenCV3 + Python3
Python and hardware-Using RS232C with Python-
Python on Ruby and angry Ruby on Python
Image editing with python OpenCV
Notes on * args and ** kargs
Acoustic signal processing with Python (2)
Acoustic signal processing with Python
Sorting image files with Python (2)
Sorting image files with Python (3)
Notes on pyenv and Atom
[Python] Notes on data analysis
100 image processing knocks !! (001 --010) Carefully and carefully
Tweet with image in Python