The Joy of Sampling

A standard method for handling Bayesian models is to use Markov chain Monte Carlo methods to draw samples from the posterior. We demonstrate this method on two core problems in computer vision—structure from motion and colour constancy. These examples illustrate a samplers producing useful representations for very large problems. We demonstrate that the sampled representations are trustworthy, using consistency checks in the experimental design. The sampling solution to structure from motion is strictly better than the factorisation approach, because: it reports uncertainty on structure and position measurements in a direct way; it can identify tracking errors; and its estimates of covariance in marginal point position are reliable. Our colour constancy solution is strictly better than competing approaches, because: it reports uncertainty on surface colour and illuminant measurements in a direct way; it incorporates all available constraints on surface reflectance and on illumination in a direct way; and it integrates a spatial model of reflectance and illumination distribution with a rendering model in a natural way. One advantage of a sampled representation is that it can be resampled to take into account other information. We demonstrate the effect of knowing that, in our colour constancy example, a surface viewed in two different images is in fact the same object. We conclude with a general discussion of the strengths and weaknesses of the sampling paradigm as a tool for computer vision.

[1]  E. Land,et al.  Lightness and retinex theory. , 1971, Journal of the Optical Society of America.

[2]  G. Buchsbaum A spatial processor model for object colour perception , 1980 .

[3]  Robert C. Bolles,et al.  Random sample consensus: a paradigm for model fitting with applications to image analysis and automated cartography , 1981, CACM.

[4]  Donald Geman,et al.  Stochastic Relaxation, Gibbs Distributions, and the Bayesian Restoration of Images , 1984, IEEE Transactions on Pattern Analysis and Machine Intelligence.

[5]  Anne Lohrli Chapman and Hall , 1985 .

[6]  B. Golden,et al.  Using simulated annealing to solve routing and location problems , 1986 .

[7]  H C Lee,et al.  Method for computing the scene-illuminant chromaticity from specular highlights. , 1986, Journal of the Optical Society of America. A, Optics and image science.

[8]  Andrew Blake,et al.  Visual Reconstruction , 1987, Deep Learning for EEG-Based Brain–Computer Interfaces.

[9]  Peter J. Rousseeuw,et al.  Robust regression and outlier detection , 1987 .

[10]  G. Kitagawa Non-Gaussian State—Space Modeling of Nonstationary Time Series , 1987 .

[11]  Brian D. Ripley,et al.  Stochastic Simulation , 2005 .

[12]  G. Kitagawa Non-Gaussian state space modeling of time series , 1987, 26th IEEE Conference on Decision and Control.

[13]  A. Kennedy,et al.  Hybrid Monte Carlo , 1987 .

[14]  N. E. Collins,et al.  Simulated annealing - an annotated bibliography , 1988 .

[15]  D. Mumford,et al.  Optimal approximations by piecewise smooth functions and associated variational problems , 1989 .

[16]  John Geweke,et al.  Evaluating the accuracy of sampling-based approaches to the calculation of posterior moments , 1991 .

[17]  U. Grenander,et al.  Structural Image Restoration through Deformable Templates , 1991 .

[18]  D. Rubin,et al.  Inference from Iterative Simulation Using Multiple Sequences , 1992 .

[19]  Kim L. Boyer,et al.  Perceptual organization using Bayesian networks , 1992, Proceedings 1992 IEEE Computer Society Conference on Computer Vision and Pattern Recognition.

[20]  B A Wandell,et al.  Linear models of surface and illuminant spectra. , 1992, Journal of the Optical Society of America. A, Optics and image science.

[21]  J. Alison Noble,et al.  Toward template-based tolerancing from a Bayesian viewpoint , 1993, Proceedings of IEEE Conference on Computer Vision and Pattern Recognition.

[22]  J. M. Sanz-Serna,et al.  Numerical Hamiltonian Problems , 1994 .

[23]  Olivier D. Faugeras,et al.  What can two images tell us about a third one? , 1994, ECCV.

