Ask Your Question
0

projecting light and shadows on a surface.

asked 2013-05-01 18:24:30 -0600

hamid gravatar image

Hi I am trying to extract the lighting and the shadow from one surface and apply it to another type of surface. I convert the image to HSV and extract the Hue component and plot it which seems to give me a good indication of where the lighting and shadows are. However when I swap the hue component of the original image with my final image I get all sorts of greens and blues that are not desired. Are there any other techniques that can be used to project shadow and lighting?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-05-02 06:08:52 -0600

Guanta gravatar image

Swapping hue components? Seems like a strange way to adapt a light condition, I don't know if it goes that easy. Imho you need to get the correct light direction and light parameters, i.e. you need to model the light (e.g. via a Phong-model) and get all parameters for it from your source image - this is an optimization problem. Then you need to adapt these light parameters to your destination image, i.e. unlight it and relight it with your estimated parameters.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-01 18:24:30 -0600

Seen: 584 times

Last updated: May 02 '13