from Color Management to Omnidirectional...

56
Efficient Regression for Computational Imaging: from Color Management to Omnidirectional Superresolution Maya R. Gupta Eric Garcia Raman Arora

Transcript of from Color Management to Omnidirectional...

Page 1: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Efficient Regression for Computational Imaging:

from Color Management to Omnidirectional Superresolution

Maya R. Gupta

Eric Garcia

Raman Arora

Page 2: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Regression

2

Page 3: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Regression

Page 4: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Regression

Page 5: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Linear Regression: fast, not good enough

Page 6: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Problem: Device Dependent Colors Depend on Device

Page 7: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color Management For each device, characterize the mapping between the native

color space and a device independent color space.

8/5/2009 7

CIELab (Lab)

ICC Profile

ICC Profile

ICC Profile

ICC Profile

Page 8: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color Management • For each device, characterize the mapping between the native

color space and a device independent color space.

8/5/2009 8

CIELab (Lab)

ICC Profile

ICC Profile

ICC Profile

ICC Profile

CIELab is a widely used device-independent color space that is

perceptually uniform (i.e. Euclidean distance approximates human

judgement of color dissimilarity)

Page 9: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color Management • For each device, characterize the mapping between the native

color space and a device independent color space.

8/5/2009 9

CIELab (Lab)

ICC Profile

ICC Profile

ICC Profile

ICC Profile

Mapping from RGB -> CIELab and CIELab -> CMYK can be highly

nonlinear

Page 10: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Gamut mapping: linear transforms not adequate

Skin

tones Skin

tones

Original gamut

Extended gamut

Original Gamut Linear regression Nonlinear regression

Page 11: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Creating Custom Color Enhancements

original transformed by artist to “sunset”

2 hrs. work in Photoshop

Ex: simulating illumination effects

Page 12: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Example Convert an image to how it would look in Cinecolor based on 16 sample color pairs

www.widescreenmuseum.org

Original cinecolor

Page 13: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

8/5/2009 13

Page 14: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

8/5/2009 14

Page 15: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

15

Page 16: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

Page 17: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

Page 18: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

Page 19: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color management: speed by LUT

Page 20: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Linear Interpolation is linear in the outputs

Page 21: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Linear Interpolation is linear in the outputs

Page 22: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Linear Interpolation is linear in the outputs

Page 23: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Lattice Regression Choose the lattice outputs to minimize the post-linear

interpolation empirical risk on the data:

8/5/2009 23

Page 24: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Lattice Regression Choose the lattice outputs to minimize the post-linear

interpolation empirical risk on the data:

8/5/2009 24

Page 25: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Lattice Regression Choose the lattice outputs to minimize the post-linear

interpolation empirical risk on the data:

Page 26: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Effect of Different Lattice Regression Regularizers

8/5/2009 26

Page 27: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Effect of Different Lattice Regression Regularizers

8/5/2009 27

Page 28: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Lattice Regression Closed Form Solution

9/15/2010 28

Sparse: No more than 7dm non-zero entries (of m2) with cubic interpolation.

Page 29: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Example Color Management Results

Page 30: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Example Color Management Results

Page 31: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

9/15/2010 31

Omnidirectional Super-resolution:

Page 32: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Omnidirectional Superres Related Work

State of the Art:

Arican and Frossard 2008-2009 (ICPR 2008 Best Paper Award)

• Interpolation with spherical harmonics

• Alignment with an iterative conjugate gradient approach.

Page 33: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Lattice Regression Approach Finding the correct registration of the low-resolution images is

challenging non-convex optimization problem.

Evaluate a candidate registration:

use lattice regression on image subset -> high-res spherical grid

sum interpolation error for all left-out low res image data

Page 34: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Lattice Regression Approach Finding the correct registration of the low-resolution images is

challenging non-convex optimization problem.

Evaluate a candidate registration:

use lattice regression on image subset -> high-res spherical grid

sum interpolation error for all left-out low res image data

Finding the optimal joint registration is a 3(N-1)-d opt. problem

We use FIPS to find the global optimum.

Page 35: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize
Page 36: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

9/15/2010 36

Page 37: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Visual Homing

START

.

. .

HOME

. .

.

.

Lattice Regression Better For Visual Homing

Page 38: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Some Conclusions

Page 39: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Some Conclusions

Page 40: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Some Conclusions

Page 41: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Some Conclusions

Page 42: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

For details, see: • “Optimized Regression for Efficient Function Evaluation,” Eric K. Garcia,

