Inverting the Reflectance Map with Binary Search

Similar documents
An Efficient Numerical Inverse Scattering Algorithm for Generalized Zakharov-Shabat Equations with Two Potential Functions

Tacked Link List - An Improved Linked List for Advance Resource Reservation

HySCaS: Hybrid Stereoscopic Calibration Software

A million pixels, a million polygons: which is heavier?

An Experimental Assessment of the 2D Visibility Complex

Fuzzy sensor for the perception of colour

Fault-Tolerant Storage Servers for the Databases of Redundant Web Servers in a Computing Grid

SDLS: a Matlab package for solving conic least-squares problems

BoxPlot++ Zeina Azmeh, Fady Hamoui, Marianne Huchard. To cite this version: HAL Id: lirmm

3D and Appearance Modeling from Images

Malware models for network and service management

Robust IP and UDP-lite header recovery for packetized multimedia transmission

Setup of epiphytic assistance systems with SEPIA

How to simulate a volume-controlled flooding with mathematical morphology operators?

Multimedia CTI Services for Telecommunication Systems

Frequency-Based Kernel Estimation for Progressive Photon Mapping

Traffic Grooming in Bidirectional WDM Ring Networks

Reverse-engineering of UML 2.0 Sequence Diagrams from Execution Traces

KeyGlasses : Semi-transparent keys to optimize text input on virtual keyboard

Motion-based obstacle detection and tracking for car driving assistance

Quasi-tilings. Dominique Rossin, Daniel Krob, Sebastien Desreux

Regularization parameter estimation for non-negative hyperspectral image deconvolution:supplementary material

A Generic Architecture of CCSDS Low Density Parity Check Decoder for Near-Earth Applications

Prototype Selection Methods for On-line HWR

Deformetrica: a software for statistical analysis of anatomical shapes

Real-time FEM based control of soft surgical robots

DETERMINATION OF THE TRANSDUCER VELOCITIES IN A SONAR ARRAY USING DIGITAL ACOUSTICAL HOLOGRAPHY

ASAP.V2 and ASAP.V3: Sequential optimization of an Algorithm Selector and a Scheduler

Comparison of radiosity and ray-tracing methods for coupled rooms

DSM GENERATION FROM STEREOSCOPIC IMAGERY FOR DAMAGE MAPPING, APPLICATION ON THE TOHOKU TSUNAMI

Real-Time Collision Detection for Dynamic Virtual Environments

An FCA Framework for Knowledge Discovery in SPARQL Query Answers

Relabeling nodes according to the structure of the graph

Teaching Encapsulation and Modularity in Object-Oriented Languages with Access Graphs

lambda-min Decoding Algorithm of Regular and Irregular LDPC Codes

Moveability and Collision Analysis for Fully-Parallel Manipulators

Interaction between ring shaped permanent magnets with symbolic gradients: application to magnetic bearing system optimization

Primitive roots of bi-periodic infinite pictures

Sliding HyperLogLog: Estimating cardinality in a data stream

Tabulation and Completion of Measured BRDF Data for Lighting Computations

Quality of Service Enhancement by Using an Integer Bloom Filter Based Data Deduplication Mechanism in the Cloud Storage Environment

A Resource Discovery Algorithm in Mobile Grid Computing based on IP-paging Scheme

A Methodology for Improving Software Design Lifecycle in Embedded Control Systems

Taking Benefit from the User Density in Large Cities for Delivering SMS

Accurate Conversion of Earth-Fixed Earth-Centered Coordinates to Geodetic Coordinates

Structuring the First Steps of Requirements Elicitation

Change Detection System for the Maintenance of Automated Testing

Representation of Finite Games as Network Congestion Games

A Voronoi-Based Hybrid Meshing Method

Linked data from your pocket: The Android RDFContentProvider

Comparator: A Tool for Quantifying Behavioural Compatibility

Assisted Policy Management for SPARQL Endpoints Access Control

DANCer: Dynamic Attributed Network with Community Structure Generator

Comparison of spatial indexes

A case-based reasoning approach for unknown class invoice processing

Mokka, main guidelines and future

NP versus PSPACE. Frank Vega. To cite this version: HAL Id: hal

A Fuzzy Approach for Background Subtraction

Blind Browsing on Hand-Held Devices: Touching the Web... to Understand it Better

FIT IoT-LAB: The Largest IoT Open Experimental Testbed

Very Tight Coupling between LTE and WiFi: a Practical Analysis

Computing and maximizing the exact reliability of wireless backhaul networks

Decomposition of a curve into arcs and line segments based on dominant point detection

