What is the Space of Camera Responses? Michael Grossberg and Shree Nayar CAVE Lab, Columbia University IEEE CVPR Conference June 2003, Madison, USA Partially funded by NSF ITR Award, DARPA/ONR MURI
The Camera Response Scene Radiance Linear Function (Optical Attenuation) Image Irradiance Ls E 0255 Non-Linear Camera Response Image Intensity B f
Impact of Camera Response Accurate scene radiance required for Color Constancy Creating Accurate High Dynamic Range Images Photometric Stereo Shape from Shading Inverse Rendering Measuring BRDF from Images
Response Model for Recovery Charts: Known Reflectance Known Reflectance [Sawchuk, 77 Chang and Reid, 96] [Debevec and Malik, 1997, Mann, 2000, Mann, 2000, Mann and Picard, 1995, Mitsunaga and Nayar, 1999, Tsin et al., 2001] Multiple Images: Changing Exposure Changing Exposure Breaking Ambiguities [ Grossberg, Nayar, 2002] Model Required for Interpolation
Response Normalization and Monotonicity Irradiance E Intensity B Dark Current Level Saturation Level Normalize Monotonicity Key Property: Makes response invertible Irradiance E f Camera Response
Space of Response Functions Let The space of all functions with Inequalities: Cone of monotonic functions 01 Space of theoretical response functions
Linear Model of Response f0f0 h f M-order linear approximation model: M-order linear approximation model: base responseparameters of modelbasis functions h1h1 h2h2 f0f0 f
Choosing a Basis Possible basis h 1, h 2, … Possible basis h 1, h 2, … Which basis is best? Which basis is best? – Depends on which response functions occur Irradiance Intensity h1h1h1h1 h2h2h2h2 h3h3h3h3 h4h4h4h4 Polynomial basis, h4h4h4h4 Irradiance Intensity h2h2h2h2 h1h1h1h1 h3h3h3h3 Trigonometric basis,
Film Positive, negative, consumer, professional, color, b/w Agfacolor Futura Agfachrome RX-II Fuji F125 Fuji FDIC Kodak Advanced Kodak Gold … Database of Response Functions (DoRF) Collected 201 response curves from : CCDs Kodak's KAI and KAF series … Digital/Video Sony DC 950 Canon Optura Gamma curves …
Sample curves Normalized Brightness Agfachrome CTPrecisa100 Green Agfachrome RSX2 050 Blue Agfacolor Futura 100 Green Agfacolor HDC 100 plus Green Agfacolor Ultra 050 plus Green Agfapan APX 025 Agfa Scala 200x Cannon Optura Fuji F125 Green Fuji F400 Green Kodak Ektachrome-100plus Green Kodak Ektachrome-64 Green Kodak KAF2001 CCD Kodak KAI0372 CCD Kodak Max Zoom 800 Green Sony DXC-950 Irradiance gamma curve, g =0.6 gamma curve, g =1.0 gamma curve, g =1.4 gamma curve, g =1.8 Kodak DCS 315 Green Intensity Evaluate Bases Using DoRF: Good basis provides good approximation with few parameters
Empirical Model of Response (EMoR) Build Basis using DoRF 175 training curves, 26 testing curves Apply PCA to DoRF f 0, h 1, h 2, …. 99.5% of energy in first 3 dimensions Normalized Response Normalized Response Irradiance Intensity Mean CurvePrincipal Components Percent of Energy Percent h1h1 h2h2 h3h3 h4h4 Principal Components Energy Irradiance Intensity
h 1 h 2 h 3 h Mean Curve Irradiance Intensity Irradiance Intensity Principal Components Percent Principal Components Energy Log basis: Log model Generalizes gamma curves Log EMoR Apply PCA to Log DoRF 99.6% of energy in first 3 dimensions Log Model of Response (Log EMoR) base response parameters of model basis functions
Monotonic Approximation Monotonicity: Linear inequalities in c n Linear inequalities in c n Derivative at Unity Gamma Curves Other DoRF Curves Gamma = 0.2 Gamma = Derivative at Origin Derivative at Unity Monotonic functions Least Squares error: Quadratic Programming 2 Principal Components
EMoR/Log EMoR Model Evaluation 4.12E E E E E E E E E E E E E E E E E E E E E E Mean RMSE Mean Disparity Parameters EMoR Model Accuracy: 6.8 bits 9.0 bits8.3 bits Mean Disparity 7.04E E E E E E E E E E E-04 Log EMoR Model Mean RMSE Parameters 1.11E E E E E E E E E E E-03 Accuracy: 6.8 bits 8.4 bits8.6 bits
Models Compared E-02 N. A. N. A. N. A. N. A. N. A. N. A. 7.37E E E E E E E E E E E E E E E E E E E E E-04 Model Gamma Polynomial Trigonometric EMoR Parameters Accuracy: 4.8 bits5.9 bits5.3 bits7.3 bits RMSE Error E-01 N. A. N. A. N. A. N. A. N. A. N. A. 4.22E E E E E E E E E E E E E E E E E E E E E-02 Model Gamma Polynomial Trigonometric EMoR Parameters Accuracy: 2.0 bits2.2 bits1.9 bits3.9 bits Disparity Error
Normalized Brightness Other chart values Chart values used for fit Monotonic EMoR Monotonic polynomial EMoR Polynomial Response from Sparse Samples Normalized Irradiance Camera Response Normalized Intensity
Response from Multiple Images Inverse Camera Response Data from chart Monotonic EMoR Mitsunaga-Nayar (Polynomial) Debevec-Malik = 8 (Log space) Debevec-Malik = 32 (Log space) Debevec-Malik = 128 (Log space) Normalized Irradiance Normalized Intensity
Summary Determined Space of Response functionsDetermined Space of Response functions –Intersection of cone and plane Linear and Log approximation modelsLinear and Log approximation models –Generalized previous models Database of Response Functions (DoRF)Database of Response Functions (DoRF) –Evaluate models Empirical Model of Response (EMoR)Empirical Model of Response (EMoR) –Superior model of camera response based on DoRF DoRF and EMoR available for downloadDoRF and EMoR available for download from from
Colors