Raman Arora, and Maya R. Gupta, (in review – draft upon request).

• “Lattice Regression”, Eric K. Garcia, Maya R. Gupta, Neural Information Processing Systems (NIPS) 2009.

• “Building Accurate and Smooth ICC Profiles by Lattice Regression,” Eric K. Garcia, Maya R. Gupta, 17th IS&T Color Imaging Conference 2009.

• "Adaptive Local Linear Regression with Application to Printer Color Management," Maya R. Gupta, Eric K. Garcia, and Erika Chin, IEEE Trans. on Image Processing , vol. 17, no. 6, 936-945, 2008.

• "Learning Custom Color Transformations with Adaptive Neighborhoods," Maya R. Gupta, Eric K. Garcia, and Andrey Stroilov, Journal of Electronic Imaging, vol. 17, no. 3, 2008.

• "Gamut Expansion for Video and Image Sets," Hyrum Anderson, Eric K. Garcia, and Maya R. Gupta, Computational Color Imaging Workshop, 2007.

8/5/2009 42

Page 43: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color is an event

light source

human

cones respond:

human

perceives

color

L = long wave = red

M = medium wave = green

S = short wave = blue

reflection

Page 44: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

What does it mean to see black?

light source

human

cones respond

???

human

perceives

color

L = long wave = red

M = medium wave = green

S = short wave = blue

Page 45: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

What does it mean to see white?

light source

human

cones respond

???

human

perceives

color

L = long wave = red

M = medium wave = green

S = short wave = blue

Page 46: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

What does it mean to see white? images from: www.omatrix.com/uscolors.html

You can see “white” given

light made up of 2-spectra

Page 47: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color Science Crash Course

• What we see can be represented by three primaries.

8/5/2009 47

Stiles-Burch 10° color matching

functions averaged across 37

observers . Adapted from (Wyszecki

& Stiles, 1982) by handprint.com.

monochromatic

light at some

wavelength

match

mixture of three

primary colors

Page 48: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color Distances

• CIELab • Based on spectral

measurements of color, integrated over CMF envelopes.

• Euclidean distance between two colors approximates the perceptual difference noticed by a human observer.

• Distance metrics created to correct for perceptual non- uniformities in the space:

8/5/2009 48

image source: www.handprint.com

Page 49: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

2-D and 3-D Simulation

8/5/2009 49

d=2

d=3

Page 50: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Color printer

8 bit RGB color patch printed

color patch Human eye

Measure CIEL*a*b*

Color management for printers

Goal: Print a given CIEL*a*b* value. Problem: What RGB value to input?

Page 51: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Inverse Device Characterization

8/5/2009 51

CIELab

Step 1 Sample the device

Step 2 Build an inverse look-up-table

Regression

Look-up-table

Output Measure

Page 52: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

8/5/2009 52

Page 53: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Gaussian Process Regression • Models data as being drawn from a Gaussian Process

8/5/2009 53

(L large, σ2 small) (L small, σ2 small) (L large, σ2 large)

• A leading method in geostatistics (2-d regression) also known as Kriging.

• Generally considered a state-of-the-art method by machine learning folks

• Parameters: Covariance Function (length scale L), Noise Power σ2.

Page 54: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

Gaussian Process Regression • Models data as being drawn from a Gaussian Process

8/5/2009 54

(L large, σ2 small) (L small, σ2 small) (L large, σ2 large)

• A leading method in geostatistics (2-d regression) also known as Kriging.

• Generally considered a state-of-the-art method by machine learning folks

• Parameters: Covariance Function (length scale L), Noise Power σ2.

• Given Covariance form, parameters can be learned by maximizing marginal likelihood. (i.e. automatically from data).

Page 55: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

2-D Simulation

8/5/2009 55

Gaussian Process Regression (Direct) Gaussian Process Regression (to nodes of lattice) Lattice Regression (GPR bias) Lattice Regression (Bilinear bias)

50 Training Samples 1000 Training Samples

Page 56: from Color Management to Omnidirectional Superresolutionwebdav.is.mpg.de/pixel/workshops/mlmcp-nips2011/slides/... · 2012-01-13 · Color Management • For each device, characterize

3-D Simulation

8/5/2009 56

Gaussian Process Regression (Direct) Gaussian Process Regression (to nodes of lattice) Lattice Regression (GPR bias) Lattice Regression (Bilinear bias)

50 Training Samples 1000 Training Samples