원시데이터 수집 시스템
선정목록으로

Computational luminance constancy from naturalistic images

관련 모빌리티 소재 · (3) 자동차 인테리어 소재

기본 정보

저자
  1. Vijay Singh — Computational Neuroscience Initiative, Department of Physics, University of Pennsylvania, Philadelphia, PA, USA|||vsin@sas.upenn.edu
  2. Nicolas P. Cottaris — Department of Psychology, University of Pennsylvania, Philadelphia, PA, USA|||cottaris@sas.upenn.edu
  3. Benjamin S. Heasly — benjamin.heasly@gmail.com|||Department of Psychology, University of Pennsylvania, Philadelphia, PA, USA
  4. David H. Brainard — Department of Psychology, University of Pennsylvania, Philadelphia, PA, USA|||brainard@psych.upenn.edu
  5. Johannes Burge — Neuroscience Graduate Group, Bioengineering Graduate Group, Department of Psychology, University of Pennsylvania, Philadelphia, PA, USA|||jburge@psych.upenn.edu
DOI
10.1167/18.13.19
저널
Journal of Vision
발행년도
2018
발행기관
Association for Research in Vision and Ophthalmology
피인용수
12
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1167/18.13.19
토픽
Color Science and Applications
OpenAlex ID
W2952955889

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (3) 자동차 인테리어 소재
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 자동차 인테리어 소재' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

The human visual system supports stable percepts of object color even though the light that reflects from object surfaces varies significantly with the scene illumination. To understand the computations that support stable color perception, we study how estimating a target object's luminous reflectance factor (LRF; a measure of the light reflected from the object under a standard illuminant) depends on variation in key properties of naturalistic scenes. Specifically, we study how variation in target object reflectance, illumination spectra, and the reflectance of background objects in a scene impact estimation of a target object's LRF. To do this, we applied supervised statistical learning methods to the simulated excitations of human cone photoreceptors, obtained from labeled naturalistic images. The naturalistic images were rendered with computer graphics. The illumination spectra of the light sources and the reflectance spectra of the surfaces in the scene were generated using statistical models of natural spectral variation. Optimally decoding target object LRF from the responses of a small learned set of task-specific linear receptive fields that operate on a contrast representation of the cone excitations yields estimates that are within 13% of the correct LRF. Our work provides a framework for evaluating how different sources of scene variability limit performance on luminance constancy.

본문 85,903자

