How to decomposes image into detail layer

asked 2016-09-03 23:40:08 -0600

virut26 gravatar image

updated 2016-09-04 20:42:27 -0600

I convert Image into CIELab color space. After that I split Image into 3 channels are Lightness,a,b . So I have 2 questions

  1. How can I decompose Lightness channel into Detail Layer.
  2. Assume I have a new Detail Layer. How can I combine with Lightness,a,b channels.

This is an example detail layer.

image description

Image credit from "https://inst.eecs.berkeley.edu/~cs194-26/fa14/upload/files/projFinalUndergrad/cs194-ew/img/hdr/memorial/memorial.detail.jpg"

edit retag flag offensive close merge delete

Comments

1

"detail layer" might need some explanation. opencv does not know it

berak gravatar imageberak ( 2016-09-04 00:38:59 -0600 )edit
2

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.

Eduardo gravatar imageEduardo ( 2016-09-04 15:51:56 -0600 )edit

So like @Eduardo says, apply those functions, which are in OpenCV, and you will end up with this result!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-09-05 04:20:25 -0600 )edit