9/15/2009 1
Texture
Tuesday, Sept 15 Kristen Grauman UT-Austin
Announcements
- Write your CS login ID on the pset
hardcopy
Review: last time
- Edge detection:
– Filter for gradient – Threshold gradient magnitude, thin Bi i l i
- Binary image analysis
Announcements Write your CS login ID on the pset hardcopy Texture - - PDF document
9/15/2009 Announcements Write your CS login ID on the pset hardcopy Texture Tuesday, Sept 15 Kristen Grauman UT-Austin Review: last time Texture Edge detection: Filter for gradient Threshold gradient magnitude, thin
Pics from A. Loh: http://www.csse.uwa.edu.au/~angie/phdpics1.html
Images:Bill Freeman, A. Efros
http://animals.nationalgeographic.com/
Images from Malik and Perona, 1990
Image credit: D. Forsyth
mean d/dx value mean d/dy value
4 10
derivative filter responses, squared statistics to summarize patterns in small windows
mean d/dx value mean d/dy value
4 10
derivative filter responses, squared statistics to summarize patterns in small windows Win.#2 18 7
mean d/dx value mean d/dy value
4 10
derivative filter responses, squared statistics to summarize patterns in small windows Win.#2 18 7
mean d/dx value mean d/dy value
4 10
derivative filter responses, squared statistics to summarize patterns in small windows Win.#2 18 7 Win.#9 20 20
…
mean d/dx value mean d/dy value
4 10 mean d/dy value) statistics to summarize patterns in small windows Win.#2 18 7 Win.#9 20 20
…
Dimension 1 (mean d/dx value) Dimension 2 (m
mean d/dx value mean d/dy value
4 10 mean d/dy value) Windows with primarily horizontal edges Both statistics to summarize patterns in small windows Win.#2 18 7 Win.#9 20 20
…
Dimension 1 (mean d/dx value) Dimension 2 (m Windows with small gradient in both directions Windows with primarily vertical edges
derivative filter responses, squared visualization of the assignment to texture “types”
mean d/dx value mean d/dy value
4 10 mean d/dy value) Far: dissimilar textures statistics to summarize patterns in small windows Win.#2 18 7 Win.#9 20 20
…
Dimension 1 (mean d/dx value) Dimension 2 (m Close: similar textures
nsion 2
=
2 1 2 2 2 2 2 1 1
i i i
Dimension 1 Dime
1 i
nsion 2
Dimension 1 Dime
scales
Matlab code available for these examples: http://www.robots.ox.ac.uk/~vgg/research/texclass/filters.html
tincap2.jpg Image from http://www.texasexplorer.com/aus
Showing magnitude of responses
=
d i i i
1 2
2d 3d
Figure by Varma & Zisserman
metric for image retrieval. International Journal of Computer Vision, 40(2):99-121, November 2000,
scene identification just texture recognition? Vision Research 44 (2004) 2301–2311
http://www.airventure.org/2004/gallery/images/073104_satellite.jpg
repeated
stochastic Both?
Alexei A. Efros and Thomas K. Leung, “Texture Synthesis by Non-parametric Sampling,” Proc. International Conference on Computer Vision (ICCV), 1999.
previous one
– dependency given by a conditional probability:
Source S. Seitz
2/3 1/3 1/3 1/3 1/3 1 1 1 1
a dog is man’s best friend
1 1 1 1 1 1 1
friend it’s eat world
there dog is man’s best friend it’s eat world
there a . .
Source: S. Seitz
Create plausible looking poetry, love letters, term papers, etc.
– find all blocks of N consecutive words/letters in training documents – compute probability of occurrence
– compute by sampling from compute by sampling from
Source: S. Seitz
Dewdney, “A potpourri of programmed prose and prosody” Scientific American, 1989.
Slide from Alyosha Efros, ICCV 1999
Check out Yisong Yue’s website implementing text generation: build your own text Markov Chain for a given text corpus. http://www.yisongyue.com/shaney/index.php
D X A B D C X B
Source: S. Seitz
Texture corpus (sample) Output
Sample of the texture (“corpus”) Place we want to insert next
input image th i d i
– pick one matching window at random – assign x to be the center pixel of that window
best matches using SSD error and randomly choose between them, preferring better matches with higher probability
synthesized image
Slide from Alyosha Efros, ICCV 1999
input
Slide from Alyosha Efros, ICCV 1999
Increasing window size
Slide from Alyosha Efros, ICCV 1999
Slide from Alyosha Efros, ICCV 1999
french canvas rafia weave
Slide from Alyosha Efros, ICCV 1999
white bread brick wall
Slide from Alyosha Efros, ICCV 1999
Slide from Alyosha Efros, ICCV 1999
Slide from Alyosha Efros, ICCV 1999
Slide from Alyosha Efros, ICCV 1999
Slide from Alyosha Efros, ICCV 1999
I t i
non-parametric sampling
Input image
Synthesizing a block
Slide from Alyosha Efros, ICCV 1999
Input texture
B1 B2
Random placement block
B1 B2
Neighboring blocks
B1 B2
Minimal error p
g g constrained by overlap boundary cut
vertical boundary
Slide from Alyosha Efros
(Chernobyl Harvest)
http://www.dailykos.com/story/2004/10/27/22442/878
http://thelede.blogs.nytimes.com/2008/07/10/in-an-iranian-image-a-missile-too-many/
[fig from Shi et al]