How to detecting charts in over-exposed HDRI images? #25
Unanswered
ahemberger
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Hi @ahemberger, What about normalising your image by its mean and 18% gray before trying to detect the colour checker: >>> import numpy as np
>>> RGB = np.random.random([2048, 4096, 3])
>>> RGB *= 2**8
>>> np.mean(RGB)
127.98784742921099
>>> RGB *= 1 / np.mean(RGB) * 0.18
>>> np.mean(RGB)
0.17999999999999969 You could store the factor to reciprocally rescale after the detection? |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I'm trying to build a small pipeline for myself at home whereby I a) collect bracketed exposures using a pano head on a tripod, 2) stitch these into an equirectangular HDR image using ptGui, with the ultimate intent of 3) using the output as an IBL for vfx purposes.
I would love to take ptGUI's output and auto-detect a MacBeth chart in my panorama, then use this project to neutralize my panorama (and also use it to neutralize a plate that I've shot separately). The output of ptGUI doesn't seem to choose the "middle" exposure from a sequence as its exposure setting when exporting an HDR panorama, however, and this seems to cause this tool to fail to find the chart.
I'm curious what my most efficient path forward might be. I could bring the panorama into nuke or photoshop to stop it up until it appears more visually-reasonable before feeding it to colour-checker-detection, but I would love to skip this step if I can. Is there a way – either in this module or in colour itself – that I can pre-process my image to encourage the segmentation code to find the chart properly?
Thanks so much!
--a
Beta Was this translation helpful? Give feedback.
All reactions