Top Banner
A Standardized A Standardized Workflow for Workflow for Illumination- Illumination- Invariant Image Invariant Image Extraction Extraction Mark S. Drew Mark S. Drew Muntaseer Salahuddin Muntaseer Salahuddin Alireza Fathi Alireza Fathi Simon Fraser University, Simon Fraser University, Vancouver, Canada Vancouver, Canada {mark,msalahud,alirezaf}@cs.sfu.ca {mark,msalahud,alirezaf}@cs.sfu.ca www.cs.sfu.ca/~mark www.cs.sfu.ca/~mark
24

A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

Dec 14, 2015

Download

Documents

Elisha Pernell
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

A Standardized Workflow A Standardized Workflow for Illumination-Invariant for Illumination-Invariant

Image ExtractionImage Extraction

Mark S. DrewMark S. Drew

Muntaseer SalahuddinMuntaseer Salahuddin

Alireza FathiAlireza Fathi

Simon Fraser University, Vancouver, CanadaSimon Fraser University, Vancouver, Canada{mark,msalahud,alirezaf}@cs.sfu.ca{mark,msalahud,alirezaf}@cs.sfu.ca

www.cs.sfu.ca/~markwww.cs.sfu.ca/~mark

Page 2: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

22

IntroductionIntroduction

Illumination-invariant image extraction is Illumination-invariant image extraction is an interesting and open problem in vision.an interesting and open problem in vision.

illustration shows the objective:illustration shows the objective:

(the “intrinsic image”)

Page 3: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

33

Introduction (cont.)Introduction (cont.)

To obtain (b) from (a), we take the To obtain (b) from (a), we take the logarithm of band-ratio chromaticity colour logarithm of band-ratio chromaticity colour coordinates, and then project in a coordinates, and then project in a special special directiondirection [Finlayson and Hordley, 2001].[Finlayson and Hordley, 2001].

The resultant grey-scale image is The resultant grey-scale image is illumination invariant.illumination invariant.

Page 4: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

44

Introduction (cont.)Introduction (cont.)

Objective: we argue that Objective: we argue that sharpening sRGBsharpening sRGB allows us to allows us to findfind the invariant image as a generic the invariant image as a generic workflow for images, from workflow for images, from unknown camerasunknown cameras unknown actual special directionunknown actual special direction no complex algorithm using evidence in each imageno complex algorithm using evidence in each image

Works well (but not as well as knowing the Works well (but not as well as knowing the camera or using internal evidence in image!)camera or using internal evidence in image!)

Page 5: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

55

Illumination invariant is crucial step!Illumination invariant is crucial step!

Shadow RemovalShadow Removal

Page 6: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

66

Finding directionFinding direction

The direction of projection is crucial.The direction of projection is crucial.

Page 7: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

77

Finding direction…Finding direction… Could calibrate the camera to find the Could calibrate the camera to find the

invariant directioninvariant direction [Finlayson et al. (2002)]:[Finlayson et al. (2002)]:

HP912 Digital Still Camera: Log-chromaticities of 24 patches;6 patches, imaged under 9 illuminants.

Page 8: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

88

Finding direction…Finding direction… Without calibrating the camera, can use entropy of Without calibrating the camera, can use entropy of

projection to find the invariant direction projection to find the invariant direction [Finlayson et al. (2004)][Finlayson et al. (2004)]::

Cor

rect

dire

ctio

n –

smal

ler e

ntro

py

Wro

ng d

irect

ion

– hi

gher

ent

ropy

Uses internal evidence in image.

Page 9: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

99

This paper: This paper: Sharpening HelpsSharpening Helps

Argument at AIC05 Argument at AIC05 [Finlayson et al. 2005] [Finlayson et al. 2005] : : recommended that if we recommended that if we sharpen the sharpen the values in XYZ spacevalues in XYZ space, get better invariant., get better invariant.

HOWEVER…HOWEVER…

Page 10: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1010

Proposed Approach: Proposed Approach: Sharpen Sharpen sRGBsRGB

However, going from sRGB to XYZ is However, going from sRGB to XYZ is a broadening transform: a counter-a broadening transform: a counter-intuitive approach.intuitive approach.