본문 펼치기
1 1 ## Computational Luminance Constancy from Natural- 2 ## istic Images #### Vijay Singh # Department of Physics, University of Pennsylvania, PA, USAComputational Neuroscience Initiative v ) 3 #### Nicolas P. Cottaris # Department of Psychology, University of Pennsylvania, PA, USA v ) #### Benjamin S. Heasly # Department of Psychology, University of Pennsylvania, PA, USA v ) #### David H. Brainard # Department of Psychology, University of Pennsylvania, PA, USA v ) #### Johannes Burge # Department of Psychology, University of Pennsylvania, PA, USANeuroscience Graduate Group v ) 4 The human visual system supports stable percepts of object color even though the light that reflects from object 5 surfaces varies significantly with the scene illumination. To understand the computations that support stable color 6 perception, we study how estimating a target object’s luminous reflectance factor (LRF; a measure of the light re 7 flected from the object under a standard illuminant) depends on variation in key properties of naturalistic scenes. 8 Specifically, we study how variation in target object reflectance, illumination spectra, and the reflectance of back 9 ground objects in a scene impact estimation of a target object’s LRF. To do this, we applied supervised statistical 10 learning methods to the simulated excitations of human cone photoreceptors, obtained from labeled naturalistic im 11 ages. The naturalistic images were rendered with computer graphics. The illumination spectra of the light sources 12 and the reflectance spectra of the surfaces in the scene were generated using statistical models of natural spectral 13 variation. Optimally decoding target object LRF from the responses of a small learned set of task-specific linear 14 receptive fields that operate on a contrast representation of the cone excitations yields estimates that are within 15 13% of the correct LRF. Our work provides a framework for evaluating how different sources of scene variability limit 16 performance on luminance constancy. 17 Keywords: color constancy, luminance constancy, supervised learning Singh, Cottaris, Heasly, Brainard, & Burge 2 #### 18 Introduction 19 The perceived color of an object has important behavioral implications because color helps to identify objects and their 20 surface properties (Mollon, 1989; Jacobs, 1981). The computational challenge underlying object color perception is that the 21 light reflected from an object depends not just on the object’s surface reflectance, but also on object-extrinsic factors such as the 22 scene illumination, the pose of the object, and the viewpoint of the observer in the scene (Fig. 1a). To compute a perceptual 23 representation of object color that is correlated with the object’s physical surface reflectance, the visual system must account for 24 these object-extrinsic factors. The ability of a visual system to compute a representation of object color that is stable against 25 variation in object-extrinsic factors is called color constancy. A well-studied special case of color constancy is when the stimuli 26 are restricted to be achromatic. This special case is called lightness constancy (Gilchrist, 2006). Although human lightness and 27 color constancy are not perfect, they are often very good (Foster, 2011; Brainard & Radonji´c, 2014; Adelson, 2000; Kingdom, 28 2011). 29 The computational problem of color constancy may be framed as how to obtain stable descriptions of the spectral surface 30 reflectance functions of the objects in a scene. Early work on computational color constancy considered a simplified imaging 31 model where scenes consisted of multiple flat matte objects and a single spatially diffuse illuminant (Land, 1977; Buchsbaum, 32 1980; Maloney & Wandell, 1986). Subsequent work incorporated probabilistic descriptions of the statistics of naturally occurring 33 scenes (D’Zmura & Iverson, 1994; D’Zmura, Iverson, & Singer, 1995; Brainard & Freeman, 1997). A key insight from these 34 computational studies is that stable color descriptors of a target object cannot be obtained solely from the light reflected from 35 that target object. It is possible, however, to obtain stable color descriptors by jointly analyzing the light reflected from multiple 36 objects in the scene. As a consequence, color constancy will be affected both by variation in the illumination and by variation 37 in the surface reflectance of other objects in the scene. Color constancy algorithms should therefore be evaluated with respect to 38 variation in both of these factors (Brainard & Wandell, 1986; Brainard & Freeman, 1997). 39 Recently, supervised statistical learning methods have been applied to the computational problem of color constancy. These 40 methods use the joint statistics of labeled images and scene variables to learn mappings that extract stable surface color descriptors 41 from image input (Barron, 2015). This general approach has been useful for other perceptual problems in early and mid-level 42 vision. For example, a recently developed technique called accuracy maximization analysis (AMA) learns linear receptive fields 43 optimized for particular perceptual tasks (Geisler, Najemnik, & Ing, 2009; Burge & Jaini, 2017; Jaini & Burge, 2017). AMA has 44 been used to develop ideal observers for estimating defocus blur, binocular disparity, and retinal motion estimation with natural 45 stimuli. These ideal observers provide excellent predictions of human performance (Burge & Geisler, 2011, 2012, 2014, 2015). 46 Supervised learning requires large labeled datasets. Such datasets are not readily available for the study of color constancy. 47 Although there are datasets of calibrated color images, these do not provide ground truth information about surface reflectance 48 and illumination at each image location (Chakrabarti & Zickler, 2011; Nascimento, Amano, & Foster, 2016; Parraga, Brelstaff, 49 Troscianko, & Moorehead, 1998; Tkacik, G., Garrigan, P., Ratliff, C., Milcinski, G., Klein, J. M., Sterling, P., Brainard, D. H., & 50 Balasubramanian, V., 2011; Skauli & Farrell, 2013; Olmos & Kingdom, 2004). There are a few databases consisting of images 51 of posed scenes where surface reflectances of individual objects have been measured (Funt & Drew, 1988; Ciurea & Funt, 2003), 52 but these databases are not large enough to drive supervised learning. Finally, recent work has applied crowd-sourcing techniques 53 to annotate natural images with surface reflectance descriptors (Bell, Bala, & Snavely, 2014). 54 In this paper, we use high-quality computer graphics to generate large datasets of naturalistic images where the surface 55 reflectance corresponding to each image pixel is known. This approach allows us to investigate computational color constancy 56 with naturalistic stimuli, while retaining the ability to control the properties of objects and illuminants. We tackle the specific Singh, Cottaris, Heasly, Brainard, & Burge 3 (b) (a) 1 2 3 Image index 4 5 Figure 1: Color and luminance constancy: (a) The light reflected from an object to the eye depends both on the surface reflectance of the object and on the scene illumination. The reflected light also depends on geometric factors, such as the object’s shape, pose, and position. The human visual system accounts for variations in reflected light due to object-extrinsic factors and produces a percept of object color that is relatively stable across such variations. (b) Images of a sphere under a fixed illuminant. Down each column, the sphere’s luminous reflectance factor (LRF) varies, but its relative reflectance spectrum (i.e. its spectral shape) is held fixed. Across each row, the relative reflectance spectrum varies, but the LRF is held fixed. We cast the problem of computational luminance constancy to be that of estimating the LRF of a target object from the image, across variation in other scene factors. Specifically, we study variation in target object relative surface reflectance, variation in illumination spectrum, and variation in the surface reflectance of the other objects in the scene. Singh, Cottaris, Heasly, Brainard, & Burge 4 (a) Library (b) Mill (c) Table-Chairs Figure 2: Base scenes. Each image shows a rendering of one base scene without additional inserted objects. The reflectance spectra of the distinct surfaces and the spectral power distributions of the light sources in each scene have been assigned randomly from statistical models of naturally occurring spectra. The images have been scaled and tone mapped individually for illustrative purposes. . 57 problem of luminance constancy, a constitutive component of the more general color constancy problem (Fig. 1b). 58 We define the computational problem of luminance constancy <sup>1</sup> as that of estimating the luminous reflectance factor (LRF) 59 of a target object’s surface reflectance function. The LRF is a measure of the overall amount of light reflected by a surface relative 60 to the reference illuminant itself <sup>2</sup> (American Society for Testing and Materials, 2017). Obtaining the LRF from a known surface 61 reflectance function requires two steps. First, one computes the luminance of the light that would be reflected from the surface 62 under a reference illuminant. Second, one normalizes the result by the luminance of the reference illuminant itself. Here we use 63 CIE daylight D65 as the reference illuminant and the CIE 1931 photopic luminosity function to compute luminance (Commission 64 Internationale de l’´eclairage, 1986). Sometimes LRFs are expressed as a percentage. Here we express LRFs as proportions, so 65 that they take on values between 0 and 1. An LRF of 0 means that none of the light from the reference illuminant is reflected 66 from the surface. An LRF of 1 means that the luminance of the surface reflectance under the reference illuminant is the same as 67 the luminance of a perfect reflector under that same illuminant. #### 68 Methods 69 Overview 70 There are four key steps to our methods. First, we generate a labeled set of training images. Second, we use a model of 71 the early visual system to compute the responses of the cone photoreceptor mosaic to the labeled images. Third, we learn the 72 receptive fields (RFs) that extract the most useful information from the cone responses for the task. Fourth, we evaluate how well 73 the responses of the receptive fields may be decoded to achieve luminance constancy. 1In the literature, the term lightness constancy is generally used to denote color constancy for the special case when stimuli are restricted to be achromatic. This condition does not apply to our work - we consider full spectral variation in the stimuli. We chose the term luminance constancy to denote the generalization from achromatic stimuli. At the same time we acknowledge that we are not studying the full problem of color constancy. Rather, we are studying the estimation of a luminance-based summary of surface spectral reflectance. 2LRF is related to albedo, but the concept of albedo does not incorporate the human luminosity function. Singh, Cottaris, Heasly, Brainard, & Burge 5 (a) Big-ball (b) Xylophone (c) Barrel (d) Ring toy (e) Bottle Figure 3: Library base scene with inserted objects. The rendering package can be used to insert objects into base scenes. Each image shows a different object inserted into the Library base scene. The rendering viewpoint was set so that the object was at the center of the images. The full rendered images have been cropped so that the inserted objects are easily visible. 74 Labeled training data 75 _Virtual naturalistic scenes_ 76 The light that reflects from objects to the eyes depends on many factors. These include the surface reflectance, texture, 77 material and geometry of the objects, the spectral power distribution of the illuminants, and the position of the observer. We have 78 [developed a rendering package (https://github.com/BrainardLab/VirtualWorldColorConstancy) that allows us to construct models](https://github.com/BrainardLab/VirtualWorldColorConstancy) 79 of naturalistic scenes, with key scene factors under programmatic control. The package builds on the RenderToolbox4 package 80 [(http://rendertoolbox.org; Heasly, Cottaris, Lichtman, Xiao, & Brainard, 2014), and harnesses the open-source computer graphics](http://rendertoolbox.org) 81 [renderer Mitsuba (https://www.mitsuba-renderer.org, Jakob, 2010) to produce physically-accurate images from the scene models.](https://www.mitsuba-renderer.org) 82 Because the images are rendered from known scene models, each image pixel can be labeled with the surface reflectance of the 83 corresponding object. By using statistical models of daylight illumination and object surface reflectance to guide the rendering 84 of scenes, the package allows us to produce large labeled sets of images that capture key aspects of the task-relevant statistical 85 structure of natural scenes. 86 The RenderToolbox4 package includes a collection of base scenes (Fig. 2). Base scenes specify an arrangement of objects 87 and light sources. Base scenes may be enriched by the insertion of additional objects, chosen from an object library (Fig. 3), and 88 by the insertion of additional light sources. Once the position, size, and pose of the inserted objects and light sources have been 89 set, a surface reflectance function can be assigned to each object in the scene, and a spectral power distribution function can be 90 assigned to each light source (Fig. 4). The resulting scene model can then be rendered from any specified viewpoint. 91 In the present work, we used our package to generate datasets of naturalistic scenes and corresponding images. We used one 92 fixed base scene and inserted a spherical target object of fixed size into this scene. All surfaces in the scene model were matte 93 and did not have specularities. There were multiple light sources in the scene, and the rendering process simulated shadows as 94 well as mutual reflection of light between nearby surfaces. We generated three distinct datasets, which we refer to as Conditions 95 1-3 (Fig. 5). These are described below. Across these datasets the luminance constancy problem (i.e. estimating the target object 96 LRF) becomes progressively more difficult. 97 The variation within our datasets captures the essence of the computational problem of lightness constancy up to effects of 98 scene geometry, an additional richness that we do not address in this paper (see Funt & Drew, 1988; Barron & Malik, 2012). 99 In Condition 1, the relative reflectance spectrum of the target object was the only source of scene variation other than the 100 target object LRF. The reflectance spectra of the background objects and the spectral power distribution of the light sources 101 were held fixed. In Condition 2, the spectral power distribution of the light sources varied in addition to the relative reflectance Singh, Cottaris, Heasly, Brainard, & Burge 6 (a) Target position (b) Target size/pose (c) Target spectra (d) Illumination spectra (e) Background spectra Figure 4: Scene transformations. The properties of a visual scene can be broadly classified into two groups: geometrical (a-b) and spectral (c-e). Our rendering package provides control over these properties as illustrated by the columns of the figure. (a) Variation in inserted object positions. (b) Variation in object size and pose. (c) Variation in the surface reflectance of the target object. (d) Variation in the spectral power distributions of the light sources. (e) Variation in surface reflectance of the background objects. All images in this figure are rendered with common scaling and tone mapping. 102 spectrum of the target object. Finally, in Condition 3 three distinct scene factors–target object relative reflectance spectrum, 103 spectral power distribution of the light sources, and reflectance spectra of the background objects –varied in addition to the target 104 object LRF. The datasets for Conditions 1 and 2 consisted of 1000 scenes and images, 100 for each of 10 target object LRF 105 values. The dataset for Condition 3 consisted of 3000 scenes and images, 300 each for the 10 target LRF values. The LRF values 106 were equally spaced between 0.2 and 0.6. More than 90% of the surface reflectance spectra (generated as described below) fell 107 within this range. For each LRF value, we generated a different relative target object surface reflectance for each scene. 108 We used the Library base scene and a spherical target object. The Library base scene contains 2 area lights. We inserted one 109 additional spherical light source into the scene. In Conditions 2 and 3, the overall intensities of the three light source illumination 110 spectra were equal, while their relative shape varied. The overall intensity varied from scene to scene. The position and size of 111 the inserted object, the inserted light source, and the viewpoint on the scene were held fixed across all scenes. The geometry is 112 shown in Figure 9a below. Surface and illuminant spectra were sampled according to statistical models of naturally occurring 113 spectra. Multispectral images (320 _⇥_ 240 pixels) were rendered at 31 evenly-spaced wavelengths between 400nm and 700nm. 114 _Illumination spectra_ 115 To generate illumination spectra, we developed a statistical model of the Granada daylight measurements (Hern´andez 116 Andr´es, Romero, Nieves, & Lee, 2001; [http://colorimaginglab.ugr.es/pages/Data)](http://colorimaginglab.ugr.es/pages/Data) and then sampled randomly from the model. 117 To match the wavelength spacing we use in rendering, we resampled the wavelength spacing of the Granada spectra to 31 Singh, Cottaris, Heasly, Brainard, & Burge 7 1 (a) Condition 1 2 3 Image index 4 5 1 (b) Condition 2 2 3 Image index 4 5 1 (c) Condition 3 2 3 Image index 4 5 Figure 5: Conditions 1-3: Illustrative images for the three types of spectral variations studied in this paper. (a) Condition 1: variable target object relative reflectance spectrum, fixed light source spectra, fixed background object spectra (same as Fig. 1b). (b) Condition 2: variable target object relative reflectance spectrum, variable light source spectra, fixed background object spectra. (c) Condition 3: variable target object relative reflectance spectrum, variable light source spectra, variable background object spectra. The spheres in each row of each panel have the same LRF, while the spheres in each column of each panel have the same relative surface reflectance spectrum. Across panels a-c, spheres in corresponding locations have the same surface reflectance. In all three panels, the overall light source spectra scale factors (see Methods) were drawn from a uniform distribution on the range [0.5, 1.5]. This is smaller than the variation we studied, but allows us to show the variation within the dynamic range available for display in publication. All images in this figure are rendered with common scaling and tone mapping. 118 evenly-spaced wavelengths between 400 nm and 700 nm. 119 Our statistical model approximates normalized spectra from the Granada dataset using the first 6 principle components of 120 the normalized measurements from that dataset. The distribution of weights on these components is approximated with a 6 121 dimensional Gaussian, where the mean and covariance matrix match the sample mean and covariance of the weights (Brainard & 122 Freeman, 1997). To generate a random relative illuminant spectrum, we sample weights randomly from this Gaussian and then 123 perform a weighted sum of the components. Figure 6b illustrates the relative spectra of draws obtained using this procedure. 124 Chromaticities and rendered color renditions of these draws are shown in Figures 6c and 6d. Details of the statistical model for 125 illumination are provided in the appendix. 126 The multivariate Gaussian model described above is based on normalized spectra. Thus, it does not embody the large 127 variation in overall intensity of natural daylights. To restore the overall intensity variation in the Granada dataset, which spans 128 approximately three orders of magnitude, we scaled each randomly generated spectrum with a random number sampled from a 129 log-uniform distribution spanning three orders of magnitude. The particular range of scale factors was chosen so that the mean 130 number of cone isomerizations from the target object ranged from approximately 100 to 100,000, given a 100 ms cone integration 131 time (see below). This range of cone isomerizations corresponds approximately to that of natural daylight viewing. 132 _Surface reflectance spectra_ 133 To generate random reflectance spectra, we employed principles similar to those used to generate random illuminant spectral 134 power distributions. We used measurements from the Munsell (Kelly, Gibson, & Nickerson, 1943) and Vrhel (Vrhel, Gershon, 135 & Iwan, 1994) surface reflectance datasets to create a dataset containing 632 reflectance spectra (462 from the Munsell data 136 and 170 from the Vrhel data; Figure 7a). We resampled the spectra to 31 evenly-spaced wavelengths between 400 nm and 700 Singh, Cottaris, Heasly, Brainard, & Burge 8 (a) Granada dataset (b) Statistical model 2.0 1.5 1.0 0.5 0.0 400 500 600 700 Wavelength (nm) (c) CIE xy chromaticity 0.40 Normalized dataset Random samples 0.35 0.30 0.25 0.20 0.25 0.30 0.35 0.40 CIE x chromaticity (d) Color swatches Figure 6: Statistical model of illumination spectra: (a) Normalized Granada dataset. Each spectrum is normalized by its mean power. (b) Sample spectra generated using the statistical model derived from normalized Granada dataset. (c) CIE xy chromaticities of the Granda dataset (black) and the samples shown in panel b (red). (d) sRGB renditions of the samples shown in panel b. (a) Munsell and Vrhel dataset 1.0 0.8 0.6 0.4 0.2 0.0 400 500 600 700 Wavelength (nm) (b) Statistical model 1.0 0.8 0.6 0.4 0.2 0.0 400 500 600 700 Wavelength (nm) (d) Color swatches 0.6 0.5 0.4 0.3 0.2 0.1 (c) CIE xy chromaticity Natural reflectance Random samples 0.2 0.3 0.4 0.5 0.6 CIE x chromaticity Figure 7: Statistical model of surface reflectance: (a) Surface reflectance spectra from the Munsell and Vrhel datasets. (b) Sample spectra generated using the surface reflectance statistical model. (c) CIE xy chromaticity diagram of the Munsell and Vrhel reflectances (black) and the sample spectra shown in panel b (red). (d) sRGB renditions of the samples shown in panel b, rendered under the CIE D65 daylight spectrum. Singh, Cottaris, Heasly, Brainard, & Burge 9 0.60 0.56 0.51 0.47 0.42 0.38 0.33 0.29 0.24 0.20 1 2 3 4 5 6 7 8 9 10 Sample Index Figure 8: Target object surface reflectance spectra: sRGB renditions of the target object surface reflectance rendered under CIE D65 daylight spectrum. The figure shows 10 random samples at 10 equally spaced LRF levels in the range [0.2, 0.6]. Each row contains 10 random samples of reflectance spectra generated at the LRF shown on the left. 137 nm. Figures 7b, 7c, and 7d illustrate reflectance sampled obtained using the model. Details of the statistical model for surface 138 reflectance spectra are provided in the appendix. 139 To generate the target object reflectance at a particular LRF, the sampled reflectance spectrum was scaled such that its LRF 140 had the desired value (see appendix). Figure 8 shows color renderings of target reflectance spectra under CIE illuminant D65, 141 for the evenly spaced LRF values we studied. 142 Model of early visual system 143 Light entering the eye is focussed and blurred by eye’s optics to form the retinal image. This image is then sampled by a 144 mosaic of cone photoreceptors. The excitations of these photoreceptors provide the information available to the neural visual 145 system for further processing. Because we are interested in how well luminance constancy may be achieved by the human visual 146 system, we simulated the cone excitations to our scenes using a model of the early visual system. 147 We focused our analysis on image regions local to the target by cropping the rendered images to 1 <sup>_◦_</sup> _⇥_ 1 <sup>_◦_</sup> degrees of visual 148 angle around the target object (51 _⇥_ 51 pixels; Figure 9b). The local analysis is motivated by the fact that neural receptive 149 fields early in the visual pathways (e.g., retina, primary visual cortex) pool information locally. In primary visual cortex, foveal 150 receptive fields have a maximum spatial extent of approximately 1 degree of visual angle (Gattass, Gross, & Sandell, 1981; 151 Gattass, Sousa, & Gross, 1988). We sought to understand how well responses from AMA-learned receptive fields at a similar 152 scale could be used to achieve luminance constancy. 153 We modeled a visual system having typical optical blurring (including axial chromatic aberration, Marimont & Wandell, 154 1994), and typical spatial sampling with an interleaved rectangular mosaic of long (L), middle (M) and short (S) wavelength 155 sensitive cones (Brainard, 2015; Fig. 9c). The cone mosaic contained L:M:S cones in approximately the ratio 0.6:0.3:0.1 (1523 156 L cones, 801 M cones, 277 S cones) and with spectral sensitivities derived from the CIE physiological standard (Commission 157 Internationale de l’´eclairage, 1986). Cone excitations were taken as the number of photopigment isomerizations, assuming an 158 integration time of 100 msec. The Poisson nature of the photopigment isomerization was also included (Hecht, Shlaer, & Pirenne, 159 1942). [This modeling was implemented using the software infrastructure provided by ISETBio (https://isetbio.org).](https://isetbio.org) 160 To put the computed cone excitations into a form for further analysis, we demosaiced the excitations for each cone class 161 using linear interpolation to obtain a cone excitation image for each cone class. The lens and macular pigment absorb more short Singh, Cottaris, Heasly, Brainard, & Burge 10 (a) sRGB rendering of a 3D scene (b) Cropped image (c) Retinal image (d) Normalized cone contrast Figure 9: Pipeline for generating labeled datasets: The labeled images used in this paper are generated as follows: (a) A 3D virtual scene, containing a target object is created. The rendering viewpoint is selected so that the target object is in the center of the image. Spectra are assigned to the target object, illuminants, and other objects in the scene using the statistical models described in the text. A multispectral image of the scene is then rendered. (b) The central portion of the rendered image is cropped around the target object. (c) The retinal image corresponding to the rendered image is computed, which is then used to compute the number of photopigment isomerizations in the cone photoreceptors. The figure shows a rendering of the retinal image after optical blurring, with the location and identity of the cones indicated by an overlay (L cones: red, M cones: green, S cones: blue). (d) The cone excitations are linearly interpolated to estimate the responses of all the three types of cone at each location (demosaicing). Finally, the demosaiced images are contrast normalized. 162 than long wavelength light, so that the excitations of the S cones tend to be smaller than those of the L and M cones. To make 163 the magnitude of the three cone excitation images similar across cone classes, we normalized each cone excitation image by the 164 summed (over wavelength) quantal efficiency of the corresponding cone class. The demosaicing and normalization do not alter 165 the available information relative to that carried by the cone excitations themselves. 166 To capture key properties of post-receptoral processing, such as contrast normalization (Heeger, 1992; Albrecht & Geisler, 167 1991; Carandini & Heeger, 2012), we processed the cone excitation images as follows: We first converted each cone excitation 168 image to a corresponding cone contrast image. This was accomplished by computing the mean response over the three cone 169 excitation images, and then subtracting off and dividing by this mean. To model contrast normalization, we then divided the 170 contrast images by the sum of squared contrasts taken over image pixels and cone classes. 171 Computational luminance constancy 172 We used our datasets to determine how well target object LRF can be estimated from cone excitations and from normalized 173 cone contrasts. Studying both representations allows us to understand how early contrast coding and normalization affect lumi 174 nance constancy. We applied accuracy maximization analysis (AMA) to learn the optimal receptive fields for estimating LRF, 175 and evaluated performance when the responses of these receptive fields are optimally decoded. 176 _Learning optimal receptive fields_ 177 AMA is a task-specific Bayesian method for dimensionality reduction. When provided with a labeled training set, a receptive 178 field response model, a decoder that uses these responses to estimate the stimulus label, and a cost function, AMA returns a set 179 of N linear receptive fields, where N is a parameter of the procedure. These receptive fields are chosen so that decoding their Singh, Cottaris, Heasly, Brainard, & Burge 11 180 responses leads to minimum expected-cost estimation, relative to any other choice of N linear receptive fields. This is possible 181 because given a training set together with a set of N linear receptive fields and an explicit cost function, it is possible to determine 182 the minimum expected-cost estimator that maps receptive field responses to the stimulus labels. Moreover, a close approximation 183 to the corresponding expected estimation cost may be explicitly computed. Thus, AMA searches over the space of linear receptive 184 fields to find the set that minimizes the expected estimation cost. For each condition, we learned the receptive fields with a training 185 set consisting of 90% of the images. 186 In our implementation of AMA, we used both the Kullback-Leibler divergence cost function (corresponding to the maximum 187 a posteriori estimator) and the mean squared error cost function (corresponding to the posterior mean estimator) to evaluate the 188 accuracy of the AMA estimates of LRF. Training with both cost functions yielded similar estimation performance; the results 189 reported here are for when the Kullback-Leibler divergence cost function was used in training. We chose this cost function 190 because the estimates it yields at the boundaries of the LRF range are less biased than those obtained with the mean squared error 191 cost function. 192 Details of how AMA learns receptive fields and how the receptive field responses are optimally decoded are provided in 193 previously published work (Geisler et al., 2009; Burge & Jaini, 2017; Jaini & Burge, 2017). 194 _Decoding optimal receptive fields_ 195 Once the AMA receptive fields have been learned, a general decoder is needed that can be used with arbitrary test images. 196 A general decoder is necessary because the decoder used to learn the receptive fields can be used only with the training set. 197 Specifically, the decoder used to learn the receptive fields requires the response mean and response variance of each receptive 198 field to every labelled stimulus in the training set (Geisler et al., 2009; Burge & Jaini, 2017). To proceed, first we use the AMA 199 receptive fields and the training dataset to find the distributions of the receptive field responses conditional on the target object 200 LRFs. Then, we model these conditional response distributions with multivariate Gaussians. To estimate the LRF of the target 201 object in a test image, we use Bayes’ rule together with the Gaussian conditional distributions and a uniform prior to obtain the 202 posterior distribution over LRF values, given the receptive field responses. The optimal estimate is the LRF value that minimizes 203 the expected value of the cost function, where the expectation is taken over the posterior. For the results we report, we again used 204 the Kullback-Leibler divergence cost function. 205 The Gaussian approximations for the posterior were estimated using the same training set that was used to learn the receptive 206 fields. Estimation performance was evaluated on a test set consisting of the 10% of images in the dataset that were not in the 207 training set. For our primary results, estimation was based on six receptive fields. The AMA analysis package is available at: 208 [https://github.com/BrainardLab/LuminanceConstancyAmaAnalysis.](https://github.com/BrainardLab/LuminanceConstancyAmaAnalysis) 209 _Baseline methods_ 210 To provide baselines for evaluation of the estimation method described above, we used linear regression. First, we solved 211 for the weights on the average L, M and S cone excitations corresponding to the target object that best predicted the target LRF 212 values. We took the average cone responses from a 3 _⇥_ 3 pixel region at the center of the target object. This baseline method 213 disregards information carried by the image regions corresponding to the background objects. We also performed regression on 214 the contrast normalized version of the cone excitation images. This second baseline method indirectly incorporates information 215 carried in the image regions corresponding to the background objects, through their effect on the contrast normalized responses 216 at the center of the target object. We also evaluated the performance of a naive model that uses the mean LRF value in the training 217 set as the estimate, irrespective of the image data; that is, the naive model always estimated the LRF to be equal to 0.4. Singh, Cottaris, Heasly, Brainard, & Burge 12 (c) AMA receptive fields 0.04 0.02 0 -0.02 -0.04 1 L 1 M 1 S 0.04 0.02 0 -0.02 -0.04 2 L 2 M 2 S 0.04 0.02 0 -0.02 -0.04 3 L 3 M 3 S (b) RF responses 0.2 0.24 0.29 0.33 0.38 0.42 0.47 0.51 0.56 0.6 -200 -100 0 100 200 300 RF1 response 0.6 0.5 0.4 0.3 0.2 (a) LRF estimates Linear Regression AMA 0.2 0.3 0.4 0.5 0.6 Actual target object LRF 200 100 0 -100 -200 Figure 10: Condition 1 results: (a) Mean estimated LRF _±_ 1 standard deviation for images in the test set obtained using the AMA-based estimator and linear regression on the cone excitations. Solid lines show the mean estimate, the filled region in lighter color shows _±_ 1 standard deviation. The diagonal identity line (dotted blue) indicates veridical estimation. The filled regions representing standard deviations are too small to be visible. Relative RMSE (see Fig.14) is 0.7% for linear regression and 1.1% for AMA-based estimation. (b) Training image cone excitations in Condition 1 projected onto the first two AMA receptive fields. Each cluster of responses represents the image patches associated with a particular LRF. The response clusters are approximated by a multivariate Gaussians whose means and covariances are represented by the ellipses shown in the figure. (c) The first three AMA receptive fields. These are specified over the same 1 x 1 degree patch as the stimuli. 218 _Quantifying estimation performance_ 219 We quantified the performance of AMA and the baseline methods at estimating LRF with relative root mean squared error 220 (relative RMSE). Relative RMSE is the square root of the mean of the squared difference between the estimated and true LRF 221 divided by the true LRF. The mean is taken over all stimuli in the test set. #### 222 Results 223 Condition 1 224 In Condition 1, only the LRF and the relative reflectance spectrum of the target object vary across scenes. We used accuracy 225 maximization analysis (AMA) to learn a set of linear receptive fields that are optimal for estimating target LRF from the cone 226 excitations in this condition. Decoding performance is shown in Figure 10a. Figure 10a also shows the performance of the 227 baseline linear regression method. Both methods are trained on 90% of the images in the dataset and tested on the remaining 228 10%. The LRF estimates obtained for both methods are essentially perfect. 229 Figure 10b shows the responses of the first two AMA receptive fields to all the image patches in the training set. Each 230 individual point represents the receptive field responses to an individual image patch and is color coded by target object LRF. 231 The responses segregate according to the target LRF, which supports the high level of estimation performance shown in Fig 232 ure 10a.LRF Note that even the responses of the first receptive field separate well (vertical lines would accurately distinguish the 233 LRFs), so that that one receptive field is sufficient for accurately performing the task. Singh, Cottaris, Heasly, Brainard, & Burge 13 (b) RF responses (Excitations) 0.2 0.24 0.29 0.33 0.38 0.42 0.47 0.51 0.56 0.6 1 2 3 4 5 RF1 response #10 <sup>6</sup> (d) RF responses (Normalized contrast) 0.2 0.24 0.29 0.33 0.38 0.42 0.47 0.51 0.56 0.6 -0.4 -0.2 0 0.2 0.4 RF1 response 0.6 0.5 0.4 0.3 0.2 (a) LRF estimates (Excitations) Linear Regression AMA 0.2 0.3 0.4 0.5 0.6 Actual target object LRF 5 0 -5 0.6 0.5 0.4 0.3 0.2 (c) LRF estimates (Normalized contrast) Linear Regression AMA 0.2 0.3 0.4 0.5 0.6 Actual target object LRF 0.2 0.1 0 -0.1 -0.2 -0.3 -0.4 -0.5 Figure 11: Condition 2 results: (a) Mean estimated LRF _±_ 1 standard deviation for images in the test set obtained using the AMA-based estimator and linear regression from the cone excitations. The relative RMSE is high (41.4% for linear regression and 26.4% for AMA-based estimation). (b) Cone excitations projected onto AMA receptive fields. (c) Mean estimated LRF _±_ 1 standard deviation for images in the test set obtained using the AMA-based estimator and linear regression from the contrast normalized cone excitations. The relative RMSE of estimation is 9.3% for linear regression and 1.2% for the AMA-based estimator. (d) The contrast normalized cone excitations projected along the first two AMA receptive fields. The receptive fields were learned using AMA and the contrast normalized cone excitations. For Condition 2, the response corresponding to individual image patches at each LRF level separates much better when the input is the contrast normalized cone excitations than when the input is the raw cone excitations. 234 Figure 10c shows the first three AMA receptive fields. Each receptive field performs a weighted sum of the L, M, and S 235 cone excitations. The L and M cone excitations at the target object location receive large weights. The L and M cone excitations 236 at the background object locations and the S cone excitations at all locations receive small weights and are thus largely ignored. 237 For this condition, the background regions provide very little task-relevant information. In addition, luminance is primarily 238 determined by L and M cones, so the S cones should make little direct contribution. The first three receptive fields are similar to 239 each other, reflecting the fact that here the main benefit of multiple receptive fields is to reduce the impact of noise on estimation 240 performance. 241 The results in Figure 10 were obtained for one particular draw from our statistical model of illumination. We verified that 242 performance remained excellent for other draws. 243 Condition 2 244 Condition 2 includes variation in the spectral power distribution of the light sources, in addition to the variation present in 245 Condition 1. This illumination variation makes the task more difficult because it causes variation in the cone excitations that is 246 not due to target object LRF. We learned AMA receptive fields on the cone excitations to the images in this new condition, and 247 again evaluated decoding performance (Fig. 11(a,b)). Performance is poor. Indeed, the estimates deviate considerably from the 248 true LRF, as seen by the fact that the mean estimate (red line) does not lie on the positive diagonal and by the fact that there is 249 large estimation variability for each value of the true LRF. For this case, linear regression also does poorly. Indeed, the linear 250 regression estimates are essentially the same as would be obtained by simply guessing the mean LRF of the training set (0.4). 251 Recall that there are two qualitatively distinct factors contributing to the variation in illumination spectra: changes in overall Singh, Cottaris, Heasly, Brainard, & Burge 14 -0.6 -0.4 -0.2 0 0.2 0.4 RF1 response (b) Receptive field response 0.2 0.24 0.29 0.33 0.38 0.42 0.47 0.51 0.56 0.6 0.6 0.5 0.4 0.3 0.2 (a) LRF estimates Linear Regression AMA 0.2 0.3 0.4 0.5 0.6 Actual target object LRF 0.4 0.2 0 -0.2 -0.4 (c) AMA receptive fields 0.04 0.02 0 -0.02 -0.04 1 L 1 M 1 S 0.04 0.02 0 -0.02 -0.04 2 L 2 M 2 S 0.04 0.02 0 -0.02 -0.04 3 L 3 M 3 S Figure 12: Condition 3 results: (a) Mean estimated LRF _±_ 1 standard deviation for images in the test set obtained using the AMA-based estimator and linear regression from the contrast normalized cone excitations. The relative RMSE is 23.9% for linear regression and 12.6% for AMA. (b) Contrast normalized cone excitations for the training set projected onto the first two AMA receptive fields. (c) First three AMA receptive fields learned using the contrast normalized cone excitations. 252 intensity, and changes in the relative spectral power distribution. To separate the effect of these two factors, we trained and 253 evaluated AMA on the contrast normalized cone excitations. By contrast normalizing the cone excitations, the contribution of 254 overall intensity is essentially removed. Figure 11(c,d) shows that performance improves greatly with contrast normalization. 255 Estimates obtained from the AMA receptive field responses are essentially perfect. Estimates obtained from linear regression 256 are substantially improved. This observation is consistent with previous results on computational color constancy that show that 257 contrast-based representations are effective for supporting color constancy when only illumination spectra vary (e.g. Land, 1986). 258 However, contrast-based representations are less effective at supporting constancy when the spectra of background objects in the 259 scene vary (e.g. Brainard & Wandell, 1986). 260 Condition 3 261 Condition 3 introduces variation in the reflectance spectra of the background objects, in addition to the sources of variation in 262 Conditions 1 and 2. This condition models the sources of real-world spectral variation that are most relevant for the computational 263 problem of luminance constancy. We again trained and evaluated AMA for labeled image patches, using the contrast normalized 264 cone excitations. The LRF estimates obtained via AMA are more variable and less accurate than for the previous conditions 265 (Figure 12a). Nevertheless, the estimates provide useful information about the target LRF. Indeed, the estimates track the true 266 LRF on average, as seen by the fact that the mean estimate (red line) lies along the positive diagonal. The increased estimation 267 variability is indicated by the increased width of the shaded red region, relative to its width for the results of Condition 1 and 2. 268 Performance of the baseline linear regression method (also evaluated using contrast normalized cone excitations) is worse than 269 that of the AMA-based estimates. 270 Figure 12b shows the responses of the first two AMA receptive fields to the training stimuli. Although the responses vary 271 systematically with target object LRF, there is considerable overlap in the receptive field responses for stimuli having different 272 LRF values. This overlap is due to the combined effect of the variation in the illumination and background surface spectra. Singh, Cottaris, Heasly, Brainard, & Burge 15 0.23 0.21 0.19 0.17 0.15 0.13 0.23 0.21 0.19 0.17 0.15 0.13 No. of RFs 1 2 3 4 5 6 No. of images 300 600 900 1500 2100 2700 1 2 3 4 5 6 Number of RFs 500 1000 1500 2000 2500 Number of images in training set Figure 13: Change of relative RMSE with number of receptive fields (RFs) and size of training set: (a) Change of relative RMSE for Condition 3 with the size of training set. The relative RMSE converges around 2000 images. To make this plot, the 300 image test set for Condition 3 was used in each case, while the training set size varied between 300 to 2700 images. The number of receptive fields used was varied between 1 and 6. (b) Same data as in panel a, but plotted as a function of number of receptive fields. Performance converges around three receptive fields (RFs). The error bars in each panel show +/- 1 SEM, with the variation taken across multiple runs with different random initializations for the numerical search used in our implementation of AMA. 273 Recall, however, that the performance shown Figure 12a is based on six rather than two receptive fields; there is likely to be 274 less overlap in the full six-dimensional response space. That is, inclusion of more receptive fields will in general reduce the 275 ambiguity that is seen when we visualize the responses of just the first two receptive fields. This effect is shown in the right panel 276 of Figure 13. That figure also illustrates the effect of training set size on estimation performance. 277 Figure 12c shows the first three receptive fields (RFs) learned for Condition 3. The first two are similar to the receptive fields 278 for Condition 1, in that the L and M cone excitations receive large weights, while the S cone excitations are less heavily weighted. 279 In contrast to the Condition 1 receptive fields, there is also systematic contribution of cone excitations from background object 280 locations, with both positive and negative contributions from background objects. The specific geometry of the receptive fields, 281 however, should not be taken to be a strict prediction for receptive fields in the human visual system, as the particular receptive 282 field geometry arises partly as a consequence of the fixed scene geometry used in the training set. Indeed, aspects of spatial 283 structure of the training images can be seen in the receptive fields. Also, the third receptive field for Condition 3 places weight 284 on the S cone excitations. Although S cone signals do not contribute directly to luminance, S cone responses are correlated with 285 L and M cone responses to natural spectra (Burton & Moorhead, 1987; Benson, Manning, & Brainard, 2014). Information from 286 the S cones can therefore contribute usefully to performance in the task. Finally, we note that there is some run-to-run variation 287 in the structure of the optimal receptive fields that depends on the random initialization of the numerical search used in our 288 implementation of AMA. (The cost landscape is not convex so local minima are possible.) However, such run-to-run receptive 289 field variation leads only to very small changes in estimation error (see error bars in Figure 13). Furthermore, even if the order 290 varies somewhat, the same set of receptive fields tends to be learned. 291 Our rendering software allows us to compare the effect of background surface reflectances on target object LRF with and 292 without simulation of secondary reflections of light from one object onto another. These secondary reflections were included in 293 the dataset from which we report our primary results. When we turn off this feature of the rendering, we find (data not shown) Singh, Cottaris, Heasly, Brainard, & Burge 16 0.5 0.4 0.3 0.2 0.1 Linear Regression AMA 0 Condition 1 Condition 2 Condition 2 Condition 3 Isomerization Isomerization Contrast Contrast Condition 1 Isomerization Condition 2 Isomerization Condition 2 Contrast Figure 14: Summary of luminance constancy performance: Relative RMSE estimation error for each method and condition. The dotted line represents the relative RMSE for a naive method that estimates the LRF of each image as the mean LRF over the images in the set (LRF = 0.4). 294 that LRF estimation performance is essentially unchanged. Estimates with and without secondary reflections are very similar. 295 This result suggests that the primary source of the estimation error in Condition 3 is caused by direct effects of image-to-image 296 variation in the reflectance of the background objects on the AMA responses. #### 297 Discussion 298 Summary 299 In this paper, we studied luminance constancy using naturalistic images. We used a software pipeline, which was developed 300 for this work, to render datasets of multispectral images from scene descriptions. Because we rendered the images, we could 301 label each image in the dataset by the luminous reflectance factor (LRF) of the target object. We used the labeled datasets to learn 302 estimators for the target object LRF. Across scenes, we varied the LRF of the target object, the relative reflectance spectrum of 303 the target object, the spectral power distributions of the light sources, and the reflectance spectra of the background objects in the 304 scene. These spectral variations were based on statistical models of natural surface reflectance spectra and natural illumination 305 spectra. We studied the how the performance of the learned estimators changed with systematic manipulation of the spectral 306 variation in the datasets. 307 Figure 14 summarizes our main findings, by showing the overall relative root mean squared estimation error (relative RMSE) 308 for each condition. In Condition 1, where only the relative reflectance spectrum of the target object varies, luminance constancy is 309 an easy computational problem, and performance is essentially perfect for both the baseline linear regression and AMA methods. 310 In Condition 2, where the spectral power distribution of the illumination also varies, the problem of luminance constancy is more 311 difficult. Indeed, neither of our methods perform well when they operate directly on the cone excitations. Performance with 312 both methods improves greatly when the cone excitations are contrast normalized. Indeed, AMA performance for Condition 2 is 313 essentially perfect, as it is in Condition 1. Linear regression does less well, in part because it only has access to cone excitations 314 at image locations corresponding to the target object. Condition 2, however, does not include scene-to-scene variation in the 315 background surface reflectances, as occurs in natural viewing. The results for Condition 3 show performance when we add such 316 variation. Performance here represents the overall level of luminance constancy that our methods achieve for the most realistic 317 condition that we tested. In this case, AMA-based estimates of target object LRF are, on average, within 13% (relative RMSE) of Singh, Cottaris, Heasly, Brainard, & Burge 17 318 the true value. Introducing variation in the surface reflectance spectra of the background objects makes the luminance constancy 319 problem substantially more difficult. Variation in the reflectance spectra of the background objects surfaces reduces how reliably 320 light reflected from those objects can be used as a cue to estimate the spectral power distribution of the illuminant. 321 Images of Virtual vs. Real Scenes 322 As noted in the introduction, supervised learning requires large labeled datasets. Labeled datasets of natural images have 323 been useful for developing normative models of the estimation of defocus blur, binocular disparity, retinal image motion, and 3D 324 surface orientation (Burge & Geisler, 2011, 2012, 2014, 2015; Sebastian, Burge, & Geisler, 2015; Kim & Burge, 2018; Burge, 325 Fowlkes, & Banks, 2010; Girshick, Landy, & Simoncelli, 2011; Burge, McCann, & Geisler, 2016; Goncalves & Welchman, 326 2017). 327 Large datasets of natural or posed scenes with ground truth information about illuminant and object surface reflectance are 328 difficult to obtain, as independent measurement of illuminant and surface properties at each image location is painstaking. That 329 noted, there are databases for evaluation of color constancy algorithms that provide information about illumination and/or surface 330 reflectance (e.g., Barnard, Martin, Funt, & Coath, 2002; Ciurea & Funt, 2003; Cheng, Prasad, & Brown, 2014; Nascimento et 331 al., 2016; see [http://colorconstancy.com).](http://colorconstancy.com) Often the illumination is estimated through placement of a reflectance standard at a 332 few image locations to allow estimation of the illumination impinging at those locations. These illumination estimates are then 333 interpolated/extrapolated across the image. However, the quality of this approximation cannot typically be evaluated. 334 Here we used labeled images rendered from descriptions of virtual scenes. A similar approach has been used previously to 335 study the perception of lightness and specularity (Toscani, Valsecchi, & Gegenfurtner, 2013; Wiebel, Toscani, & Gegenfurtner, 336 2015; Toscani, Valsecchi, & Gegenfurtner, 2017). Our work adds to this approach by introducing color variation. There are 337 many advantages to using rendered images (Butler, Wulff, Stanley, & Black, 2012). One advantage is that they allow us to work 338 with large number of labeled images where object reflectance is precisely known at each pixel. A second advantage is that we 339 can control the variation in distinct scene factors that might affect the difficulty of the estimation problem. This flexibility allows 340 the impact of scene factors to be studied individually or in combination. Here, we exploited this flexibility to quantify how 341 variation in the relative reflectance spectrum of the target object, the spectrum of the illumination, and the reflectance spectrum 342 of the background objects limit LRF estimation. We also exploited our use of rendered images to explore how the presence or 343 absence of secondary reflections from background objects affected estimation of target object LRF. This type of question cannot 344 be addressed using real images. The basic approach we use here can be extended to include parametric control over the amount 345 of variation of different factors. For example, we could systematically vary the variances of the distribution over the weights that 346 control the relative spectrum of the illumination. 347 There are also disadvantages associated with using rendered images. Virtual rendered scenes are not guaranteed to capture 348 all of the task relevant variation that occurs in real scenes. Even casual inspection of our images reveals that they are rendered, 349 and not real. However, computer graphics is getting better and we expect that the gap between virtual and natural image databases 350 will steadily close. Indeed, carefully constructed graphics images are now quite difficult to differentiate from real images. 351 To increase the representativeness of our rendered images, we used datasets of natural surface reflectance spectra and natural 352 daylight illumination spectra. Although we believe these datasets provide reasonable approximations of the statistical variation in 353 reflectance and illumination spectra, they can be extended and improved. For example, there are additional datasets of measured 354 surface reflectances that could be incorporated into future analyses. Some of these datasets focused on the reflectance of objects 355 (e.g. fruit) that are thought to be important for the evolution of primate color vision (e.g., Sumner & Mollon, 2000; Regan et al., 356 2001; Barnard et al., 2002; Ennis, Schiller, Toscani, & Gegenfurtner, 2018). Another issue, not addressed by these datasets, is Singh, Cottaris, Heasly, Brainard, & Burge 18 357 relative frequency of different surface reflectances in natural viewing. Attewell & Baddeley, 2007 performed a systematic survey, 358 and reported the distribution of an LRF-like quantity in natural scenes. Generalizing these measurements to better characterize 359 the distribution of full reflectance functions remains an interesting goal. 360 Future Directions 361 In the work presented here, we studied computational luminance constancy in virtual scenes with naturalistic spectral varia 362 tion in light sources and in surface reflectance functions, with only matte surfaces in the scenes. It is natural to start with spectral 363 variation, because this variation is at the heart of what makes luminance constancy a rich computational problem. In natural 364 scenes, however, there are other sources of variation that add additional richness. These include variation in non-spectral prop 365 erties of lighting and objects in the scene. Examples include lighting geometry, object texture, object material (e.g. specularity), 366 and object shape. The methods we developed here may be generalized to study the effects of variation in these factors. That is, 367 one could incorporate these factors into the generation of the scenes and again learn estimators from the corresponding labeled 368 images. A challenge for this approach will be to thoughtfully control the increase in problem complexity, both to keep com 369 pute time feasible and to ensure that it is possible to extract meaningful insight from the results. Extending the work to include 370 variation of material may provide insights not only about luminance constancy but also for computations that relate to material 371 perception (see Fleming, 2017). Extending the work to include variation in object shape and lighting geometry may clarify the 372 role of object boundaries versus object interiors for providing information that supports perception of object color and lightness 373 (see Land & McCann, 1971; Rudd, 2016). We also note that there is a literature on how increasing stimulus complexity along 374 the various lines listed above affects human color and lightness perception (e.g. Beck, 1964; Yang & Maloney, 2001; Yang & 375 Shevell, 2002; Todd, Norman, & Mingolla, 2004; Snyder, Doerschner, & Maloney, 2005; Boyaci, Maloney, & Hersh, 2003; 376 Xiao & Brainard, 2008; Kingdom, 2011; Xiao, Hurst, MacIntyre, & Brainard, 2012; Anderson, 2015; Toscani et al., 2017), and 377 the computational problem of color and lightness constancy (e.g. Lee, 1986; D’Zmura & Lennie, 1986; Funt & Drew, 1988; 378 Tominaga & Wandell, 1989; Barron & Malik, 2012; Barron, 2015; Finlayson, 2018). 379 We studied the information available for LRF estimation using a 1 <sup>_◦_</sup> _⇥_ 1 <sup>_◦_</sup> image patch. As noted above this choice of size was 380 motivated in part to use a spatial scale roughly commensurate with the scale of information integration in early visual cortex. Our 381 general methods could be extended to study larger regions, and doing so would quantify the value of spatially remote information 382 for luminance constancy. 383 Luminance constancy is a special case of the more general problem of color constancy. The approach we developed here 384 could also be generalized to the estimation of additional surface reflectance descriptors, such as object hue or chroma. A further 385 advance would be to develop methods for learning receptive fields that are optimal for multivariate estimation problems. With 386 such methods one could directly estimate three-dimensional color descriptors. 387 Linking to Human Performance 388 An important motivation for studying the computational problem of luminance constancy is to gain insight about human 389 vision. The approach we developed can be used to make predictions of how humans would perform in a psychophysical task 390 that probes the visual representation of object LRF. For example, one could study discrimination thresholds for target LRF using 391 the stimuli that were generated with the methods used here. More specifically, we could ask how LRF discrimination thresholds 392 are impacted by spectral variation in the illuminant, the background objects, and in the target object itself. Comparing human 393 thresholds with the precision of AMA-based estimates would then allow inferences about how well human observers make use 394 of the information available in the images for performing LRF discrimination. We think experiments and analyses along these Singh, Cottaris, Heasly, Brainard, & Burge 19 395 lines represent an important future direction. #### 396 Acknowledgments 397 Supported by startup funds from the University of Pennsylvania (JB), NIH grant R01 EY028571 from the National Eye 398 Institute and the Office of Behavioral and Social Science Research (JB), NIH grant RO1 EY100106 (DHB) from the National 399 Eye Institute, Simons Foundation Collaboration on the Global Brain Grant 324759 (DHB), and the University of Pennsylvania 400 Computational Neuroscience Initiative (VS). Preliminary versions of this work were presented at the Computational Cognitive 401 Neuroscience Conference (2017) and the Annual Meeting of the Society for Neuroscience (2017). #### 402 References 403 Adelson, E. H. (2000). Lightness perception and lightness illusions. In M. Gazzaniga (Ed.), _The New Cognitive Neurosciences_ . 404 Cambridge, MA: MIT Press, 339-351. 405 Albrecht, D. G., & Geisler, W. S. (1991). Motion selectivity and the contrast-response function of simple cells in the visual 406 cortex. _Visual Neuroscience_, _7_ (6), 531-546. 407 American Society for Testing and Materials. (2017). Standard test method for luminous reflectance factor of acoustical materials 408 by use of integrating-sphere reflectometers. _Renovations of Center for Historic Preservation_, _98_ (A), E1477. 409 Anderson, B. L. (2015). The perceptual representation of transparency, lightness, and gloss. In J. Wagemans (Ed.), _Handbook_ 410 _of Perceptual Organization_ . Oxford: Oxford University Press. 411 Attewell, D., & Baddeley, R. J. (2007). The distribution of reflectances within the visual environment. _Vision Research_, _47_ (4), 412 548-554. 413 Barnard, K., Martin, L., Funt, B., & Coath, A. (2002). A data set for color research. _Color_ _Research_ _&_ _Application_, _27_ (3), 414 147-151. 415 Barron, J. T. (2015). Convolutional color constancy. _Proceedings_ _of_ _the_ _IEEE_ _International_ _Conference_ _on_ _Computer_ _Vision_, 416 379-387. 417 Barron, J. T., & Malik, J. (2012). Color constancy, intrinsic images, and shape estimation. _Proceedings_ _of_ _the_ _European_ 418 _Conference on Computer Vision (ECCV)_, 57-70. 419 Beck, J. (1964). The effect of gloss on perceived lightness. _The American Journal of Psychology_, _77_ (1), 54-63. 420 Bell, S., Bala, K., & Snavely, N. (2014). Intrinsic images in the wild. _ACM Transactions on Graphics (TOG)_, _33_ (4), 159. 421 Benson, N. C., Manning, J. R., & Brainard, D. H. (2014). Unsupervised learning of cone spectral classes from natural images. 422 _PLoS Computational Biology_, _10_ (6), e1003652. 423 Boyaci, H., Maloney, L. T., & Hersh, S. (2003). The effect of perceived surface orientation on perceived surface albedo in 424 binocularly viewed scenes. _Journal of Vision_, _3_ (8), 541-553. 425 Brainard, D. H. (2015). Color and the cone mosaic. _Annual Review of Vision Science_, _1_, 519-546. 426 Brainard, D. H., & Freeman, W. T. (1997). Bayesian color constancy. _Journal_ _of_ _the_ _Optical_ _Society_ _of_ _America_ _A_, _14_ (7), 427 1393-1411. 428 Brainard, D. H., & Radonji´c, A. (2014). Color constancy. In L. M. Chalupa & J. S. Werner (Eds.), _The New Visual Neurosciences_ . 429 MIT Press, 545-556. 430 Brainard, D. H., & Wandell, B. A. (1986). Analysis of the retinex theory of color vision. _Journal_ _of_ _the_ _Optical_ _Society_ _of_ 431 _America A_, _3_ (10), 1651-1661. 432 Buchsbaum, G. (1980). A spatial processor model for object colour perception. _Journal of the Franklin Institute_, _310_ (1), 1-26. Singh, Cottaris, Heasly, Brainard, & Burge 20 433 Burge, J., Fowlkes, C. C., & Banks, M. S. (2010). Natural-scene statistics predict how the figure–ground cue of convexity affects 434 human depth perception. _Journal of Neuroscience_, _30_ (21), 7269-7280. 435 Burge, J., & Geisler, W. S. (2011). Optimal defocus estimation in individual natural images. _Proceedings_ _of_ _the_ _National_ 436 _Academy of Sciences_, _108_ (40), 16849-16854. 437 Burge, J., & Geisler, W. S. (2012). Optimal defocus estimates from individual images for autofocusing a digital camera. _Digital_ 438 _Photography VIII_, _8299_, 82990E. 439 Burge, J., & Geisler, W. S. (2014). Optimal disparity estimation in natural stereo images. _Journal of Vision_, _14_ (2), 1-18. 440 Burge, J., & Geisler, W. S. (2015). Optimal speed estimation in natural image movies predicts human performance. _Nature_ 441 _Communications_, _6_, 7900. 442 Burge, J., & Jaini, P. (2017). Accuracy maximization analysis for sensory-perceptual tasks: Computational improvements, filter 443 robustness, and coding advantages for scaled additive noise. _PLoS Computational Biology_, _13_ (2), e1005281. 444 Burge, J., McCann, B. C., & Geisler, W. S. (2016). Estimating 3d tilt from local image cues in natural scenes. _Journal of Vision_, 445 _16_ (13), 1-25. 446 Burton, G., & Moorhead, I. R. (1987). Color and spatial structure in natural scenes. _Applied Optics_, _26_ (1), 157-170. 447 Butler, D. J., Wulff, J., Stanley, G. B., & Black, M. J. (2012). A naturalistic open source movie for optical flow evaluation. 448 _European Conference on Computer Vision (ECCV)_, 611-625. 449 Carandini, M., & Heeger, D. J. (2012). Normalization as a canonical neural computation. _Nature Reviews Neuroscience_, _13_ (1), 450 51-62. 451 Chakrabarti, A., & Zickler, T. (2011). Statistics of real-world hyperspectral images. _Proceedings of the IEEE Computer Society_ 452 _Conference on Computer Vision and Pattern Recognition_, 193-200. 453 Cheng, D., Prasad, D. K., & Brown, M. S. (2014). Illuminant estimation for color constancy: why spatial-domain methods work 454 and the role of the color distribution. _Journal of the Optical Society of America A_, _31_ (5), 1049-1058. 455 Ciurea, F., & Funt, B. (2003). A large image database for color constancy research. _Color and Imaging Conference_, _2003_ (1), 456 160-164. 457 Commission Internationale de l’´eclairage. (1986). _Colorimetry, second edition_ (Tech. Rep. No. 15.2). Bureau Central de la CIE. 458 D’Zmura, M., & Iverson, G. (1994). Color constancy. iii. General linear recovery of spectral descriptions for lights and surfaces. 459 _Journal of the Optical Society of America A_, _11_ (9), 2389-2400. 460 D’Zmura, M., Iverson, G., & Singer, B. (1995). Probabilistic color constancy. _Geometric_ _Representations_ _of_ _Perceptual_ 461 _Phenomena:_ _Papers in Honor of Tarow Indow’s 70th Birthday_, 187-202. 462 D’Zmura, M., & Lennie, P. (1986). Mechanisms of color constancy. _Journal_ _of_ _the_ _Optical_ _Society_ _of_ _America_ _A_, _3_ (10), 463 1662-1672. 464 Ennis, R., Schiller, F., Toscani, M., & Gegenfurtner, K. R. (2018). Hyperspectral database of fruits and vegetables. _Journal of_ 465 _the Optical Society of America A_, _35_ (4), B256-B266. 466 Finlayson, G. D. (2018). Colour and illumination in computer vision. _Interface Focus_, _8_ (4), 20180008. 467 Fleming, R. W. (2017). Material perception. _Annual Review of Vision Science_, _3_, 365-388. 468 Foster, D. H. (2011). Color constancy. _Vision Research_, _51_ (7), 674-700. 469 Funt, B. V., & Drew, M. S. (1988). Color constancy computation in near-mondrian scenes using a finite dimensional linear 470 model. _Computer Society Conference on Computer Vision and Pattern Recognition_, 544-549. 471 Gattass, R., Gross, C., & Sandell, J. (1981). Visual topography of V2 in the macaque. _Journal_ _of_ _Comparative_ _Neurology_, 472 _201_ (4), 519-539. Singh, Cottaris, Heasly, Brainard, & Burge 21 473 Gattass, R., Sousa, A., & Gross, C. (1988). Visuotopic organization and extent of V3 and V4 of the macaque. _Journal_ _of_ 474 _Neuroscience_, _8_ (6), 1831-1845. 475 Geisler, W. S., Najemnik, J., & Ing, A. D. (2009). Optimal stimulus encoders for natural tasks. _Journal of Vision_, _9_ (13), 1-6. 476 Gilchrist, A. (2006). _Seeing black and white_ . Oxford: Oxford University Press. 477 Girshick, A. R., Landy, M. S., & Simoncelli, E. P. (2011). Cardinal rules: visual orientation perception reflects knowledge of 478 environmental statistics. _Nature Neuroscience_, _14_ (7), 926-932. 479 Goncalves, N. R., & Welchman, A. E. (2017). “What not” detectors help the brain see in depth. _Current_ _Biology_, _27_ (10), 480 1403-1412. 481 Heasly, B. S., Cottaris, N. P., Lichtman, D. P., Xiao, B., & Brainard, D. H. (2014). Rendertoolbox3: Matlab tools that facilitate 482 physically based stimulus rendering for vision research. _Journal of Vision_, _14_ (2), 1-22. 483 Hecht, S., Shlaer, S., & Pirenne, M. H. (1942). Energy, quanta, and vision. _The Journal of General Physiology_, _25_ (6), 819-840. 484 Heeger, D. J. (1992). Normalization of cell responses in cat striate cortex. _Visual Neuroscience_, _9_ (2), 181-197. 485 Hern´andez-Andr´es, J., Romero, J., Nieves, J. L., & Lee, R. L. (2001). Color and spectral analysis of daylight in southern europe. 486 _Journal of the Optical Society of America A_, _18_ (6), 1325-1335. 487 Jacobs, G. H. (1981). _Comparative Color Vision_ . New York: Academic Press. 488 Jaini, P., & Burge, J. (2017). Linking normative models of natural tasks to descriptive models of neural response. _Journal_ _of_ 489 _Vision_, _17_ (12), 1-26. 490 Jakob, W. (2010). Mitsuba renderer. _http://www.mitsuba-renderer.org_ . 491 Kelly, K. L., Gibson, K. S., & Nickerson, D. (1943). Tristimulus specification of the Munsell book of color from spectrophoto 492 metric measurements. _Journal of the Optical Society of America_, _33_ (7), 355-376. 493 Kim, S., & Burge, J. (2018). The lawful imprecision of human surface tilt estimation in natural scenes. _eLife_, _7_, e31448. 494 Kingdom, F. A. (2011). Lightness, brightness and transparency: A quarter century of new ideas, captivating demonstrations and 495 unrelenting controversy. _Vision Research_, _51_ (7), 652-673. 496 Land, E. H. (1977). The retinex theory of color vision. _Scientific American_, _237_ (6), 108-128. 497 Land, E. H. (1986). An alternative technique for the computation of the designator in the retinex theory of color vision. 498 _Proceedings of the National Academy of Sciences_, _83_ (10), 3078-3080. 499 Land, E. H., & McCann, J. J. (1971). Lightness and retinex theory. _Journal of the Optical Society of America_, _61_ (1), 1-11. 500 Lee, H.-C. (1986). Method for computing the scene-illuminant chromaticity from specular highlights. _Journal_ _of_ _the_ _Optical_ 501 _Society of America A_, _3_ (10), 1694-1699. 502 Maloney, L., & Wandell, B. A. (1986). Color constancy: a method for recovering surface spectral reflectances. _Journal of the_ 503 _Optical Society of America A_, _3_, 29-33. 504 Marimont, D. H., & Wandell, B. A. (1994). Matching color images: the effects of axial chromatic aberration. _Journal_ _of_ _the_ 505 _Optical Society of America A_, _11_ (12), 3113-3122. 506 Mollon, J. D. (1989). “Tho’ she kneel’d in that place where they grew...” The uses and origins of primate colour vision. _Journal_ 507 _of Experimental Biology_, _146_, 21-38. 508 Nascimento, S. M., Amano, K., & Foster, D. H. (2016). Spatial distributions of local illumination color in natural scenes. _Vision_ 509 _Research_, _120_, 39-44. 510 Olmos, A., & Kingdom, F. A. (2004). A biologically inspired algorithm for the recovery of shading and reflectance images. 511 _Perception_, _33_ (12), 1463-1473. Singh, Cottaris, Heasly, Brainard, & Burge 22 512 Parraga, C. A., Brelstaff, G., Troscianko, T., & Moorehead, I. R. (1998). Color and luminance information in natural scenes. 513 _Journal of the Optical Society of America A_, _15_, 563-569. 514 Regan, B. C., Julliot, C., Simmen, B., Vienot, F., Charles-Dominique, P., & Mollon, J. D. (2001). Fruits, foliage and the evolution 515 of primate colour vision. _Philosophical Transactions of the Royal Society of London B: Biological Sciences_, _356_ (1407), 516 229-283. 517 Rudd, M. E. (2016). Retinex-like computations in human lightness perception and their possible realization in visual cortex. 518 _Electronic Imaging_, _2016_ (6), 1-8. 519 Sebastian, S., Burge, J., & Geisler, W. S. (2015). Defocus blur discrimination in natural images with natural optics. _Journal of_ 520 _Vision_, _15_ (5). 521 Skauli, T., & Farrell, J. (2013). A collection of hyperspectral images for imaging systems research. _Digital_ _Photography_ _IX_, 522 _8660_, 86600C1-C7. 523 Snyder, J. L., Doerschner, K., & Maloney, L. T. (2005). Illumination estimation in three-dimensional scenes with and without 524 specular cues. _Journal of Vision_, _5_ (10), 863-877. 525 Sumner, P., & Mollon, J. D. (2000). Catarrhine photopigments are optimized for detecting targets against a foliage background. 526 _Journal of Experimental Biology_, _203_ (13), 1963-1986. 527 Tkacik, G., Garrigan, P., Ratliff, C., Milcinski, G., Klein, J. M., Sterling, P., Brainard, D. H., & Balasubramanian, V. (2011). 528 Natural images from the birthplace of the human eye. _PLoS ONE_, _6_ (6), e20409. 529 Todd, J. T., Norman, J. F., & Mingolla, E. (2004). Lightness constancy in the presence of specular highlights. _Psychological_ 530 _Science_, _15_ (1), 33-39. 531 Tominaga, S., & Wandell, B. A. (1989). Standard surface-reflectance model and illuminant estimation. _Journal of the Optical_ 532 _Society of America A_, _6_ (4), 576-584. 533 Toscani, M., Valsecchi, M., & Gegenfurtner, K. R. (2013). Optimal sampling of visual information for lightness judgments. 534 _Proceedings of the National Academy of Sciences_, _110_ (27), 11163-11168. 535 Toscani, M., Valsecchi, M., & Gegenfurtner, K. R. (2017). Lightness perception for matte and glossy complex shapes. _Vision_ 536 _Research_, _131_, 82-95. 537 Vrhel, M. J., Gershon, R., & Iwan, L. S. (1994). Measurement and analysis of object reflectance spectra. _Color_ _Research_ _&_ 538 _Application_, _19_ (1), 4-9. 539 Wiebel, C. B., Toscani, M., & Gegenfurtner, K. R. (2015). Statistical correlates of perceived gloss in natural images. _Vision_ 540 _Research_, _115_, 175-187. 541 Xiao, B., & Brainard, D. H. (2008). Surface gloss and color perception of 3d objects. _Visual Neuroscience_, _25_ (3), 371-385. 542 Xiao, B., Hurst, B., MacIntyre, L., & Brainard, D. H. (2012). The color constancy of three-dimensional objects. _Journal_ _of_ 543 _Vision_, _12_ (4), 6-6. 544 Yang, J. N., & Maloney, L. T. (2001). Illuminant cues in surface color perception: Tests of three candidate cues. _Vision Research_, 545 _41_ (20), 2581-2600. 546 Yang, J. N., & Shevell, S. K. (2002). Stereo disparity improves color constancy. _Vision Research_, _42_ (16), 1979-1989. ### Appendix: Computational Luminance Constancy from Naturalistic Images Vijay Singh, Nicolas P. Cottaris, Benjamin S. Heasly, David H. Brainard, Johannes Burge #### 1 Illumination Spectra Denote the _i_ ’th spectrum in the Granada dataset as _Ii_ <sup>G(</sup> <sup>_⁄_</sup> <sup>), where</sup> <sup>_{i œ_</sup> <sup>[1</sup> <sup>_, M_</sup> <sup>]</sup> <sup>_}_</sup> <sup>and</sup> <sup>_M_</sup> <sup>is the total number</sup> of spectra in the dataset. Since the measured spectra vary over several orders of magnitude in overall intensity, we normalize each spectrum by dividing it by its mean power to obtain what we refer to as rescaled spectra: _<u>Ii</u>_ <sup>G(</sup> _i_ <sup>S(</sup> <sup>_⁄_</sup> <sup>) =</sup> _d⁄I_ _Ii_ <sup>S</sup> _<u>Ii</u>_ <sup>G(</sup> <sup>_<u>⁄</u>_</sup> <sup><u>)</u></sup> _d⁄I_ <sup>~~G~~</sup> _⁄_ ~~s~~ as a _i_ <sup><u>(</u></sup> _d⁄I_ <sup>~~G~~</sup> _i_ <sup>_<u>⁄</u>_</sup> <sup><u>)</u></sup> (1) <sup>~~G~~</sup> _i_ <sup><u>(</u></sup> <sup>_⁄_</sup> <sup><u>)</u></sup> <sup>_._</sup> For simplicity of notation, we denote wavelength _⁄_ as a continuous variable; in the actual calculations wavelength is discretely sampled and integrals are approximated by sums. The Granada dataset was measured at 5 nm sampling intervals between 300 and 1100 nm. We subsampled the spectra to the 400-700 nm interval, 10 nm spacing representation used for rendering, and performed our calculations at this sampling. The rescaled spectra _Ii_ <sup>S(</sup> <sup>_⁄_</sup> <sup>)</sup> <sup>were</sup> <sup>mean</sup> <sup>centered</sup> <sup>for</sup> <sup>PCA</sup> <sup>by</sup> <sup>subtracting</sup> <sup>out</sup> <sup>the</sup> <sup>mean</sup> <sup>(¯</sup> <sup>_I_</sup> <sup>S(</sup> <sup>_⁄_</sup> <sup>)),</sup> <sup>over</sup> all rescaled spectra in the dataset, The rescaled spectra _Ii_ <sup>S</sup> _I_ ¯ <sup>_s_</sup> ( _⁄_ ) = <sup><u>1</u></sup> _M_ _i_ ÿ _i_ _Ii_ <sup>S(</sup> <sup>_⁄_</sup> <sup>)</sup> <sup>_._</sup> (2) _Ii_ <sup>S</sup> The mean centered dataset, _Ii_ <sup>MC</sup> _i_ <sup>MC</sup> ( _⁄_ ) = _I_ <sup>S</sup> _i_ _i_ <sup>S(</sup> <sup>_⁄_</sup> <sup>)</sup> <sup>_≠_</sup> <sup>_I_</sup> <sup>¯S(</sup> <sup>_⁄_</sup> <sup>)</sup> <sup>was</sup> <sup>decomposed</sup> <sup>as:</sup> _Ii_ <sup>MC</sup> ( _⁄_ ) = _j_ ÿ _wije_ <sup>PCA</sup> _j_ ( _⁄_ ) _,_ (3) _j_ where the _e_ <sup>PCA</sup> _j_ where the _e_ <sup>PCA</sup> _j_ ( _⁄_ ) are the PCA basis vectors obtained using singular value decomposition (SVD) applied to _Ii_ <sup>MC</sup> ( _⁄_ ), and _wij_ are the weights obtained by projecting each of _Ii_ <sup>MC</sup> ( _⁄_ ) onto the basis vectors _e_ <sup>PCA</sup> _j_ ( _⁄_ ) _i_ <sup>MC</sup> ( _⁄_ ), and _wij_ are the weights obtained by projecting each of _Ii_ <sup>MC</sup> to _Ii_ <sup>MC</sup> ( _⁄_ ), and _wij_ are the weights obtained by projecting each of _Ii_ <sup>MC</sup> ( _⁄_ ) onto the basis vectors _e_ <sup>PCA</sup> _j_ ( _⁄_ ) _wij_ = _Ii_ <sup>MC</sup> ( _⁄_ ) _· ej_ <sup>PCA</sup> ( _⁄_ ) . We used the basis vectors corresponding to the largest six SVD eigenvalues, so! that _{j_ _œ_ [1 _,_ 6] _}_ . For "the rescaled Granada dataset, these six eigenvalues account for more than 90% of the variance. _i_ <sup>MC</sup> ( _⁄_ ) onto the basis vectors _e_ <sup>PCA</sup> _j_ _wij_ = _Ii_ <sup>MC</sup> _i_ <sup>MC</sup> ( _⁄_ ) _· ej_ <sup>PCA</sup> " _wij_ = _Ii_ <sup>MC</sup> ( _⁄_ ) _· ej_ <sup>PCA</sup> ( _⁄_ ) . We used the basis vectors corresponding to the largest six SVD eigenvalues, so! that _{j_ _œ_ [1 _,_ 6] _}_ . For "the rescaled Granada dataset, these six eigenvalues account for more than 90% of the variance. To get a random illuminant spectrum _I_ <sup>˜</sup> _i_ ( _⁄_ ), we sample random weights _w_ ˜ _ij_ from a multivariate Gaussian distribution with mean _w_ ¯ _j_ = _M_ <u>1</u> _i_ <sup>_wij_</sup> <sup>,</sup> <sup>and</sup> <sup>covariance</sup> <sup>matrix</sup> <sup>Σ</sup> <sup>given</sup> <sup>as:</sup> <u>q</u> _j_ ( _⁄_ ) <sup>PCA</sup> <u>q</u> _i_ <sup>_wij_</sup> <sup>,</sup> <sup>and</sup> <sup>covariance</sup> <sup>matrix</sup> <sup>Σ</sup> <sup>given</sup> <sup>as:</sup> Σ _jjÕ_ = <sup><u>1</u></sup> _i_ ÿ _M_ _i_ ( _wij_ _≠_ _w_ ¯ _j_ ) ( _wijÕ_ _≠_ _w_ ¯ _jÕ_ ) _._ (4) The corresponding spectrum is generated from these weights as _j_ <sup>_w_</sup> <sup>˜</sup> <sup>_ije_</sup> _j_ <sup>PCA</sup> ( _⁄_ ) + _I_ <sup>¯S</sup> ( _⁄_ ) . This spectrum can sometimes have values that are less than zero. In such cases,1q the weights are discarded2 and a new The corresponding spectrum is generated from these weights as cases, 1q _j_ <sup>_w_</sup> <sup>˜</sup> <sup>_ije_</sup> _j_ <sup>PCA</sup> _j_ <sup>PCA</sup> ( _⁄_ ) + _I_ <sup>¯S</sup> ( _⁄_ ) 1 draw obtained, until the condition _j_ <sup>_w_</sup> <sup>˜</sup> <sup>_ije_</sup> _j_ <sup>PCA</sup> ( _⁄_ ) + _I_ <sup>¯S</sup> ( _⁄_ ) _>_ 0, is satisfied for all _⁄_ . The random illuminant spectrum is 1q 2 draw obtained, until the condition 1q _j_ <sup>_w_</sup> <sup>˜</sup> <sup>_ije_</sup> _j_ <sup>PCA</sup> <sup>_e_</sup> _j_ <sup>PCA</sup> ( _⁄_ ) + _I_ <sup>¯S</sup> ( _⁄_ ) _j_ _I_ ˜ _i_ ( _⁄_ ) = Q a Q _j_ a <sup>ÿ</sup> _w_ ˜ _ije_ <sup>PCA</sup> _j_ <sup>PCA</sup> _j_ ( _⁄_ ) + _I_ <sup>¯S</sup> ( _⁄_ ) R b (5) R b _._ #### 2 Surface Reflectance Spectra Denote the _i_ ’th sample in the reflectance spectrum dataset as _Ri_ ( _⁄_ ), where _{i_ _œ_ [1 _, M_ ] _}_ and _M_ is the total number of spectra in the dataset. We first calculated the mean reflectance spectrum, _R_ <sup>¯</sup> ( _⁄_ ), by taking the sample mean over all spectra in the dataset _R_ ¯( _⁄_ ) = <sup><u>1</u></sup> _M_ _M_ _i_ =1 ÿ _i_ =1 _Ri_ ( _⁄_ ) _._ (6) The dataset is then mean centered by subtracting the mean spectrum, _Ri_ <sup>MC</sup> ( _⁄_ ) = _Ri_ ( _⁄_ ) _≠_ _R_ <sup>¯</sup> ( _⁄_ ) and decomposed using PCA as: The dataset is then mean centered by subtracting the mean spectrum, _Ri_ <sup>MC</sup> _Ri_ <sup>MC</sup> ( _⁄_ ) = _j_ ÿ _wij_ _e_ <sup>PCA</sup> _j_ ( _⁄_ ) _,_ (7) _wij_ _e_ <sup>PCA</sup> _j_ where _e_ <sup>PCA</sup> _j_ <sup>PCA</sup> _j_ ( _⁄_ ) are PCA basis vectors obtained using SVD applied to _Ri_ <sup>MC</sup> _i_ <sup>MC</sup> ( _⁄_ ) onto the basis vectors _e_ <sup>PCA</sup> _j_ ( <sup>PCA</sup> _j_ ( _⁄_ ) _i_ <sup>MC</sup> ( _⁄_ ) _· ej_ <sup>PCA</sup> account for _j_ ( _⁄_ ) <sup>PCA</sup> where _e_ <sup>PCA</sup> _j_ ( _⁄_ ) are PCA basis vectors obtained using SVD applied to _Ri_ <sup>MC</sup> ( _⁄_ ) and _wij_ are the weights obtained by projecting each of _Ri_ <sup>MC</sup> ( _⁄_ ) onto the basis vectors _e_ <sup>PCA</sup> _j_ ( _⁄_ ) _wij_ = _Ri_ <sup>MC</sup> ( _⁄_ ) _· ej_ <sup>PCA</sup> ( _⁄_ ) . We " obtained by projecting each of _Ri_ <sup>MC</sup> ( _⁄_ ) onto the basis vectors _e_ <sup>PCA</sup> _j_ ( _⁄_ ) _wij_ = _Ri_ <sup>MC</sup> ( _⁄_ ) _· ej_ <sup>PCA</sup> ( _⁄_ ) . We used the basis vectors corresponding to the largest six SVD eigenvalues, which account for more than ! " 90% of the variance in the combined Munsell and Vrhel datasets. To get a random reflectance spectrum, we generate samples of weights ( ˜ _wij_ ) drawn from the multivariate Gaussian distribution with mean _w_ ¯ _j_ = _M_ <u>1</u> _i_ <sup>_wij_</sup> <sup>, and covariance Σ</sup> <sup>_jjÕ_</sup> <sup>=</sup> _M_ <u>1</u> _i_ <sup>(</sup> <sup>_wij_</sup> <sup>_≠_</sup> <sup>_w_</sup> <sup>¯</sup> <sup>_j_</sup> <sup>) (</sup> <sup>_wijÕ_</sup> <sup>_≠_</sup> <sup>_w_</sup> <sup>¯</sup> <sup>_jÕ_</sup> <sup>).</sup> If the randomly sampled weights satisfy the conditionq _j_ <sup>_w_</sup> <sup>˜</sup> <sup>_ije_</sup> _j_ <sup>PCA</sup> ( _⁄_ ) +q _R_ <sup>¯</sup> ( _⁄_ ) _<_ 1 at every _⁄_, the randomly generated reflectance spectrum is given as: 1 2 0 _<_ <sup>q</sup> ! _i_ _wij_ = _Ri_ <sup>MC</sup> q <u>1</u> _i_ <sup>_wij_</sup> <sup>, and covariance Σ</sup> <sup>_jjÕ_</sup> <sup>=</sup> _M_ _R_ <sup>¯</sup> q _i_ <sup>(</sup> <sup>_wij_</sup> <sup>_≠_</sup> <sup>_w_</sup> <sup>¯</sup> <sup>_j_</sup> <sup>) (</sup> <sup>_wijÕ_</sup> <sup>_≠_</sup> <sup>_w_</sup> <sup>¯</sup> <sup>_jÕ_</sup> <sup>).</sup> _⁄_ ) _<_ 1 If the randomly sampled weights satisfy the condition 1 0 _<_ <sup>q</sup> _j_ <sup>_w_</sup> <sup>˜</sup> <sup>_ije_</sup> _j_ <sup>PCA</sup> _j_ <sup>PCA</sup> ( _⁄_ ) + _R_ <sup>¯</sup> ( _⁄_ ) _<_ 1 _R_ ˜ _i_ ( _⁄_ ) = _j_ ÿ _w_ ˜ _ije_ <sup>PCA</sup> _j_ <sup>PCA</sup> _j_ ( _⁄_ ) + _R_ <sup>¯</sup> ( _⁄_ ) _._ (8) Otherwise the draw is discarded and a new set of weights is drawn. For generating the target object reflectance at a particular target LRV ( _Y_ T), the values in a generated spectrum were scaled by _<u>Y</u>_ <u>T</u> ~~s~~ _d⁄R_ <sup>~~˜~~</sup> <u>(</u> _⁄_ <u>)</u> _D_ _<u>Y</u>_ <u>T</u> (9) _d⁄R_ <sup>~~˜~~</sup> <u>(</u> _⁄_ <u>)</u> _D_ 65( _⁄_ <u>)¯</u> _y_ <u>(</u> _⁄_ <u>)</u> with _y_ ¯( _⁄_ ) being the CIE photopic luminosity (or luminous efficiency) function, which describes the average spectral sensitivity of human visual perception of luminance. The target reflectance is then given by: _<u>Y</u>_ <u>T</u> _d⁄R_ <sup>~~˜~~</sup> <u>(</u> _⁄_ <u>)</u> _D_ 65( _⁄_ <u>)¯</u> _y_ <u>(</u> _⁄_ <u>)</u> 3 ~~s~~ _<u>Y</u>_ <u>T</u> _d⁄R_ <sup>~~˜~~</sup> <u>(</u> _⁄_ <u>)</u> _D_ 3 ~~s~~ _._ (10) 4 _R_ ˜ _i_ <sup>T(</sup> <sup>_⁄_</sup> <sup>) =</sup> <sup>_R_</sup> <sup>˜</sup> <sup>_i_</sup> <sup>(</sup> <sup>_⁄_</sup> <sup>)</sup> <sup>_·_</sup> _i_ <sup>T(</sup> <sup>_⁄_</sup> <sup>) =</sup> <sup>_R_</sup> <sup>˜</sup> <sup>_i_</sup> <sup>(</sup> <sup>_⁄_</sup> <sup>)</sup> <sup>_·_</sup> 2 (a) Cone excitations 0.04 0.02 0 -0.02 -0.04 1 L 1 M 1 S 0.04 0.02 0 -0.02 -0.04 2 L 2 M 2 S 0.04 0.02 0 -0.02 -0.04 3 L 3 M 3 S (b) Normalized contrast 0.04 0.02 0 -0.02 -0.04 1 L 1 M 1 S 0.04 0.02 0 -0.02 -0.04 2 L 2 M 2 S 0.04 0.02 0 -0.02 -0.04 3 L 3 M 3 S Figure 1: Condition 2 receptive fields: The first three AMA receptive fields learnt on (a) Cone excitations (b) Normalized contrast. 3

