Ondrej Drbohlav Czech Technical University in Prague -...

50
Texture Representations Texture Representations Ondrej Drbohlav Ondrej Drbohlav Czech Technical University in Czech Technical University in Prague Prague

Transcript of Ondrej Drbohlav Czech Technical University in Prague -...

Page 1: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Texture RepresentationsTexture Representations

Ondrej DrbohlavOndrej Drbohlav

Czech Technical University in Czech Technical University in PraguePrague

Page 2: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

TextureTexture

What is it?What is it? Definitions not sharpDefinitions not sharp Image of stationary statisticsImage of stationary statistics Pattern repeated in an image Pattern repeated in an image Whenever I see “too many” Whenever I see “too many”

Extreme variabilityExtreme variability People miss the means of describing themPeople miss the means of describing them

Page 3: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Human description & Human description & comparisoncomparison

Page 4: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Regular & homogeneous

TextureTexture

Page 5: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Stochastic

TextureTexture

Page 6: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Slightly non-regular/non-homogeneous

TextureTexture

Page 7: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Mild reflectance variations

TextureTexture

Page 8: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Strong reflectance variations & warping

TextureTexture

Page 9: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Stochastic scale variation

TextureTexture

Page 10: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Stochastic scale, shape, reflectance variation

TextureTexture

Page 11: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Texture and Structure: Texture and Structure: The matter of scaleThe matter of scale

Page 12: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

MotivationMotivation

assessment quality of …assessment quality of … … … foodfood … … materials (think of interior of materials (think of interior of

BMW)BMW) … “… “healthiness”healthiness” ......

Page 13: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

MotivationMotivation

Page 14: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

MotivationMotivation

atrophic thyroitidisatrophic thyroitidis diagnostics (heart, kidneys)diagnostics (heart, kidneys)

Page 15: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

DescriptionDescription

primitives (texels)primitives (texels) spatial structure → statistical spatial structure → statistical

propertiesproperties

Page 16: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

DescriptionDescription

primitives (texels)primitives (texels) spatial structurespatial structure → statistical → statistical

propertiesproperties

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

* * * * * * * *

a a a a a a a a a a a a a a a aa a a a a a a a a a a a a a a aa a a a a a a a a a a a a a a aa a a a a a a a

Page 17: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

What’s texture? Forward problemWhat’s texture? Forward problem

In Nature, often fairly simple mechanismsIn Nature, often fairly simple mechanisms Reaction-diffusion systemsReaction-diffusion systems BubblesBubbles Dead leavesDead leaves Space fillingSpace filling

(These subjects studied in the Computer Graphics (These subjects studied in the Computer Graphics community)community)

Page 18: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Reaction-DiffusionReaction-Diffusion Reaction Diffusion (Turing, 1952) The Reaction Diffusion (Turing, 1952) The

Chemical Chemical Basis of MorphogenesisBasis of Morphogenesis

Page 19: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Reaction-DiffusionReaction-Diffusion Reaction Diffusion (Turing, 1952) The Reaction Diffusion (Turing, 1952) The

Chemical Chemical Basis of MorphogenesisBasis of Morphogenesis

Page 20: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Reaction-DiffusionReaction-Diffusion Greg Turk (SIGGRAPH 91)Greg Turk (SIGGRAPH 91)

Page 21: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

BreaksBreaks

Page 22: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Dead leavesDead leaves

Occlusion Models for Natural Occlusion Models for Natural Images: A Statistical Study of a Images: A Statistical Study of a Scale-Invariant Dead Leaves Scale-Invariant Dead Leaves Model. Model. Lee, Mumford D., Huang J. Lee, Mumford D., Huang J. (IJCV 2001)(IJCV 2001)

Page 23: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Material formationMaterial formation

Brodatz, D100Brodatz, D100 Ising model Ising model

James Sethna: Statistical Mechanics: James Sethna: Statistical Mechanics: Entropy, Order parameters, and Complexity Entropy, Order parameters, and Complexity (book)(book)

Page 24: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Material formationMaterial formation

Marble (S. Lazebnik’s database) Johnson-Mehl Marble (S. Lazebnik’s database) Johnson-Mehl modelmodel

Capasso and Micheletti. Stochastic Geometry of Capasso and Micheletti. Stochastic Geometry of Spatially Structured Birth and Growth Processes.Spatially Structured Birth and Growth Processes.

Page 25: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Texture Representation Texture Representation in Computer Visionin Computer Vision

Usually depends in regards to the task Usually depends in regards to the task Recognition methods tend to use Recognition methods tend to use

simple and more robust features. Aim simple and more robust features. Aim at discriminability (Intra-class vs. Inter-at discriminability (Intra-class vs. Inter-class variability)class variability)

Synthesis methods sometimes sample Synthesis methods sometimes sample from the source image itself, thus from the source image itself, thus arguably overfittingarguably overfitting

Page 26: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

RecognitionRecognition

Marginal statistics of filter responses (Review: Marginal statistics of filter responses (Review: Randen & Hussoy, PAMI 1999)Randen & Hussoy, PAMI 1999)

Joint statistics of filter responses (Leung & Malik, Joint statistics of filter responses (Leung & Malik, ICCV’99)ICCV’99)

Filter, cluster, make histogram, compare using Filter, cluster, make histogram, compare using chi-sq (Leung & Malik, Varma & Zisserman, chi-sq (Leung & Malik, Varma & Zisserman, Forsyth 2004, ..)Forsyth 2004, ..)

Extract affine-covariant regions, SPIN/SIFT, Extract affine-covariant regions, SPIN/SIFT, cluster, compare using EMD (Lazebnik, Schmid, cluster, compare using EMD (Lazebnik, Schmid, Ponce)Ponce)