[24]  Jitendra Malik,et al.  Automatic Symbolic Traffic Scene Analysis Using Belief Networks , 1994, AAAI.

[25]  Kim L. Boyer,et al.  Automated design of Bayesian perceptual inference networks , 1994, 1994 Proceedings of IEEE Conference on Computer Vision and Pattern Recognition.

[26]  Stuart J. Russell,et al.  Stochastic simulation algorithms for dynamic probabilistic networks , 1995, UAI.

[27]  J. Besag,et al.  Bayesian Computation and Stochastic Systems , 1995 .

[28]  David B. Dunson,et al.  Bayesian Data Analysis , 2010 .

[29]  P. Green Reversible jump Markov chain Monte Carlo computation and Bayesian model determination , 1995 .

[30]  Sylvia Richardson,et al.  Markov chain concepts related to sampling algorithms , 1995 .

[31]  David J. Spiegelhalter,et al.  Introducing Markov chain Monte Carlo , 1995 .

[32]  Walter R. Gilks,et al.  MCMC in image analysis , 1995 .

[33]  Walter R. Gilks,et al.  Introduction to general state-space Markov chain theory , 1995 .

[34]  Stan Z. Li,et al.  Markov Random Field Modeling in Computer Vision , 1995, Computer Science Workbench.

[35]  Walter R. Gilks,et al.  Bayesian model comparison via jump diffusions , 1995 .

[36]  Walter R. Gilks,et al.  Strategies for improving MCMC , 1995 .

[37]  Mark Jerrum,et al.  The Markov chain Monte Carlo method: an approach to approximate counting and integration , 1996 .

[38]  Brian D. Ripley,et al.  Pattern Recognition and Neural Networks , 1996 .

[39]  Jitendra Malik,et al.  Modeling and Rendering Architecture from Photographs: A hybrid geometry- and image-based approach , 1996, SIGGRAPH.

[40]  G. McLachlan,et al.  The EM algorithm and extensions , 1996 .

[41]  Joong-Kweon Sohn,et al.  Convergence Diagnostics for the Gibbs Sampler , 1996 .

[42]  Anil K. Jain,et al.  Vehicle Segmentation and Classification Using Deformable Templates , 1996, IEEE Trans. Pattern Anal. Mach. Intell..

[43]  Bill Triggs,et al.  Factorization methods for projective structure and motion , 1996, Proceedings CVPR IEEE Computer Society Conference on Computer Vision and Pattern Recognition.

[44]  Graham D. Finlayson,et al.  Color in Perspective , 1996, IEEE Trans. Pattern Anal. Mach. Intell..

[45]  M. J. Luque,et al.  Implementations of a novel algorithm for colour constancy , 1997, Vision Research.

[46]  Sylvia Richardson,et al.  Markov Chain Monte Carlo in Practice , 1997 .

[47]  P. Green,et al.  On Bayesian Analysis of Mixtures with an Unknown Number of Components (with discussion) , 1997 .

[48]  Luc Van Gool,et al.  Automatic 3D model building from video sequences , 1997, Eur. Trans. Telecommun..

[49]  David W. Jacobs,et al.  Linear fitting with missing data: applications to structure-from-motion and to characterizing intensity images , 1997, Proceedings of IEEE Computer Society Conference on Computer Vision and Pattern Recognition.

[50]  D H Brainard,et al.  Bayesian color constancy. , 1997, Journal of the Optical Society of America. A, Optics, image science, and vision.

[51]  A. Rukhin Bayes and Empirical Bayes Methods for Data Analysis , 1997 .

[52]  Brian V. Funt,et al.  Is Machine Colour Constancy Good Enough? , 1998, ECCV.

[53]  Joseph F. Traub,et al.  Complexity and information , 1999, Lezioni Lincee.

[54]  Song-Chun Zhu,et al.  Stochastic computation of medial axis in Markov random fields , 1998, Proceedings. 1998 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No.98CB36231).

[55]  Olivier D. Faugeras,et al.  3-D Reconstruction of Urban Scenes from Image Sequences , 1998, Comput. Vis. Image Underst..

[56]  Takeo Kanade,et al.  A unified factorization algorithm for points, line segments and planes with uncertainty models , 1998, Sixth International Conference on Computer Vision (IEEE Cat. No.98CH36271).

[57]  Andrew Zisserman,et al.  Robust computation and parametrization of multiple view relations , 1998, Sixth International Conference on Computer Vision (IEEE Cat. No.98CH36271).

[58]  Vladimir Pavlovic,et al.  Time-series classification using mixed-state dynamic Bayesian networks , 1999, Proceedings. 1999 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No PR00149).

[59]  Vladimir Pavlovic,et al.  A dynamic Bayesian network approach to figure tracking using learned dynamic models , 1999, Proceedings of the Seventh IEEE International Conference on Computer Vision.

[60]  S. Maybank,et al.  Minimum description length and the inference of scene structure from images , 1999 .

[61]  Alan L. Yuille,et al.  High-level and generic models for visual search: When does high level knowledge help? , 1999, Proceedings. 1999 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (Cat. No PR00149).

[62]  Michael Isard,et al.  Object localization by Bayesian correlation , 1999, Proceedings of the Seventh IEEE International Conference on Computer Vision.

[63]  O. Barndorff-Nielsen,et al.  Stochastic Geometry , 1999 .

[64]  David A. Forsyth,et al.  Finding people by sampling , 1999, Proceedings of the Seventh IEEE International Conference on Computer Vision.

[65]  P. Fearnhead,et al.  An improved particle filter for non-linear problems , 1999 .

[66]  Frank Dellaert,et al.  Structure from motion without correspondence , 2000, Proceedings IEEE Conference on Computer Vision and Pattern Recognition. CVPR 2000 (Cat. No.PR00662).

[67]  Rong Zhang,et al.  Integrating bottom-up/top-down for object recognition by data driven Markov chain Monte Carlo , 2000, Proceedings IEEE Conference on Computer Vision and Pattern Recognition. CVPR 2000 (Cat. No.PR00662).

[68]  Tim B. Swartz,et al.  Approximating Integrals Via Monte Carlo and Deterministic Methods , 2000 .

[69]  Nando de Freitas,et al.  Sequential Monte Carlo Methods in Practice , 2001, Statistics for Engineering and Information Science.

[70]  Philip H. S. Torr,et al.  The Development and Comparison of Robust Methods for Estimating the Fundamental Matrix , 1997, International Journal of Computer Vision.

[71]  Paul A. Beardsley,et al.  Sequential Updating of Projective and Affine Structure from Motion , 1997, International Journal of Computer Vision.

[72]  David A. Forsyth,et al.  A novel algorithm for color constancy , 1990, International Journal of Computer Vision.

[73]  Michael Isard,et al.  CONDENSATION—Conditional Density Propagation for Visual Tracking , 1998, International Journal of Computer Vision.

[74]  Song-Chun Zhu,et al.  Filters, Random Fields and Maximum Entropy (FRAME): Towards a Unified Theory for Texture Modeling , 1998, International Journal of Computer Vision.

[75]  Christopher M. Brown,et al.  The theory and practice of Bayesian image labeling , 1990, International Journal of Computer Vision.

[76]  Takeo Kanade,et al.  Shape and motion from image streams under orthography: a factorization method , 1992, International Journal of Computer Vision.

[77]  Takeo Kanade,et al.  A Multibody Factorization Method for Independently Moving Objects , 1998, International Journal of Computer Vision.

[78]  J. Rosenthal,et al.  Markov Chain Monte Carlo , 2018 .

[79]  Charles J. Geyer,et al.  Likelihood inference for spatial point processes , 2019, Stochastic Geometry.

[80]  Jesper Møller,et al.  Markov chain Monte Carlo and spatial point processes , 2019, Stochastic Geometry.