섹션 본문 71문단 · 55,091자

(제목 없음)

1The human visual system supports stable percepts of object color even though the light that reflects from object surfaces varies significantly with the scene illumination.To understand the computations that support stable color perception, we study how estimating a target object's luminous reflectance factor (LRF; a measure of the light reflected from the object under a standard illuminant) depends on variation in key properties of naturalistic scenes.Specifically, we study how variation in target object reflectance, illumination spectra, and the reflectance of background objects in a scene impact estimation of a target object's LRF.To do this, we applied supervised statistical learning methods to the simulated excitations of human cone photoreceptors, obtained from labeled naturalistic images.The naturalistic images were rendered with computer graphics.The illumination spectra of the light sources and the reflectance spectra of the surfaces in the scene were generated using statistical models of natural spectral variation.Optimally decoding target object LRF from the responses of a small learned set of task-specific linear receptive fields that operate on a contrast representation of the cone excitations yields estimates that are within 13% of the correct LRF.Our work provides a framework for evaluating how different sources of scene variability limit performance on luminance constancy.

Introduction

2The perceived color of an object has important behavioral implications because color helps to identify objects and their surface properties (Jacobs, 1981;Mollon, 1989).The computational challenge underlying object color perception is that the light reflected from an object depends not just on the object's surface reflectance, but also on object-extrinsic factors such as the scene illumination, the pose of the object, and the viewpoint of the observer in the scene (Figure 1a).To compute a perceptual representation of object color that is correlated with the object's physical surface reflectance, the visual system must account for these object-extrinsic factors.The ability of a visual system to compute a representation of object color that is stable against variation in object-extrinsic factors is called color constancy.A well-studied special case of color constancy is when the stimuli are restricted to be achromatic.This special case is called lightness constancy (Gilchrist, 2006).Although human lightness and color constancy are not perfect, they are often very good (Adelson, 2000;Foster, 2011;Kingdom, 2011;Brainard & Radonjić, 2014).

