You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just to verify, is the estimation in RGB order or BGR order when you apply to corrected image.
The code below shows how you apply the estimation to the image. Based on my understanding, you flip the channel order to RGB (img[:,:,::-1]/ 65535) and apply the estimation gain, then you flip back the channel order to BGR corrected = np.power(img[:,:,::-1] / 65535 / est[None, None, :] * np.mean(est), 1/2.2)[:,:,::-1]
So the estimation is in RGB order.
Thank you for your answer
The text was updated successfully, but these errors were encountered:
Just to verify, is the estimation in RGB order or BGR order when you apply to corrected image.
The code below shows how you apply the estimation to the image. Based on my understanding, you flip the channel order to RGB (img[:,:,::-1]/ 65535) and apply the estimation gain, then you flip back the channel order to BGR
corrected = np.power(img[:,:,::-1] / 65535 / est[None, None, :] * np.mean(est), 1/2.2)[:,:,::-1]
So the estimation is in RGB order.
Thank you for your answer
The text was updated successfully, but these errors were encountered: