How to decomposes image into detail layer
I convert Image into CIELab color space. After that I split Image into 3 channels are Lightness,a,b . So I have 2 questions
- How can I decompose Lightness channel into Detail Layer.
- Assume I have a new Detail Layer. How can I combine with Lightness,a,b channels.
This is an example detail layer.
Image credit from "https://inst.eecs.berkeley.edu/~cs194-26/fa14/upload/files/projFinalUndergrad/cs194-ew/img/hdr/memorial/memorial.detail.jpg"
"detail layer" might need some explanation. opencv does not know it
Your image comes from here where we have the quote:
In log space, I filter the image with a bilateral filter and then subtract the filtered image from the log intensity image in order to retrieve the detail layer.
So like @Eduardo says, apply those functions, which are in OpenCV, and you will end up with this result!