3The computational problem of color constancy may be framed as how to obtain stable descriptions of the spectral surface reflectance functions of the objects in a Citation: Singh, V., Cottaris, N. P., Heasly, B. S., Brainard, D. H., & Burge, J. (2018).Computational luminance constancy from naturalistic images.Journal of Vision, 18(13):19, 1-17, https://doi.org/10.1167/18.13.19.scene.Early work on computational color constancy considered a simplified imaging model where scenes consisted of multiple flat matte objects and a single spatially diffuse illuminant (Land, 1977;Buchsbaum, 1980;Maloney & Wandell, 1986).Subsequent work incorporated probabilistic descriptions of the statistics of naturally occurring scenes (D'Zmura & Iverson, 1994;D'Zmura, Iverson, & Singer, 1995;Brainard & Freeman, 1997).A key insight from these computational studies is that stable color descriptors of a target surface cannot be obtained solely from the light reflected from that target object.It is possible, however, to obtain stable color descriptors by jointly analyzing the light reflected from multiple surfaces in the scene.As a consequence, color constancy will be affected both by variation in the illumination and by variation in the surface reflectance of other objects in the scene.Color constancy algorithms should therefore be evaluated with respect to variation in both of these factors (Brainard & Wandell, 1986;Brainard & Freeman, 1997).