SLMRACE: A noise-free new RACE implementation with reduced computational time

Scale Invariant Detection and Tracking of Elongated Structures

The optimal routing of augmented cubes.

Multi-atlas labeling with population-specific template and non-local patch-based label fusion

A Practical Evaluation Method of Network Traffic Load for Capacity Planning

Study on Feebly Open Set with Respect to an Ideal Topological Spaces

Service Reconfiguration in the DANAH Assistive System

Every 3-connected, essentially 11-connected line graph is hamiltonian

MUTE: A Peer-to-Peer Web-based Real-time Collaborative Editor

Developing interfaces for the TRANUS system

QAKiS: an Open Domain QA System based on Relational Patterns

Learning Object Representations for Visual Object Class Recognition

Throughput prediction in wireless networks using statistical learning

YANG-Based Configuration Modeling - The SecSIP IPS Case Study

Continuous Control of Lagrangian Data

Stream Ciphers: A Practical Solution for Efficient Homomorphic-Ciphertext Compression

A Simple Layered RGB BRDF Model

Open Digital Forms. Hiep Le, Thomas Rebele, Fabian Suchanek. HAL Id: hal

Application of Artificial Neural Network to Predict Static Loads on an Aircraft Rib

The Connectivity Order of Links

Efficient Gradient Method for Locally Optimizing the Periodic/Aperiodic Ambiguity Function

A case-based reasoning approach for invoice structure extraction

Natural Language Based User Interface for On-Demand Service Composition

Experimental Evaluation of an IEC Station Bus Communication Reliability

LaHC at CLEF 2015 SBS Lab

The New Territory of Lightweight Security in a Cloud Computing Environment

Collision Avoidance on Shared Slots in a Wireless Slotted Network: Models and Simulations

Efficient implementation of interval matrix multiplication

Lossless and Lossy Minimal Redundancy Pyramidal Decomposition for Scalable Image Compression Technique

Detecting Anomalies in Netflow Record Time Series by Using a Kernel Function

X-Kaapi C programming interface

Evolutionary Cutting Planes

FPGA implementation of a real time multi-resolution edge detection video filter

QuickRanking: Fast Algorithm For Sorting And Ranking Data

A novel coupled transmission-reflection tomography and the V-line Radon transform

Using Isolation Spheres for Cooperative Processes Correctness

Scalewelis: a Scalable Query-based Faceted Search System on Top of SPARQL Endpoints

Transcription:

Inverting the Reflectance Map with Binary Search François Faure To cite this version: François Faure. Inverting the Reflectance Map with Binary Search. Lecture Notes in Computer Science, Springer, 1995, 97, pp.814 819. <inria-537544> HAL Id: inria-537544 https://hal.inria.fr/inria-537544 Submitted on 18 Nov 21 HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers. L archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

Inverting the Reflectance Map with Binary Search François Faure faure@imag.fr imagis/imag,bp53 3841 Grenoble cedex 9 tel +33 76 63 57 94, fax +33 76 44 66 75 Abstract. Stereophotometric computer vision is based on the inversion of an equation system which represents the physical reflection phenomenon under different lighting conditions. In noisy conditions, the system has generally no solution, and the typical way to solve it is to find the solution which minimizes some error function. This paper proposes a new approach to deal with this system, using the so-called Geometrical Compatibility Function. The problem is turned into a root-finding in a one-dimensional space and the robustness is largely improved with respect to wrong reflectance model coefficients. 1 Introduction 1.1 BRDF and the surface model Stereophotometric methods for computer vision, first introduced by Woodham [7], aim to locally compute from different images the tangent plane at each point of a surface, in order to deduce a surface model. They are based on the knowledge of the Bidirectionnal Reflection Distribution Function (BRDF), which represents the scattering of reflected light through the directions of the local exterior halfspace (fig. 1). Most real-world materials do not have the Lambertian property which leads to linear equations. There are typically two kinds of non-lambertian phenomenons: specularities and specular diffuse reflection. Specularities (mirror-like reflections) were much studied in order to avoid their influence on the computation, or to use them for geometrical deductions [1, 2, 3]. The approach is to treat them apart from diffuse reflection. The specular diffuse reflection is difficult to deal with, since it needs knowledge of the BRDF and involves more complex and unstable equations. It was shown [4] that for a large class of BRDFs, three equations ( thus three images ) are needed to obtain a unique solution. The problem is that the BRDF is usually unknown, thus approximations lead to errors in the reconstruction of the normals. imagis is a joint project CNRS,IMAG, INPG, INRIA, UJF

