Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 16566

How to add the shadows from input image into the output image?

$
0
0

I have created a python script where I am getting an image of a room, I am segmenting the "floor" in that image and replacing it with my own textures. Its done but I need to add the shadows from the original image into my output image. Please help me. Thanks in advance

There are some sources of light in the original photo. So, I have added some glare and shadows by extracting the L channel from the original image in LAB colorspace and replacing it in the resulting image with some transparency.


Viewing all articles
Browse latest Browse all 16566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>