4Recently, supervised statistical learning methods have been applied to the computational problem of color constancy.These methods use the joint statistics of labeled images and scene variables to learn mappings that extract stable surface color descriptors from image input (Barron, 2015).This general approach has been useful for other perceptual problems in early and midlevel vision.For example, a recently developed technique called accuracy maximization analysis (AMA) learns linear receptive fields optimized for particular perceptual tasks (Geisler, Najemnik, & Ing, 2009;Burge & Jaini, 2017;Jaini & Burge, 2017).AMA has been used to develop ideal observers for estimating defocus blur, binocular disparity, and retinal motion estimation with natural stimuli.These ideal observers provide excellent predictions of human performance (Burge & Geisler, 2011, 2012, 2014, 2015).

5Supervised learning requires large labeled datasets.Such datasets are not readily available for the study of color constancy.Although there are datasets of calibrated color images, these do not provide ground truth information about surface reflectance and illumination at each image location (Parraga, Brelstaff, Troscianko, & Moorehead, 1998;Olmos & Kingdom, 2004;Chakrabarti & Zickler, 2011;Tkacik et al., 2011;Skauli & Farrell, 2013;Nascimento, Amano, & Foster, 2016).There are a few databases consisting of images of posed scenes where surface reflectances of individual objects have been measured (Funt & Drew, 1988;Ciurea & Funt, 2003), but these databases are not large enough to drive supervised learning.Finally, recent work has applied crowd-sourcing techniques to annotate natural images with surface reflectance descriptors (Bell, Bala, & Snavely, 2014).