camera light source v n specular direction s local tangent plane Fig. 1. The grey 3d-surface represents the values of a plausible non-lambertian BRDF (n, s, v) for different viewing directions 1.2 Computing the normals The input data is composed of several images created under different known lighting conditions. From a physical point of view [6, 5], radiance L r cast through direction v is quantified by the expression: L r (n, v) = L(s)n.sBRDF (n, s, v)dω i (1) Ω where L(s) is the irradiance from direction s, expressed in W.m 2.st 1, and Ω the exterior half-space. When the BRDF is known, and with three available images, equation 1 and numerical data allow us to build equation systems, the solution of which provide the local normal coordinates on a regular grid n(i, j) which corresponds to the pixels grid. 2 A new method for computing the normals 2.1 Creating the equation system In order to simplify equations, the light source is typically assumed to be a single point at infinity, of known power, and we will only deal with diffuse reflection, without interreflections. The radiance equation 1 becomes L r (s, n, v) = L(s)n.sBRDF (n, s, v) with L(s) expressed in W.m 2. In the case of a non- Lambertian reflection [8, 9, 1], the system: L r (s 1, n, v) = L 1 L r (s 2, n, v) = L 2 L r (s 3, n, v) = L 3 is not linear, and has no root in case of noisy data or inappropriate BRDF. With a two-equation system, there are two solutions in the general case. The classical approach is to minimize some cost function like the quadratic difference between estimated and measured radiances. The dimensions of the search space may be two or three, depending on how you parametrize the normal.

2.2 Root-Finding Resolution Principle. Most BRDFs used for reconstruction are functions of n.v and n.s, like those of Blinn, or Torrance-Sparrow. We will use one suggested by Lewis [5], for its physically plausible analytical form, which leads to the radiance relation n.s + n.v L(n, s, v) = L(s)n.s(K d + K s ( s + v )n ) (2) where K d, K s and n are independent real coefficients. The first one corresponds to the Lambertian part of the reflection, the others define what is usually called the forescatter lobe. Notice that this radiance function is monotonically increasing with respect to n.s and n.v. This means that, for measured values R and L(s), given a certain n.v, you can find the corresponding n.s = ns(n.v) with a binary search. The problem is to know the value of n.v. For three images taken with a fixed camera and different known lighting directions, it is easy to compute the a i coefficients such that v = a 1 s 1 + a 2 s 2 + a 3 s 3. The linearity of the dot product leads to n.v = a 1 n.s 1 +a 2 n.s 2 +a 3 n.s 3. Replacing the ns i (n.v) functions in the above relation creates a function that we will call the Geometrical Compatibility Function (GCF), and the desired value must be a root of this function (fig.2): a 1 ns 1 (n.v) + a 2 ns 2 (n.v) + a 3 ns 3 (n.v) n.v = ns GCF(nv) ns1 ns2 ns3 ns(nv) 1 ns(nv) 2 ns(nv) 3 nv Fig. 2. The root provides the desired ns i values Validity of the method. The necessary condition to create the Geometrical Compatibility Function is that the light directions must be linearly independent. A sufficient condition for the uniqueness of the root is that all the a i were positive, and the BRDF monotonic with respect to n.v and n.s. It means that for most reflection models, with the camera inside the (s 1, s 2, s 3 ) trihedron, we can implement efficient binary search resolutions. It might seem strange that the radiance equations system has no root whereas the above function does. The reason is that we did not enforce the n = 1 condition. This allows us to define a measure of quality defined as e = (n 2 1) 2. This error will further be denoted as estimated error. The normal is then renormalized. Numerical experiments detailed further show that it is a reliable quality

evaluator. Compared with a, a root-finding has the advantage to provide an exact bracketing of the solution for any desired precision. We can also expect a quicker convergence. Extension to different points of view This method is based on the fact that n.v is the same for each image when you change only the lighting source. For three images with the same source and different camera positions, the geometrical compatibility equation turns into s = a 1 v 1 + a 2 v 2 + a 3 v 3 and the method can be adapted. 3 Experimentation The was implemented with a Powell s algorithm, whereas the rootfinding used a Newton-Raphson algorithm [11]. Numerous tries were made to compare the robustness of the two methods. A theoretical 64 64 surface was created, represented by points and normals. Three illuminations were simulated, the radiances for each pixel were computed with radiance equation 2. The important features are robustness with respect to false reflection coefficients (K d, K s, n) and noisy data. The error function we use is the standard deviation between the initial and reconstructed normals. This value will be useful for two reasons: measuring the quality of the reconstruction, and if the estimated error is correctly related to the real error. It is actually important to know whether the estimated error is reliable or not, because if it is, we can expect to improve our reconstructions by minimizing the error with respect to the reflection coefficients. The following figures show the influence of a wrong K s on the accuracy of reconstruction. The surface is Lambertian when K s =. The curves are very similar for K d. For wrong n values, both methods lead almost to the same result. The horizontal axis shows the different values K s, whereas K d and n are correct. The vertical axis shows the average deviation in degrees of the objective errors of the two methods, and the value of the estimated error. For clarity, the estimated error of the classical approach was not drawn..35.3 ERRORS IN NOISELESS CONDITIONS FOR A QUASI-LAMBERTIAN SURFACE (1,.1,1).35.3 ERRORS IN NOISELESS CONDITIONS FOR A NON-LAMBERTIAN SURFACE (.3,.6,3).25.25.2.2.15.15.1.1.5.5.5.1.15.2.4.45.5.55.6.65.7.75 Fig. 3. Fig. 4.