Therefore we propose to sharpen the Therefore we propose to sharpen the sRGB space itself.sRGB space itself.

Works better!Works better!

Page 11: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1111

Old: Sharpen XYZ;Old: Sharpen XYZ;new: new: Sharpen sRGBSharpen sRGB

Old: Assume input is in nonlinear sRGB Old: Assume input is in nonlinear sRGB space; linearize; transform to XYZ; space; linearize; transform to XYZ; sharpen XYZ; chromaticity; project sharpen XYZ; chromaticity; project lighting-change direction.lighting-change direction.

NewNew: : Assume input is in nonlinear sRGB space; linearize; Assume input is in nonlinear sRGB space; linearize;

sharpen sRGBsharpen sRGBlinear linear using synthetic data, using synthetic data,

producing standardized transform for all imagesproducing standardized transform for all images ; ; chromaticity; project chromaticity; project lighting-change direction. lighting-change direction.

Page 12: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1212

sRGB to XYZ is a Broadening sRGB to XYZ is a Broadening TransformTransform

350 400 450 500 550 600 650 700 750 800 850-0.5

0

0.5

1

1.5

2

2.5

XYZ

RGB

350 400 450 500 550 600 650 700 750 800 850-0.5

0

0.5

1

1.5

2

2.5

3

3.5

XYZ

RGB

350 400 450 500 550 600 650 700 750 800 850-0.2

0

0.2

0.4

0.6

0.8

1

1.2

XYZ

RGB

Page 13: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1313

Comparing XYZ to sRGB: Comparing XYZ to sRGB: no sharpeningno sharpening

Log-chromaticity coordinates for Macbeth patches, as light changes.

XYZ sRGB

Page 14: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1414

Comparing Comparing sharpeningsharpening XYZ to XYZ to sharpeningsharpening RGB RGB

After Sharpening

XYZR = 0.764 (with Mean Subtraction)

sRGBR = 0.920 √

Synthetic: Macbeth + Planckians

Page 15: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1515

Standard colour transformStandard colour transform

Colour transform is “data-based” Colour transform is “data-based” sharpening, optimizing lighting-invariance sharpening, optimizing lighting-invariance of output (with positivity enforced) of output (with positivity enforced) [Drew et al. [Drew et al. 2002]2002]

The transformation matrix The transformation matrix TT that does so that does so is the following,is the following,

Page 16: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1616

Standard colour transform…Standard colour transform…

Sharpen, form chromaticities, then project Sharpen, form chromaticities, then project in in standard directionstandard direction

Page 17: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

1717

The Standardized WorkflowThe Standardized Workflow

Page 18: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

Apply Standardized method to Apply Standardized method to measured chart datameasured chart data

best fit - - - -

standardized sRGB sharpening ───

105 illuminants, Nikon D70

Page 19: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

Macbeth chart, under 14 different daylights. HP912 camera.

Apply Standardized method: invariantApply Standardized method: invariant

Page 20: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

Invariant image, formed by calibrating camera.

Av. of Std. Dev. across illuminants= 4.42%

Best possible:Best possible:

Page 21: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

Invariant image, formed by sharpening sRGB.

Av. of Std. Dev. across illuminants= 6.11% not as good as calibrated version, of course! but usable.

Standardized method:Standardized method:

Page 22: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

Standardized method:Standardized method:input chromaticity, segmented for display

output, segmented

shadow gone√

Page 23: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

2323

ConclusionConclusion

The sharpening transform does a good The sharpening transform does a good enough job finding an invariant, given that enough job finding an invariant, given that it does not depend on any information it does not depend on any information specific to the camera or even the image.specific to the camera or even the image.

It can serve as a preprocessing step to It can serve as a preprocessing step to many different vision problems.many different vision problems.

Page 24: A Standardized Workflow for Illumination-Invariant Image Extraction Mark S. Drew Muntaseer Salahuddin Alireza Fathi Simon Fraser University, Vancouver,

2424

Thanks!To Natural Sciences and

Engineering Research Council of Canada