6In this paper, we use high-quality computer graphics to generate large datasets of naturalistic images where the surface reflectance corresponding to each image pixel is known.This approach allows us to investigate computational color constancy with naturalistic stimuli, while retaining the ability to control the properties of objects and illuminants.We specifically tackle the The light reflected from an object to the eye depends both on the surface reflectance of the object and on the scene illumination.The reflected light also depends on geometric factors, such as the object's shape, pose, and position.The human visual system accounts for variations in reflected light due to object-extrinsic factors and produces a percept of object color that is relatively stable across such variations.(b) Images of a sphere under a fixed illuminant.Down each column, the sphere's luminous reflectance factor (LRF) varies, but its relative reflectance spectrum (i.e., its spectral shape) is held fixed.Across each row, the relative reflectance spectrum varies, but the LRF is held fixed.We cast the problem of computational luminance constancy to be that of estimating the LRF of a target object from the image, across variation in other scene factors.Specifically, we study variation in target object relative surface reflectance, variation in illumination spectrum, and variation in the surface reflectance of the other objects in the scene.

7problem of luminance constancy, a constitutive component of the more general color constancy problem (Figure 1b).

8We define the computational problem of luminance constancy 1 as that of estimating the luminous reflectance factor (LRF) of a target object's surface reflectance function.The LRF is a measure of the overall amount of light reflected by a surface relative to the reference illuminant itself. 2 Obtaining the LRF from a known surface reflectance function requires two steps.First, one computes the luminance of the light that would be reflected from the surface under a reference illuminant.Second, one normalizes the result by the luminance of the reference illuminant itself.Here we use CIE daylight D65 as the reference illuminant and the CIE 1931 photopic luminosity function to compute luminance (Commission Internationale de l 'éclairage, 1986).Sometimes LRFs are expressed as a percentage.Here we express LRFs as proportions, so that they take on values between 0 and 1.An LRF of 0 means that none of the light from the reference illuminant is reflected from the surface.An LRF of 1 means that the luminance of the surface reflectance under the reference illuminant is the same as the luminance of a perfect reflector under that same illuminant.

Overview

9There are four key steps to our methods.First, we generate a labeled set of training images.Second, we use a model of the early visual system to compute the responses of the cone photoreceptor mosaic to the labeled images.Third, we learn the receptive fields (RFs) that extract the most useful information from the cone responses for the task.Fourth, we evaluate how well the responses of the receptive fields may be decoded to achieve luminance constancy.

Virtual naturalistic scenes

