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.