Top Banner
Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision
24

Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

Dec 19, 2015

Download

Documents

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: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

Shape From Texture

Nick Vallidis

March 20, 2000

COMP 290 Computer Vision

Page 2: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 2

Why Shape from Texture?

• Texture provides our visual systems with a huge amount of information

• Computers should gain lots of information from it too then, right?

Page 3: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 3

Sometimes texture is all you need

Source: Computer Analysis of Visual Texturesby Fumiaki Tomita and Saburo Tsuji

Page 4: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 4

So what is texture?

• One very restrictive definition: “Repeating patterns of local variations in image intensity which are too fine to be distinguished as separate objects”

• The patterns that repeat are sometimes referred to as texels– NOTE: not the same as a graphics texel as it is

made of more than one pixel!

Page 5: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 5

Tell me more about textures!

• There are basically two kinds:– Deterministic– Statistical

• It’s pretty much man-made (deterministic) vs. natural (statistical)

Page 6: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 6

Deterministic Texture Examples

Page 7: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 7

Statistical Texture Examples

Page 8: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 8

What’s the general approach?

• Texture segmentation– hard! This is still a big research area.

• Texture classification– There are many methods to do this.

• Shape from texture– We’ll just pretend we can do the first two...

Page 9: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 9

Many things to many people

• There isn’t “one” shape from texture algorithm.

• Textures are complex so there are many different aspects that can be taken advantage of.

Page 10: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 10

Comparison of a few approachesAuthor(year)

Surface cue Surfacetype

Originaltexture

Projectiontype

Bajcsy(1976)

Texture-gradient

Planar Unknown perspective

Ohta(1981)

Texture-gradient

Planar Unknown perspective

Nakatani(1980)

Converging-lines

Planar Parallel-lines

perspective

Kender(1979)

NTPM* Planar Known Ortho-graphic

Walker(1984)

Shape-distortion

Curved Unknown Ortho-graphic

*Normalized Texture Property Map

Page 11: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 11

Surface Orientation from Texture

• Statistical texture method

• Assumptions:– Texels are small line segments: “needles”– Needles distributed uniformly (in both angle

and position)– Only one, approximately-planar surface– Orthographic projection

Page 12: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 12

What we’re calculating

• The tilt, , and slant, , of the plane:

Page 13: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 13

Where do we get needles?

• Imagine straw covering a plane

• Use an edge detector and we’ve got needles! (this even gives us orientation!)

Page 14: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 14

Ok, so what do we do with them?

• The metric we’re working from is the needle’s angle with the X axis:

X axis

Page 15: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 15

Define some random quantities

• For every needle, define a vector: [cos(2), sin(2)]

• So we can tell the angle of the plane by the distribution of these vectors on the unit circle!

Page 16: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 16

Calculate some statistics

• Find the center of mass of the vectors:

N

iiN

C1

2cos1

N

iiN

S1

2sin1

Page 17: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 17

Calculate some statistics

• But C and S can be put in terms of and : (only holds for orthographic

projection)

cos1

cos12cos

C

cos1

cos12sin

S

(Sorry, no proof on this one…)

Page 18: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 18

We can solve for the orientation!

• By converting C and S to polar coordinates, we get a simple form to solve for and :

Q

Q

1

1arccos

)2(mod2

(where and )22 SCQ C

Sarctan

2

1

Page 19: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 19

Example!Original Texture/Needles

Page 20: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 20

Original vector distribution

Page 21: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 21

Rotated needles

Page 22: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 22

Rotated vector distribution

Page 23: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 23

Other texels

Source: ComputerAnalysis of VisualTextures

Source: Scale-Space Theory inComputer Vision by TonyLindeberg

Page 24: Shape From Texture Nick Vallidis March 20, 2000 COMP 290 Computer Vision.

3/20/2000 Shape From Texture 24

Other Texels II