The above figures show the different errors in noiseless conditions for a quasi- Lambertian surface (fig. 3) and for a non-lambertian one(fig. 4). We can see that root-finding is much less sensitive to wrong coefficients. The estimated error can lead to the exact ones..35.3 ERRORS IN REALISTIC CONDITIONS FOR A QUASI-LAMBERTIAN SURFACE (1,.1,1).35.3 ERRORS IN REALISTIC CONDITIONS FOR A NON-LAMBERTIAN SURFACE (.3,.6,3).25.25.2.2.15.15.1.1.5.5.5.1.15.2.4.45.5.55.6.65.7.75 Fig. 5. Fig. 6. Figures 5 and 6 show the results with the same surfaces and a white, Gaussian noise with a standard deviation of two percent, which is a sensible value for modelizing real conditions. The new approach seems more sensitive to noisy data, since the error is bigger around the exact coefficients. However, wrong coefficients quickly compensate and reverse the difference. It means that in ordinary conditions we can expect a better reconstruction with unknown coefficients. Furthermore, the estimated error keeps a minimum around the exact coefficient, this will be helpful to improve it. Further tries showed that this minimum corresponds more precisely to the exact coefficients than the estimated error of the classical approach. Once we have the best coefficients, we can always improve the result by. The total time, including normal reconstruction, integrabilization, and integration is less than five minutes for a 512 512 surface on an standard SGI INDY workstation. 4 Conclusion Considering the Geometrical Compatibility Equation allows us to turn the normal reconstruction into a root-finding problem. For a large class of reflectance models, the root is unique and can be found with binary search. This approach is continuously suitable from Lambertian to non-lambertian surfaces. Different tries were made to compare the efficiency of this method with a classical approach under the same hypotheses. The root-finding seems more sensitive to noisy data but much less with respect to wrong reflectance coefficients. The provided estimated error is smooth and has one minimum around the exact coefficients. This new approach could be useful for non-lambertian or quasi-lambertian surfaces, whose reflectance function is almost always unknown.

References 1. Katsushi Ikeuchi Determining surface orientations of specular surfaces by using the photometric stereo method IEEE PAMI-3, No 6, November 1991 2. S. W. Lee and R. Bajcsy Detection of Specularity Using Color and Multiple Views GRASP Laboratory, Philadelphia, PA 1982 3. G. J. Klinker, S. A. Shafer and T. Kanade The Measurement of Highlight in Color Images IJCV 2. 7-32, 1988 4. H. D. Tagare and R.J.P. de Figueiredo A Theory of Photometric Stereo for a Class of Diffuse Non-Lambertian Surfaces IEEE PAMI Vol 13, No 2, February 1991 5. R.R. Lewis Making shaders more physically plausible Fourth Eurographics Workshop on Rendering, Paris, 1993. 6. M. Oren and S.K. Nayar Seeing beyond Lambert s law eccv 1994 7. R.J.Woodham Photometric method for determining surface orientation from multiple images Optical Engineering, 19, 198, p.139 8. J. F. Blinn Models of light reflection for computer synthesized pictures ACM Computer Graphics (SIGGRAPH 77), 19(1):542-547, 1977 9. K. Torrance and E. Sparrow Theory for off-specular reflection from rough surfaces Journal of the Optical Society of America, 57:115-1114, September 1967 1. X.D.He, K.E. Torrance, F.X. Sillion,D.P. Greenberg A comprehensive physical model for light reflection Computer Graphics, Vol. 2, No 4, pp. 143-15, August 1986 11. Press, Teukolski, Vetterling and Flannery Numerical Recipes in C Cambridge University Press This article was processed using the LaT E X macro package with LLNCS style