10The light that reflects from objects to the eyes depends on many factors.These include the surface reflectance, texture, material and geometry of the objects, the spectral power distribution of the illuminants, and the position of the observer.We have developed a rendering package, Virtual World Color Constancy (https://github.com/BrainardLab/VirtualWorldColorConstancy) that allows us to construct models of naturalistic scenes, with key scene factors under programmatic control.The package builds on the RenderToolbox4 package (http:// rendertoolbox.org;Heasly, Cottaris, Lichtman, Xiao, & Brainard, 2014) and harnesses the open-source computer graphics renderer Mitsuba (https://www.mitsuba-renderer.org;Jakob, 2010) to produce physically accurate images from the scene models.Because the images are rendered from known scene models, each image pixel can be labeled with the surface reflectance of the corresponding object.By using statistical models of daylight illumination and object surface reflectance to guide the rendering of scenes, the package allows us to produce large labeled sets of images that capture key aspects of the task-relevant statistical structure of natural scenes.

11The RenderToolbox4 package includes a collection of base scenes (Figure 2).Base scenes specify an arrangement of objects and light sources.Base scenes may be enriched by the insertion of additional objects, chosen from an object library (Figure 3), and by the insertion of additional light sources.Once the position, size, and pose of the inserted objects and light sources have been set, a surface reflectance function can be assigned to each object in the scene, and a spectral power distribution function can be assigned to each light source (Figure 4).The resulting scene model can then be rendered from any specified viewpoint.

12In the present work, we used our package to generate datasets of naturalistic scenes and corresponding images.We used one fixed base scene and inserted a spherical target object of fixed size into this scene.All surfaces in the scene model were matte and did not have specularities.There were multiple light sources in the scene, and the rendering process simulated shadows as well as mutual reflection of light between nearby surfaces.We generated three distinct datasets, which we refer to as Conditions 1-3 (Figure 5).These are described below.Across these datasets the luminance constancy problem (i.e., estimating the target object LRF) becomes progressively more difficult.

13The variation within our datasets captures the essence of the computational problem of lightness constancy up to effects of scene geometry, an additional richness that we do not address in this paper (see Funt & Drew, 1988;Barron & Malik, 2012).

14In Condition 1, the relative reflectance spectrum of the target object was the only source of scene variation other than the target object LRF.The reflectance spectra of the background objects and the spectral power distribution of the light sources were held fixed.In Condition 2, the spectral power distribution of the light sources varied in addition to the relative reflectance spectrum of the target object.Finally, in Condition 3 three distinct scene factors-target object relative reflectance spectrum, spectral power distribution of the light sources, and reflectance spectra of the background objects-varied in addition to the target object LRF.The datasets for Conditions 1 and 2 consisted of 1,000 scenes and images, 100 for each of 10 target object LRF values.The dataset for Condition 3 consisted of 3,000 scenes and images, 300 each for the 10 target LRF values.The LRF values were equally spaced between 0.2 and 0.6.More than 90% of the surface reflectance spectra (described below) fell within this range.For each LRF value, we generated a different relative target object surface reflectance for each scene.

15We used the Library base scene and a spherical target object.The Library base scene contains two area lights.We inserted one additional spherical light source into the scene.In Conditions 2 and 3, the overall intensities of the three light source illumination spectra were equal, while their relative shape varied.The overall intensity varied from scene to scene.The position and size of the inserted object, the inserted light source, and the viewpoint on the scene were held fixed across all scenes.The geometry is shown in Figure 4a (top).Surface and illuminant spectra were sampled from statistical models of naturally occurring spectra.Multispectral images (320 3 240 pixels) were rendered at 31 evenly spaced wavelengths between 400 nm and 700 nm.

Illumination spectra

16To generate illumination spectra, we developed a statistical model of the Granada daylight measurements (Hernández-Andrés, Romero, Nieves, & Lee, 2001; http://colorimaginglab.ugr.es/pages/Data) and then sampled randomly from the model.To match the wavelength spacing we use in rendering, we resampled the wavelength spacing of the Granada spectra to 31 evenly spaced wavelengths between 400 nm and 700 nm.

17Our statistical model approximates normalized spectra from the Granada dataset using the first six principle components of the normalized measurements from that dataset.The distribution of weights on these components is approximated with a six-dimensional Gaussian, where the mean and covariance matrix match the sample mean and covariance of the weights (Brainard & Freeman, 1997).To generate a random relative illuminant spectrum, we sample weights randomly from this Gaussian and then perform a weighted sum of the components.Figure 6b illustrates the relative spectra of draws obtained using this procedure.Chromaticities and rendered color renditions of these draws are shown in Figures 6c and 6d.Details of the statistical model for illumination are provided in Supplementary Appendix S1.

18The multivariate Gaussian model described above is based on normalized spectra.Thus, it does not embody the large variation in overall intensity of natural daylights.To restore the overall intensity variation in the Granada dataset, which spans approximately three orders of magnitude, we scaled each randomly generated spectrum with a random number sampled from a log-uniform distribution spanning three orders of magnitude.The particular range of scale factors was chosen so that the mean number of cone isomerizations from the target object ranged from approximately 100 to 100,000, given a 100 ms cone integration time (see below).This range of cone isomerizations corresponds approximately to that of natural daylight viewing.

Surface reflectance spectra

19To generate random reflectance spectra, we employed principles similar to those used to generate random illuminant spectral power distributions.We used measurements from the Munsell (Kelly, Gibson, & Nickerson, 1943) and Vrhel (Vrhel, Gershon, & Iwan, 1994) surface reflectance datasets to create a dataset containing 632 reflectance spectra (462 from the Munsell data and 170 from the Vrhel data; Figure 7a).We resampled the spectra to 31 evenly spaced wavelengths between 400 nm and 700 nm.Figures 7b, 7c, and 7d illustrate reflectance samples obtained using the model.Details of the statistical model for surface reflectance spectra are provided in Supplementary Appendix S1.

20To generate the target object reflectance at a particular LRF, the sampled reflectance spectrum was scaled such that its LRF had the desired value (see Supplementary Appendix S1). Figure 8 shows color renderings of target reflectance spectra under CIE illuminant D65, for the evenly spaced LRF values we studied.

Model of early visual system

21Light entering the eye is focused and blurred by eye's optics to form the retinal image.This image is then sampled by a mosaic of cone photoreceptors.The excitations of these photoreceptors provide the information available to the neural visual system for further processing.Because we are interested in how well luminance constancy may be achieved by the human visual system, we simulated the cone excitations to our scenes using a model of the early visual system.

22We focused our analysis on image regions local to the target by cropping the rendered images to 1 3 1 degrees of visual angle around the target object (51 3 51 pixels; Figure 9a and b).The local analysis is motivated by the fact that neural receptive fields early in the visual pathways (e.g., retina, primary visual cortex) pool information locally.In primary visual cortex, foveal receptive fields have a maximum spatial extent of approximately 18 of visual angle (Gattass, Gross, & Sandell, 1981;Gattass, Sousa, & Gross, 1988).We sought to understand how well responses from AMA- learned receptive fields at a similar scale could be used to achieve luminance constancy.

23We modeled a visual system having typical optical blurring (including axial chromatic aberration; Marimont & Wandell, 1994), and typical spatial sampling with an interleaved rectangular mosaic of long (L), middle (M), and short (S) wavelength-sensitive cones (Brainard, 2015; Figure 9c).The cone mosaic contained L:M:S cones in approximately the ratio 0.6:0.3:0.1 (1,523 L cones, 801 M cones, 277 S cones) and with spectral sensitivities derived from the CIE physiological standard (Commission Internationale de l'éclairage, 1986).Cone excitations were taken as the number of photopigment isomerizations, assuming an integration time of 100 msec.The Poisson nature of the photo-pigment isomerization was also included (Hecht, Shlaer, & Pirenne, 1942).This modeling was implemented using the software infrastructure provided by ISETBio (https://isetbio.org).

24To put the computed cone excitations into a form for further analysis, we demosaiced the excitations for each cone class using linear interpolation to obtain a cone excitation image for each cone class.The lens and macular pigment absorb more short than long wavelength light, so that the excitations of the S cones tend to be smaller than those of the L and M cones.To make the magnitude of the three cone excitation images similar across cone classes, we normalized each cone excitation image by the summed (over wavelength) quantal efficiency of the corresponding cone class.The demosaicing and normalization do not alter the available information relative to that carried by the cone excitations themselves.

25To capture key properties of post-receptoral processing, such as contrast normalization (Albrecht & Geisler, 1991;Heeger, 1992;Carandini & Heeger, 2012), we processed the cone excitation images as follows: We first converted each cone excitation image to a corresponding cone contrast image.This was accomplished by computing the mean response over the three cone excitation images, and then subtracting off and dividing by this mean.To model contrast normalization, we then divided the contrast images by the sum of squared contrasts taken over image pixels and cone classes.

Computational luminance constancy

26We used our datasets to determine how well target object LRF can be estimated from cone excitations and from normalized cone contrasts.Studying both representations allows us to understand how early contrast coding and normalization affect luminance constancy.We applied accuracy maximization analysis (AMA) to learn the optimal receptive fields for estimating LRF, and evaluated performance when the responses of these receptive fields are optimally decoded.

Learning optimal receptive fields

27AMA is a task-specific Bayesian method for dimensionality reduction.When provided with a labeled training set, a receptive field response model, a decoder that uses these responses to estimate the stimulus label, and a cost function, AMA returns a set of N linear receptive fields, where N is a parameter of the procedure.These receptive fields are chosen so that decoding their responses leads to minimum expectedcost estimation, relative to any other choice of N linear receptive fields.This is possible because given a training set together with a set of N linear receptive fields and an explicit cost function, it is possible to determine the minimum expected-cost estimator that maps receptive field responses to the stimulus labels.Moreover, a close approximation to the corresponding expected estimation cost may be explicitly computed.Thus, AMA searches over the space of linear receptive fields to find the set that minimizes the expected estimation cost.For each condition, we learned the receptive fields with a training set consisting of 90% of the images.

28In our implementation of AMA, we used both the Kullback-Leibler divergence cost function (corresponding to the maximum a posteriori estimator) and the mean squared error cost function (corresponding to the posterior mean estimator) to evaluate the accuracy of the AMA estimates of LRF.Training with both cost functions yielded similar estimation performance; the results reported here are for when the Kullback-Leibler divergence cost function was used in training.We chose this cost function because the estimates it yields at the boundaries of the LRF range are less biased than those obtained with the mean squared error cost function.

29Details of how AMA learns receptive fields and how the receptive field responses are optimally decoded are provided in previously published work (Geisler et al., 2009;Burge & Jaini, 2017;Jaini & Burge, 2017).

Decoding optimal receptive fields

30Once the AMA receptive fields have been learned, a general decoder is needed that can be used with arbitrary test images.A general decoder is necessary because the decoder used to learn the receptive fields can be used only with the training set.Specifically, the decoder used to learn the receptive fields requires the response mean and response variance of each receptive field to every labelled stimulus in the training set (Geisler et al., 2009;Burge & Jaini, 2017).To proceed, first we use the AMA receptive fields and the training dataset to find the distributions of the receptive field responses conditional on the target object LRFs.Then, we model these conditional response distributions with multivariate Gaussians.To estimate the LRF of the target object in a test image, we use Bayes' rule together with the Gaussian conditional distributions and a uniform prior to obtain the posterior distribution over LRF values, given the receptive field responses.The optimal estimate is the LRF value that minimizes the expected value of the cost function, where the expectation is taken over the posterior.For the results we report, we again used the Kullback-Leibler divergence cost function.

31The Gaussian approximations for the posterior were estimated using the same training set that was used to learn the receptive fields.Estimation performance was evaluated on a test set consisting of the 10% of images in the dataset that were not in the training set.For our primary results, estimation was based on six receptive fields.The AMA analysis package is available at: https://github.com/BrainardLab/LuminanceConstancyAmaAnalysis.

Baseline methods

32To provide baselines for evaluation of the estimation method described above, we used linear regression.First, we solved for the weights on the average L, M, and S cone excitations corresponding to the target object that best predicted the target LRF values.We took the average cone responses from a 3 3 3 pixel region at the center of the target object.This baseline method disregards information carried by the image regions corresponding to the background objects.We also performed regression on the contrast normalized version of the cone excitation images.This second baseline method indirectly incorporates information carried in the image regions corresponding to the background objects, through their effect on the contrast normalized responses at the center of the target object.We also evaluated the performance of a naive model that uses the mean LRF value in the training set as the estimate, irrespective of the image data; that is, the naive model always estimated the LRF to be equal to 0.4.

Quantifying estimation performance

33We quantified the performance of AMA and the baseline methods at estimating LRF with relative root mean squared error (relative RMSE).Relative RMSE is the square root of the mean of the squared difference between the estimated and true LRF divided by the true LRF.The mean is taken over all stimuli in the test set.

Condition 1

34In Condition 1, only the LRF and the relative reflectance spectrum of the target object vary across scenes.We used accuracy maximization analysis (AMA) to learn a set of linear receptive fields that are optimal for estimating target LRF from the cone excitations in this condition.Decoding performance is shown in Figure 10a.Figure 10a also shows the performance of the baseline linear regression method.Both methods are trained on 90% of the images in the dataset and tested on the remaining 10%.The LRF estimates obtained for both methods are essentially perfect.

35Figure 10b shows the responses of the first two AMA receptive fields to all the image patches in the training set.Each individual point represents the receptive field responses to an individual image patch and is color coded by target object LRF.The responses segregate according to the target LRF, which supports the high level of estimation performance shown in Figure 10a.Note that even the responses of the first receptive field separate well (vertical lines would accurately distinguish the LRFs), so that one receptive field is sufficient for accurately performing the task.

36Figure 10c shows the first three AMA receptive fields.Each receptive field performs a weighted sum of the L, M, and S cone excitations.The L and M cone excitations at the target object location receive large weights.The L and M cone excitations at the background object locations and the S cone excitations at all locations receive small weights and are thus largely ignored.For this condition, the background regions provide very little task-relevant information.In addition, luminance is primarily determined by L and M cones, so the S cones should make little direct contribution.The first three receptive fields are similar to each other, reflecting the fact that here the main benefit of multiple receptive fields is to reduce the impact of noise on estimation performance.

37The results in Figure 10 were obtained for one particular draw from our statistical model of illumination.We verified that performance remained excellent for other draws.

Condition 2

38Condition 2 includes variation in the spectral power distribution of the light sources, in addition to the variation present in Condition 1.This illumination variation makes the task more difficult because it causes variation in the cone excitations that is not due to target object LRF.We learned AMA receptive fields on the cone excitations to the images in this new condition, and again evaluated decoding performance (Figure 11a, b).Performance is poor.Indeed, the estimates deviate considerably from the true LRF, as seen by the fact that the mean estimate (red line) does not lie on the positive diagonal and by the fact that there is large estimation variability for each value of the true LRF.For this case, linear regression also does poorly.Indeed, the linear regression estimates are essentially the same as would be obtained by simply guessing the mean LRF of the training set (0.4).

39Recall that there are two qualitatively distinct factors contributing to the variation in illumination spectra: changes in overall intensity, and changes in the relative spectral power distribution.To separate the effect of these two factors, we trained and evaluated AMA on the contrast normalized cone excitations.By contrast normalizing the cone excitations, the contribution of overall intensity is essentially removed.Figure 11c, d shows that performance improves greatly with contrast normalization.Estimates obtained from the AMA receptive field responses are essentially perfect.Estimates obtained from linear regression are substantially improved.This observation is consistent with previous results on computational color constancy that show that contrast-based representations are effective for supporting color constancy when only illumination spectra vary (e.g., Land, 1986).However, contrastbased representations are less effective at supporting constancy when the spectra of background objects in the scene vary (e.g., Brainard & Wandell, 1986).

Condition 3

40Condition 3 introduces variation in the reflectance spectra of the background objects, in addition to the sources of variation in Conditions 1 and 2. This condition models the sources of real-world spectral variation that are most relevant for the computational problem of luminance constancy.We again trained and evaluated AMA for labeled image patches, using the contrast normalized cone excitations.The LRF esti-mates obtained via AMA are more variable and less accurate than for the previous conditions (Figure 12a).Nevertheless, the estimates provide useful information about the target the estimates track the true LRF on average, as seen by the fact that the mean estimate (red line) lies along the positive diagonal.The increased estimation variability is indicated by the increased width of the shaded red region, relative to its width for the results of Condition 1 and 2. Performance of the baseline linear regression method (also evaluated using contrast normalized cone excitations) is worse than that of the AMA-based estimates.

41Figure 12b shows the responses of the first two AMA receptive fields to the training stimuli.Although the responses vary systematically with target object LRF, there is considerable overlap in the receptive field responses for stimuli having different LRF values.This overlap is due to the combined effect of the variation in the illumination and background surface spectra.Recall, however, that the performance shown in Figure 12a is based on six rather than two receptive fields; there is likely to be less overlap in the full sixdimensional response space.That is, inclusion of more receptive fields will in general reduce the ambiguity that is seen when we visualize the responses of just the first two receptive fields.This effect is shown in the right panel of Figure 13.That figure also illustrates the effect of training set size on estimation performance.

42Figure 12c shows the first three receptive fields (RFs) learned for Condition 3. The first two are similar to the receptive fields for Condition 1, in that the L and M cone excitations receive large weights, while the S cone excitations are less heavily weighted.In contrast to the Condition 1 receptive fields, there is also systematic For Condition 2, the response corresponding to individual image patches at each LRF level separates much better when the input is the contrast normalized cone excitations than when the input is the raw cone excitations.

43contribution of cone excitations from background object locations, with both positive and negative contributions from background objects.The specific geometry of the receptive fields, however, should not be taken to be a strict prediction for receptive fields in the human visual system, as the particular receptive field geometry arises partly as a consequence of the fixed scene geometry used in the training set.Indeed, aspects of spatial structure of the training images can be seen in the receptive fields.Also, the third receptive field for Condition 3 places weight on the S cone excitations.Although S cone signals do not contribute directly to luminance, S cone responses are correlated with L and M cone responses to natural spectra (Burton & Moorhead, 1987;Benson, Manning, & Brainard, 2014).

44Information from the S cones can therefore contribute usefully to performance in the task.Finally, we note that there is some run-to-run variation in the structure of the optimal receptive fields that depends on the random initialization of the numerical search used in our implementation of AMA.(The cost landscape is not convex so local minima are possible.)However, such run-to-run receptive field variation leads only to very small changes in estimation error (see error bars in Figure 13).Furthermore, even if the order varies somewhat, the same set of receptive fields tends to be learned.

45Our rendering software allows us to compare the effect of background surface reflectances on target object LRF with and without simulation of secondary reflections of light from one object onto another.These secondary reflections were included in the dataset from which we report our primary results.When we turn off this feature of the rendering, we find (data not shown) that LRF estimation performance is essentially unchanged.Estimates with and without secondary reflections are very similar.This result suggests that the primary source of the estimation error in Condition 3 is caused by direct effects of image-to-image variation in the reflectance of the background objects on the AMA responses.

Discussion Summary

46In this paper, we studied luminance constancy using naturalistic images.We used a software pipeline, which was developed for this work, to render datasets of multispectral images from scene descriptions.Because we rendered the images, we could label each image in the dataset by the luminous reflectance factor (LRF) of the target object.We used the labeled datasets to learn estimators for the target object LRF.Across scenes, we varied the LRF of the target object, the relative reflectance spectrum of the target object, the spectral power distributions of the light sources, and the reflectance spectra of the background objects in the scene.These spectral variations were based on statistical models of natural surface reflectance spectra and natural illumination spectra.We studied how the performance of the learned estimators changed with systematic manipulation of the spectral variation in the datasets.

47Figure 14 summarizes our main findings, by showing the overall relative root mean squared estimation error (relative RMSE) for each condition.In Condition 1, where only the relative reflectance spectrum of the target object varies, luminance constancy is an easy computational problem, and performance is essentially perfect for both the baseline linear regression and AMA methods.In Condition 2, where the spectral power distribution of the illumination also varies, the problem of luminance constancy is more difficult.Indeed, neither of our methods perform well when they operate directly on the cone excitations.Performance with both methods improves greatly when the cone excitations are contrast normalized.Indeed, AMA performance for Condition 2 is essentially perfect, as it is in Condition 1. Linear regression does less well, in part because it only has access to cone excitations at image locations corresponding to the target object.Condition 2, however, does not include scene-to-scene variation in the background surface reflectances, as occurs in natural viewing.The results for Condition 3 show performance when we add such variation.Performance here represents the overall level of luminance constancy that our methods achieve for the most realistic condition that we tested.In this case, AMA-based estimates of target object LRF are, on average, within 13% (relative RMSE) of the true value.Introducing variation in the surface reflectance spectra of the background objects makes the luminance constancy problem substantially more difficult.Variation in the reflectance spectra of the background objects surfaces reduces how reliably light reflected from those objects can be used as a cue to estimate the spectral power distribution of the illuminant.

Images of virtual versus real scenes

48As noted in the introduction, supervised learning requires large labeled datasets.Labeled datasets of natural images have been useful for developing normative models of the estimation of defocus blur, binocular disparity, retinal image motion, and 3D surface orientation (Burge & Geisler, 2011, 2012, 2014, 2015;Burge, Fowlkes, & Banks, 2010;Girshick, Landy, & Simoncelli, 2011;Sebastian, Burge, & Geisler, 2015;Burge, McCann, & Geisler, 2016;Goncalves & Welchman, 2017;Kim & Burge, 2018).

49Large datasets of natural or posed scenes with ground truth information about illuminant and object surface reflectance are difficult to obtain, as independent measurement of illuminant and surface properties at each image location is painstaking.That noted, there are databases for evaluation of color constancy algorithms that provide information about illumination and/or surface reflectance (e.g., Barnard, Martin, Funt, & Coath, 2002;Ciurea & Funt, 2003;Cheng, Prasad, & Figure 14.Summary of luminance constancy performance: Relative RMSE estimation error for each method and condition.The dotted line represents the relative RMSE for a naive method that estimates the LRF of each image as the mean LRF over the images in the set (LRF ¼ 0.4).Brown, 2014;Nascimento et al., 2016; see http:// colorconstancy.com).Often the illumination is estimated through placement of a reflectance standard at a few image locations to allow estimation of the illumination impinging at those locations.These illumination estimates are then interpolated/extrapolated across the image.However, the quality of this approximation cannot typically be evaluated.

50Here we used labeled images rendered from descriptions of virtual scenes.A similar approach has been used previously to study the perception of lightness and specularity (Toscani, Valsecchi, & Gegenfurtner, 2013;Wiebel, Toscani, & Gegenfurtner, 2015;Toscani, Valsecchi, & Gegenfurtner, 2017).Our work adds to this approach by introducing color variation.There are many advantages to using rendered images (Butler, Wulff, Stanley, & Black, 2012).One advantage is that they allow us to work with large number of labeled images where object reflectance is precisely known at each pixel.A second advantage is that we can control the variation in distinct scene factors that might affect the difficulty of the estimation problem.This flexibility allows the impact of scene factors to be studied individually or in combination.Here, we exploited this flexibility to quantify how variation in the relative reflectance spectrum of the target object, the spectrum of the illumination, and the reflectance spectrum of the background objects limit LRF estimation.We also exploited our use of rendered images to explore how the presence or absence of secondary reflections from background objects affected estimation of target object LRF.This type of question cannot be addressed using real images.The basic approach we use here can be extended to include parametric control over the amount of variation of different factors.For example, we could systematically vary the variances of the distribution over the weights that control the relative spectrum of the illumination.

51There are also disadvantages associated with using rendered images.Virtual rendered scenes are not guaranteed to capture all of the task relevant variation that occurs in real scenes.Even casual inspection of our images reveals that they are rendered, and not real.However, computer graphics is getting better and we expect that the gap between virtual and natural image databases will steadily close.Indeed, carefully constructed graphics images are now quite difficult to differentiate from real images.

52To increase the representativeness of our rendered images, we used datasets of natural surface reflectance spectra and natural daylight illumination spectra.Although we believe these datasets provide reasonable approximations of the statistical variation in reflectance and illumination spectra, they can be extended and improved.For example, there are additional datasets of measured surface reflectances that could be incorpo-rated into future analyses.Some of these datasets focused on the reflectance of objects (e.g., fruit) that are thought to be important for the evolution of primate color vision (e.g., Sumner & Mollon, 2000;Regan et al., 2001;Barnard et al., 2002;Ennis, Schiller, Toscani, & Gegenfurtner, 2018).Another issue, not addressed by these datasets, is relative frequency of different surface reflectances in natural viewing.Attewell and Baddeley (2007) performed a systematic survey, and reported the distribution of an LRF-like quantity in natural scenes.Generalizing these measurements to better characterize the distribution of full reflectance functions remains an interesting goal.

Future directions

53In the work presented here, we studied computational luminance constancy in virtual scenes with naturalistic spectral variation in light sources and in surface reflectance functions, with only matte surfaces in the scenes.It is natural to start with spectral variation, because this variation is at the heart of what makes luminance constancy a rich computational problem.In natural scenes, however, there are other sources of variation that add additional richness.These include variation in non-spectral properties of lighting and objects in the scene.Examples include lighting geometry, object texture, object material (e.g., specularity), and object shape.The methods we developed here may be generalized to study the effects of variation in these factors.That is, one could incorporate these factors into the generation of the scenes and again learn estimators from the corresponding labeled images.A challenge for this approach will be to thoughtfully control the increase in problem complexity, both to keep compute time feasible and to ensure that it is possible to extract meaningful insight from the results.Extending the work to include variation of material may provide insights not only about luminance constancy but also for computations that relate to material perception (see Fleming, 2017).Extending the work to include variation in object shape and lighting geometry may clarify the role of object boundaries versus object interiors for providing information that supports perception of object color and lightness (see Land & McCann, 1971;Rudd, 2016).We also note that there is a literature on how increasing stimulus complexity along the various lines listed above affects human color and lightness perception (e.g., Beck, 1964;Yang & Maloney, 2001;Yang & Shevell, 2002;Boyaci, Maloney, & Hersh, 2003;Todd, Norman, & Mingolla, 2004;Snyder, Doerschner, & Maloney, 2005;Xiao & Brainard, 2008;Kingdom, 2011;Xiao, Hurst, Mac-Intyre, & Brainard, 2012;Anderson, 2017;Toscani et al., 2017), and the computational problem of color and lightness constancy (e.g., D 'Zmura & Lennie, 1986;Lee, 1986;Funt & Drew, 1988;Tominaga & Wandell, 1989;Barron & Malik, 2012;Barron, 2015;Finlayson, 2018).

54We studied the information available for LRF estimation using a 18 3 18 image patch.As noted above, this choice of size was motivated in part to use a spatial scale roughly commensurate with the scale of information integration in early visual cortex.Our general methods could be extended to study larger regions, and doing so would quantify the value of spatially remote information for luminance constancy.

55Luminance constancy is a special case of the more general problem of color constancy.The approach we developed here could also be generalized to the estimation of additional surface reflectance descriptors, such as object hue or chroma.A further advance would be to develop methods for learning receptive fields that are optimal for multivariate estimation problems.With such methods one could directly estimate threedimensional color descriptors.

Linking to human performance

56An important motivation for studying the computational problem of luminance constancy is to gain insight about human vision.The approach we developed can be used to make predictions of how humans would perform in a psychophysical task that probes the visual representation of object LRF.For example, one could study discrimination thresholds for target LRF using the stimuli that were generated with the methods used here.More specifically, we could ask how LRF discrimination thresholds are impacted by spectral variation in the illuminant, the background objects, and in the target object itself.Comparing human thresholds with the precision of AMA-based estimates would then allow inferences about how well human observers make use of the information available in the images for performing LRF discrimination.We think experiments and analyses along these lines represent an important future direction.

57Keywords: color constancy, luminance constancy, supervised learning Footnotes 1 In the literature, the term lightness constancy is generally used to denote color constancy for the special case when stimuli are restricted to be achromatic.This condition does not apply to our work-we consider full spectral variation in the stimuli.We chose the term luminance constancy to denote the generalization from achromatic stimuli.At the same time we acknowledge that we are not studying the full problem of color constancy.Rather, we are studying the estimation of a luminance-based summary of surface spectral reflectance.

582 LRF is related to albedo, but the concept of albedo does not incorporate the human luminosity function.The terminology surrounding LRF and the related concept light reflectance value (LRV) varies somewhat in the literature.Here we follow the definition of LRF given by the American Society for Testing and Materials (2017).

Figure 1 .

59Figure 1.Color and luminance constancy: (a)The light reflected from an object to the eye depends both on the surface reflectance of the object and on the scene illumination.The reflected light also depends on geometric factors, such as the object's shape, pose, and position.The human visual system accounts for variations in reflected light due to object-extrinsic factors and produces a percept of object color that is relatively stable across such variations.(b) Images of a sphere under a fixed illuminant.Down each column, the sphere's luminous reflectance factor (LRF) varies, but its relative reflectance spectrum (i.e., its spectral shape) is held fixed.Across each row, the relative reflectance spectrum varies, but the LRF is held fixed.We cast the problem of computational luminance constancy to be that of estimating the LRF of a target object from the image, across variation in other scene factors.Specifically, we study variation in target object relative surface reflectance, variation in illumination spectrum, and variation in the surface reflectance of the other objects in the scene.

Figure 3 .

60Figure3.Library base scene with inserted objects.The rendering package can be used to insert objects into base scenes.Each image shows a different object inserted into the Library base scene.The rendering viewpoint was set so that the object was at the center of the images.The full rendered images have been cropped so that the inserted objects are easily visible.

Figure 4 .

61Figure 4. Scene transformations.The properties of a visual scene can be broadly classified into two groups: geometrical (a-b) and spectral (c-e).Our rendering package provides control over these properties as illustrated by the columns of the figure.(a) Variation in inserted object positions.(b) Variation in object size and pose.(c) Variation in the surface reflectance of the target object.(d) Variation in the spectral power distributions of the light sources.(e) Variation in surface reflectance of the background objects.All images in this figure are rendered with common scaling and tone mapping.

Figure 2 .

62Figure 2. Base scenes.Each image shows a rendering of one base scene without additional inserted objects.The reflectance spectra of the distinct surfaces and the spectral power distributions of the light sources in each scene have been assigned randomly from statistical models of naturally occurring spectra.The images have been scaled and tone mapped individually for illustrative purposes.

Figure 5 .

63Figure 5. Conditions 1-3: Illustrative images for the three types of spectral variations studied in this paper.(a) Condition 1: Variable target object relative reflectance spectrum, fixed light source spectra, fixed background object spectra (same as Figure 1b).(b) Condition 2: Variable target object relative reflectance spectrum, variable light source spectra, fixed background object spectra.(c) Condition 3: Variable target object relative reflectance spectrum, variable light source spectra, variable background object spectra.The spheres in each row of each panel have the same LRF, while the spheres in each column of each panel have the same relative surface reflectance spectrum.Across Panels a-c, spheres in corresponding locations have the same surface reflectance.In all three panels, the overall light source spectra scale factors (see Methods) were drawn from a uniform distribution on the range [0.5, 1.5].This is smaller than the variation we studied, but allows us to show the variation within the dynamic range available for display in publication.All images in this figure are rendered with common scaling and tone mapping.

Figure 6 .

64Figure 6.Statistical model of illumination spectra: (a) Normalized Granada dataset.Each spectrum is normalized by its mean power.(b) Sample spectra generated using the statistical model derived from normalized Granada dataset.(c) CIE xy chromaticities of the Granada dataset (black) and the samples shown in Panel b (red).(d) sRGB renditions of the samples shown in Panel b.

Figure 7 .

65Figure 7. Statistical model of surface reflectance: (a) Surface reflectance spectra from the Munsell and Vrhel datasets.(b) Sample spectra generated using the surface reflectance statistical model.(c) CIE xy chromaticity diagram of the Munsell and Vrhel reflectances (black) and the sample spectra shown in Panel b (red).(d) sRGB renditions of the samples shown in panel b, rendered under the CIE D65 daylight spectrum.

Figure 8 .

66Figure 8. Target object surface reflectance spectra: sRGB renditions of the target object surface reflectance rendered under CIE D65 daylight spectrum.The figure shows 10 random samples at 10 equally spaced LRF levels in the range [0.2, 0.6].Each row contains 10 random samples of reflectance spectra generated at the LRF shown on the left.

Figure 9 .

67Figure 9. Pipeline for generating labeled datasets: The labeled images used in this paper are generated as follows: (a) A 3D virtual scene, containing a target object is created.The rendering viewpoint is selected so that the target object is in the center of the image.Spectra are assigned to the target object, illuminants, and other objects in the scene using the statistical models described in the text.A multispectral image of the scene is then rendered.(b) The central portion of the rendered image is cropped around the target object.(c) The retinal image corresponding to the rendered image is computed, which is then used to compute the number of photopigment isomerizations in the cone photoreceptors.The figure shows a rendering of the retinal image after optical blurring, with the location and identity of the cones indicated by an overlay (L cones: red, M cones: green, S cones: blue).(d) The cone excitations are linearly interpolated to estimate the responses of all the three types of cone at each location (demosaicing).Finally, the demosaiced images are contrast normalized.

Figure 10 .

68Figure 10.Condition 1 results: (a) Mean estimated LRF 6 1 SD for images in the test set obtained using the AMA-based estimator and linear regression on the cone excitations.Solid lines show the mean estimate, the filled region in lighter color shows 61 SD.The diagonal identity line (dotted black) indicates veridical estimation.The filled regions representing standard deviations are too small to be visible.Relative RMSE (see Methods: Quantifying estimation performance) is 0.7% for linear regression and 1.1% for AMA-based estimation.(b) Training image cone excitations in Condition 1 projected onto the first two AMA receptive fields.Each cluster of responses represents the image patches associated with a particular LRF.The response clusters are approximated by a multivariate Gaussians whose means and covariances are represented by the ellipses shown in the figure.(c) The first three AMA receptive fields.These are specified over the same 18 3 18 patch as the stimuli.

Figure 11 .

69Figure 11.Condition 2 results: (a) Mean estimated LRF 6 1 SD for images in the test set obtained using the AMA-based estimator and linear regression from the cone excitations.The relative RMSE is high (41.4% for linear regression and 26.4% for AMA-based estimation).(b) Cone excitations projected onto AMA receptive fields.(c) Mean estimated LRF 6 1 SD for images in the test set obtained using the AMA-based estimator and linear regression from the contrast normalized cone excitations.The relative RMSE of estimation is 9.3% for linear regression and 1.2% for the AMA-based estimator.(d) The contrast normalized cone excitations projected along the first two AMA receptive fields.The receptive fields were learned using AMA and the contrast normalized cone excitations.For Condition 2, the response corresponding to individual image patches at each LRF level separates much better when the input is the contrast normalized cone excitations than when the input is the raw cone excitations.

Figure 12 .

70Figure 12.Condition 3 results: (a) Mean estimated LRF 6 1 SD for images in the test set obtained using the AMA-based estimator and linear regression from the contrast normalized cone excitations.The relative RMSE is 23.9% for linear regression and 12.6% for AMA.(b) Contrast normalized cone excitations for the training set projected onto the first two AMA receptive fields.(c) First three AMA receptive fields learned using the contrast normalized cone excitations.

Figure 13 .

71Figure 13.Change of relative RMSE with number of receptive fields (RFs) and size of training set: (a) Change of relative RMSE for Condition 3 with the size of training set.The relative RMSE converges around 2,000 images.To make this plot, the 300 image test set for Condition 3 was used in each case, while the training set size varied between 300 to 2,700 images.The number of receptive fields used was varied between 1 and 6.(b) Same data as in Panel a, but plotted as a function of number of receptive fields.Performance converges around three receptive fields (RFs).The error bars in each panel show 61 SEM, with the variation taken across multiple runs with different random initializations for the numerical search used in our implementation of AMA.

참고문헌 79건

  1. Color Constancy, Intrinsic Images, and Shape Estimation Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-33765-9_5
  2. A Naturalistic Open Source Movie for Optical Flow Evaluation Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-33783-3_44
  3. Measurement and Analysis of Object Reflectance Spectra Color Research & Application · Wiley · 1994 10.1111/j.1520-6378.1994.tb00053.x
  4. A Large Image Database for Color Constancy Research Color and Imaging Conference · 2003 10.2352/cic.2003.11.1.art00028
  5. ENERGY, QUANTA, AND VISION The Journal of General Physiology · Rockefeller University Press · 1942 10.1085/jgp.25.6.819
  6. Stereo disparity improves color constancy Vision Research · Elsevier BV · 2002 10.1016/s0042-6989(02)00098-6
  7. RenderToolbox3: MATLAB tools that facilitate physically based stimulus rendering for vision research Journal of Vision · Association for Research in Vision and Ophthalmology · 2014 10.1167/14.2.6
  8. Color and luminance information in natural scenes Journal of the Optical Society of America A · Optica Publishing Group · 1998 10.1364/josaa.15.000563
  9. Statistical correlates of perceived gloss in natural images Vision Research · Elsevier BV · 2015 10.1016/j.visres.2015.04.010
  10. Unsupervised Learning of Cone Spectral Classes from Natural Images PLoS Computational Biology · Public Library of Science · 2014 10.1371/journal.pcbi.1003652
  11. The color constancy of three-dimensional objects Journal of Vision · Association for Research in Vision and Ophthalmology · 2012 10.1167/12.4.6
  12. Lightness Constancy in the Presence of Specular Highlights Psychological Science · SAGE Publishing · 2004 10.1111/j.0963-7214.2004.01501006.x
  13. Normalization as a canonical neural computation Nature reviews. Neuroscience · Nature Portfolio · 2011 10.1038/nrn3136
  14. Optimal disparity estimation in natural stereo images Journal of Vision · Association for Research in Vision and Ophthalmology · 2014 10.1167/14.2.1
  15. Illumination estimation in three-dimensional scenes with and without specular cues Journal of Vision · Association for Research in Vision and Ophthalmology · 2005 10.1167/5.10.8
  16. A collection of hyperspectral images for imaging systems research Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2013 10.1117/12.2007097
  17. Optimal defocus estimates from individual images for autofocusing a digital camera Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2011 10.1117/12.912066
  18. Statistics of real-world hyperspectral images 2011 10.1109/cvpr.2011.5995660
  19. The effect of perceived surface orientation on perceived surface albedo in binocularly viewed scenes Journal of Vision · Association for Research in Vision and Ophthalmology · 2003 10.1167/3.8.2
  20. Color and spectral analysis of daylight in southern Europe Journal of the Optical Society of America A · Optica Publishing Group · 2001 10.1364/josaa.18.001325
  21. Motion selectivity and the contrast-response function of simple cells in the visual cortex Visual Neuroscience · Cambridge University Press · 1991 10.1017/s0952523800010336
  22. A spatial processor model for object colour perception Journal of the Franklin Institute · Elsevier BV · 1980 10.1016/0016-0032(80)90058-7
  23. A data set for color research Color Research & Application · Wiley · 2002 10.1002/col.10049
  24. An alternative technique for the computation of the designator in the retinex theory of color vision. Proceedings of the National Academy of Sciences · National Academy of Sciences · 1986 10.1073/pnas.83.10.3078
  25. Natural Images from the Birthplace of the Human Eye PLoS ONE · Public Library of Science · 2011 10.1371/journal.pone.0020409
  26. Color constancy III General linear recovery of spectral descriptions for lights and surfaces Journal of the Optical Society of America A · Optica Publishing Group · 1994 10.1364/josaa.11.002389
  27. The Retinex Theory of Color Vision Scientific American · Springer Nature · 1977 10.1038/scientificamerican1277-108
  28. Intrinsic images in the wild ACM Transactions on Graphics · Association for Computing Machinery · 2014 10.1145/2601097.2601206
  29. Tristimulus Specification of the Munsell Book of Color from Spectrophotometric Measurements* Journal of the Optical Society of America · Optica Publishing Group · 1943 10.1364/josa.33.000355
  30. Illuminant estimation for color constancy: why spatial-domain methods work and the role of the color distribution Journal of the Optical Society of America A · Optica Publishing Group · 2014 10.1364/josaa.31.001049
  31. Illuminant cues in surface color perception: tests of three candidate cues Vision Research · Elsevier BV · 2001 10.1016/s0042-6989(01)00143-2
  32. Natural-Scene Statistics Predict How the Figure–Ground Cue of Convexity Affects Human Depth Perception Journal of Neuroscience · Society for Neuroscience · 2010 10.1523/jneurosci.5551-09.2010
  33. Color and the Cone Mosaic Annual Review of Vision Science · Annual Reviews · 2015 10.1146/annurev-vision-082114-035341
  34. Color constancy computation in near-Mondrian scenes using a finite dimensional linear model 2003 10.1109/cvpr.1988.196288
  35. Color constancy: a method for recovering surface spectral reflectance Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.000029
  36. Method for computing the scene-illuminant chromaticity from specular highlights Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001694
  37. Optimal stimulus encoders for natural tasks Journal of Vision · Association for Research in Vision and Ophthalmology · 2009 10.1167/9.13.17
  38. Cardinal rules: visual orientation perception reflects knowledge of environmental statistics Nature Neuroscience · Nature Portfolio · 2011 10.1038/nn.2831
  39. Optimal sampling of visual information for lightness judgments Proceedings of the National Academy of Sciences · National Academy of Sciences · 2013 10.1073/pnas.1216954110
  40. “Tho’ she kneel’d in that place where they grew…” The uses and origins of primate colour vision Journal of Experimental Biology · The Company of Biologists · 1989 10.1242/jeb.146.1.21
  41. Standard surface-reflectance model and illuminant estimation Journal of the Optical Society of America A · Optica Publishing Group · 1989 10.1364/josaa.6.000576
  42. The distribution of reflectances within the visual environment Vision Research · Elsevier BV · 2007 10.1016/j.visres.2006.11.015
  43. Spatial distributions of local illumination color in natural scenes Vision Research · Elsevier BV · 2015 10.1016/j.visres.2015.07.005
  44. Defocus blur discrimination in natural images with natural optics Journal of Vision · Association for Research in Vision and Ophthalmology · 2015 10.1167/15.5.16
  45. Surface gloss and color perception of 3D objects Visual Neuroscience · Cambridge University Press · 2008 10.1017/s0952523808080267
  46. Optimal defocus estimation in individual natural images Proceedings of the National Academy of Sciences · National Academy of Sciences · 2011 10.1073/pnas.1108491108
  47. Fruits, foliage and the evolution of primate colour vision Philosophical Transactions of the Royal Society B Biological Sciences · Royal Society · 2001 10.1098/rstb.2000.0773
  48. Mechanisms of color constancy Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001662
  49. Analysis of the retinex theory of color vision Journal of the Optical Society of America A · Optica Publishing Group · 1986 10.1364/josaa.3.001651
  50. Color and spatial structure in natural scenes Applied Optics · Optica Publishing Group · 1987 10.1364/ao.26.000157
  51. Visual topography of V2 in the macaque The Journal of Comparative Neurology · Wiley · 1981 10.1002/cne.902010405
  52. Lightness, brightness and transparency: A quarter century of new ideas, captivating demonstrations and unrelenting controversy Vision Research · Elsevier BV · 2010 10.1016/j.visres.2010.09.012
  53. Matching color images: the effects of axial chromatic aberration Journal of the Optical Society of America A · Optica Publishing Group · 1994 10.1364/josaa.11.003113
  54. Visuotopic organization and extent of V3 and V4 of the macaque Journal of Neuroscience · Society for Neuroscience · 1988 10.1523/jneurosci.08-06-01831.1988
  55. Bayesian color constancy Journal of the Optical Society of America A · Optica Publishing Group · 1997 10.1364/josaa.14.001393
  56. Lightness and Retinex Theory Journal of the Optical Society of America · Optica Publishing Group · 1971 10.1364/josa.61.000001
  57. Catarrhine Photopigments are Optimized for Detecting Targets Against a Foliage Background Journal of Experimental Biology · The Company of Biologists · 2000 10.1242/jeb.203.13.1963
  58. A Biologically Inspired Algorithm for the Recovery of Shading and Reflectance Images Perception · SAGE Publishing · 2004 10.1068/p5321
  59. Normalization of cell responses in cat striate cortex Visual Neuroscience · Cambridge University Press · 1992 10.1017/s0952523800009640
  60. The perceptual representation of transparency, lightness, and gloss Oxford University Press eBooks · Oxford University Press · 2014 10.1093/oxfordhb/9780199686858.013.030
  61. Optimal speed estimation in natural image movies predicts human performance Nature Communications · Nature Portfolio · 2015 10.1038/ncomms8900
  62. The Effect of Gloss on Perceived Lightness The American Journal of Psychology · University of Illinois Press · 1964 10.2307/1419271
  63. Estimating 3D tilt from local image cues in natural scenes Journal of Vision · Association for Research in Vision and Ophthalmology · 2016 10.1167/16.13.2
  64. Retinex-like computations in human lightness perception and their possible realization in visual cortex Electronic Imaging · Society for Imaging Science & Technology · 2016 10.2352/issn.2470-1173.2016.6.retinex-021
  65. Lightness perception for matte and glossy complex shapes Vision Research · Elsevier BV · 2017 10.1016/j.visres.2016.12.004
  66. Accuracy Maximization Analysis for Sensory-Perceptual Tasks: Computational Improvements, Filter Robustness, and Coding Advantages for Scaled Additive Noise PLoS Computational Biology · Public Library of Science · 2017 10.1371/journal.pcbi.1005281
  67. “What Not” Detectors Help the Brain See in Depth Current Biology · Elsevier BV · 2017 10.1016/j.cub.2017.03.074
  68. Color constancy 2007
  69. The lawful imprecision of human surface tilt estimation in natural scenes bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2017 10.1101/180984
  70. Hyperspectral database of fruits and vegetables Journal of the Optical Society of America A · Optica Publishing Group · 2018 10.1364/josaa.35.00b256
  71. Colour and illumination in computer vision Interface Focus · Royal Society · 2018 10.1098/rsfs.2018.0008
  72. Linking normative models of natural tasks to descriptive models of neural response Journal of Vision · Association for Research in Vision and Ophthalmology · 2017 10.1167/17.12.16
  73. Convolutional Color Constancy arXiv (Cornell University) · Cornell University · 2015
  74. The lawful imprecision of human surface tilt estimation in natural scenes eLife · eLife Sciences Publications Ltd · 2018 10.7554/elife.31448
  75. Probabilistic Color Constancy Psychology Press eBooks · Psychology Press · 2013 10.4324/9780203773949-18
  76. Color constancy Vision Research · Elsevier BV · 2010 10.1016/j.visres.2010.09.006
  77. Seeing Black and White 2006 10.1093/acprof:oso/9780195187168.001.0001
  78. Material Perception Annual Review of Vision Science · Annual Reviews · 2017 10.1146/annurev-vision-102016-061429
  79. Convolutional Color Constancy 2015 10.1109/iccv.2015.51