Page 27: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Simple exampleSimple example

Page 28: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

FilterFilter, cluster, histogram, chi-sq, cluster, histogram, chi-sq

Page 29: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Filter, Filter, clustercluster, histogram, chi-sq, histogram, chi-sq

Textons = cluster centers

Page 30: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

image

Filter, Filter, clustercluster, , histogramhistogram, chi-sq, chi-sq

Texton histogram

Page 31: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Filter, Filter, clustercluster, , histogramhistogram, , chi-sqchi-sq

Page 32: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

SynthesisSynthesis

Methods which sample from the image Methods which sample from the image (DeBonet & Viola 1998, Efros and Leung (DeBonet & Viola 1998, Efros and Leung 1999)1999)

Methods which measure relatively simple Methods which measure relatively simple statistics, then start from random noise statistics, then start from random noise and iteratively enforce the statistics to see and iteratively enforce the statistics to see fit (Heeger & Bergen 1995, Portilla & fit (Heeger & Bergen 1995, Portilla & Simoncelli, IJCV2000)Simoncelli, IJCV2000)

MRF modelling (Cross & Jain 1983, Zalesny MRF modelling (Cross & Jain 1983, Zalesny et al 2005, …)et al 2005, …)

Page 33: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

What’s the starting point?What’s the starting point?

Ideally, a representation which enables both Ideally, a representation which enables both synthesis and recognitionsynthesis and recognition

We’d like to have a texture synthesis and We’d like to have a texture synthesis and analysis system, modular and general analysis system, modular and general enough to enable continuous addition of new enough to enable continuous addition of new models/constraintsmodels/constraints

Example: Portilla & Simoncelli’s algorithm Example: Portilla & Simoncelli’s algorithm (IJCV 2000)(IJCV 2000)

Using simple statisticsUsing simple statistics

Page 34: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Portilla and Simoncelli (P&S)Portilla and Simoncelli (P&S)

Analysis: Measure a set of statistics on an imageAnalysis: Measure a set of statistics on an image Synthesis: Start from random noise and iteratively Synthesis: Start from random noise and iteratively

change it to enforce the statistics change it to enforce the statistics Iteration: Iteration:

such that

Page 35: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: constraint enforcementP&S: constraint enforcement

Example: Example: image varianceimage variance

Adjusting variance: scaling the image Adjusting variance: scaling the image leads to eq. in lambdaleads to eq. in lambda

Page 36: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: exampleP&S: example

Brodatz, D1

Page 37: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: pyramid decompositionP&S: pyramid decomposition

Brodatz, D1

Oriented subbands

Page 38: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: “complex cells”P&S: “complex cells”

Magnitude of quadrature filters output (=complex cells reponse)

Oriented subbands

Page 39: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: statistics usedP&S: statistics used

Correlation of subbands at the same scale

Page 40: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: statistics usedP&S: statistics used

Correlation of subbands across scales

Page 41: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: statistics usedP&S: statistics used

Center samples of autocorrelation

Page 42: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

P&S: statistics usedP&S: statistics used

Other constraints: Other constraints: Cross-scale phase statistics Cross-scale phase statistics Autocorrelation of partially Autocorrelation of partially

reconstructed imagesreconstructed images Marginal statistics of partially Marginal statistics of partially

reconstructed imagesreconstructed images

Page 43: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Our synthesis system - proposalOur synthesis system - proposal

The statistics used in Portilla and Simoncelli The statistics used in Portilla and Simoncelli are of the type:are of the type:

These are actually low-order moments of the These are actually low-order moments of the joint probability of filter responsesjoint probability of filter responses

Have a general texture synthesis system which Have a general texture synthesis system which is able to enforce constraints of this typeis able to enforce constraints of this type

Page 44: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Our synthesis “language”Our synthesis “language”

gl.c.particgl.c.partic = [ORI];= [ORI];

gl.c.conjpairgl.c.conjpair = [YES];= [YES];

gl.c.corrgl.c.corr = [SAMESCALES];= [SAMESCALES];

gl.c.scalegl.c.scale = [sc];= [sc];

Page 45: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Our synthesis “language”Our synthesis “language”

Problem: actual statistics example (cross-scale phase Problem: actual statistics example (cross-scale phase statistics)statistics)

Enforcing leads to inferior resultsEnforcing leads to inferior results

Page 46: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

ResultsResults

Portilla & Simoncelli’s algorithm is Portilla & Simoncelli’s algorithm is very skilfully optimized for success – very skilfully optimized for success – in every aspectin every aspect

Example: “convergence accelerator”Example: “convergence accelerator”

At the end of each iteration, At the end of each iteration, exaggerate the change achieved at exaggerate the change achieved at that iteration in order to reach faster that iteration in order to reach faster performance performance

Page 47: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

1 5 15 50

With accelleration

1 5 15 50

Without acceleration

Page 48: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Brodatz, D74

P&S

Synthesis exampleSynthesis example

Page 49: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

Brodatz, D106

P&S

Synthesis exampleSynthesis example

Page 50: Ondrej Drbohlav Czech Technical University in Prague - CMPcmp.felk.cvut.cz/~drbohlav/TeachPres/Texture.pdf · Reaction-diffusion systems ... Chemical Basis of Morphogenesis. Reaction-Diffusion

ConclusionConclusion

These statistics are computed globallyThese statistics are computed globally Problem when texture is not homogeneousProblem when texture is not homogeneous Would be better to represent the joint filter responses Would be better to represent the joint filter responses

distribution by e.g. mixture models, as opposed to distribution by e.g. mixture models, as opposed to momentsmoments