seanbell / intrinsic

Code for Bell et al, "Intrinsic Images in the Wild", SIGGRAPH 2014.
MIT License
153 stars 33 forks source link

recover RGB input #8

Open cy-xu opened 4 years ago

cy-xu commented 4 years ago

Thank you for this great work.

I have trouble recover the input image faithfully from the decomposed shading and reflectance. I used RGB images and checked sRGB true during the decomposition process. So all output should be sRGB as well.

I perform element-wise multiplication on both shading and reflectance (both normalized to [0,1]) but the result is a lot brighter than the original.

Should I treat internet INT8 images as linear instead of sRGB during loading?

I went through the code but couldn't find anything on reconstructing the input image from the decomposed shading and reflectance, could you please remind me?

Thanks again.