Processing images to show subtle colors and motion
By now, you have probably captured some exposure-bracketed photos and time-lapse photos. Upload them onto your computer using a photo management application, a file browser, or the following gPhoto2 command:
$ gphoto2 --get-all-files
The latter command will upload the files to the current working directory.
We will merge exposure-bracketed photos to create HDR images, which will improve color rendition in shadows and highlights. Similarly, we will merge time-lapse photos to create time-lapse videos, which will show gradual motion on an accelerated scale. We will start by processing some of the sample photos from the book's GitHub repository at https://github.com/OpenCVBlueprints/OpenCVBlueprints/tree/master/chapter_2/CameraTrap/media, and then you will be able to adapt the code to use your photos instead.
Creating HDR images
OpenCV 3 has a new module called "photo". Two of its classes, MergeDebevec
and MergeMertens
, create an...