嵌入式視覺 feature extraction statistical feature extraction(texture) geometry feature...

29
嵌嵌嵌嵌嵌 Feature Extraction • Statistical Feature Extraction(Texture) • Geometry Feature Extraction(Fingerprint)

Upload: frederica-dickerson

Post on 16-Dec-2015

267 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

嵌入式視覺Feature Extraction

• Statistical Feature Extraction(Texture)• Geometry Feature Extraction(Fingerprint)

Page 2: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Texture Feature Extraction

Texture is a description of the spatial arrangement of color orintensities in an image or a selected region of an image.

Page 3: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Natural Textures

grass leaves

Page 4: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Texture as Statistical Feature

• Segmenting out texels is difficult or impossible in real images.

• Numeric quantities or statistics that describe a texture can be computed from the gray tones (or colors) alone.

• This approach is less intuitive, but is computationally efficient.

• It can be used for both classification and segmentation.

Page 5: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Simple Statistical Texture Measures

1. Edge Density and Direction

• Use an edge detector as the first step in texture analysis.

• The number of edge pixels in a fixed-size region tells us how busy that region is.

• The directions of the edges also help characterize the texture

Page 6: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Two Edge-based Texture Measures

1. edgeness per unit area

2. edge magnitude and direction histograms

Fedgeness = |{ p | gradient_magnitude(p) threshold}| / N

where N is the size of the unit area

Fmagdir = ( Hmagnitude, Hdirection )

where these are the normalized histograms of gradientmagnitudes and gradient directions, respectively.

Page 7: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Original Image Frei-Chen Thresholded Edge Image Edge Image

Example

Page 8: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Local Binary Pattern

100 101 103 40 50 80 50 60 90

• For each pixel p, create an 8-bit number b1 b2 b3 b4 b5 b6 b7 b8, where bi = 0 if neighbor i has value less than or equal to p’s value and 1 otherwise.

• Represent the texture in the image (or a region) by the histogram of these numbers.

1 1 1 1 1 1 0 0

1 2 3

4

5 7 6

8

Page 9: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Co-occurrence Matrix Features

A co-occurrence matrix is a 2D array C in which

• Both the rows and columns represent a set of possible image values.

• C (i,j) indicates how many times value i co-occurs with value j in a particular spatial relationship d.

• The spatial relationship is specified by a vector d = (dr,dc).

d

Page 10: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

1 1 0 01 1 0 00 0 2 20 0 2 20 0 2 20 0 2 2

j

i

1

3

d = (3,1)

0 1 2

012

1 0 32 0 20 0 1

Cd

gray-tone image

co-occurrence matrix

From Cd we can compute Nd, the normalized co-occurrence matrix,where each value is divided by the sum of all the values.

Co-occurrence Matrix

Page 11: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Co-occurrence Features

Page 12: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)
Page 13: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Laws’ Texture Energy Features

The Laws Algorithm :

• Filter the input image using texture filters.• Compute texture energy by summing the absolute value of filtering results in local neighborhoods around each pixel.• Combine features to achieve rotational invariance.

Page 14: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Law’s texture masks (1)

Page 15: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Law’s texture masks (2)

Creation of 2D Masks

E5

L5

E5L5

Page 16: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

9D feature vector for pixel

• Subtract mean neighborhood intensity from (center) pixel• Apply 16 5x5 masks to get 16 filtered images Fk , k=1 to 16

• Produce 16 texture energy maps using 15x15 windows

Ek[r,c] = ∑ |Fk[i,j]|

• Replace each distinct pair with its average map:• 9 features (9 filtered images) defined as follows:

Page 17: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Laws Filters

Page 18: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)
Page 19: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

water

tiger

fence

flag

grass

small flowers

big flowers

Example: Using Laws Features to Cluster

Page 20: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Features from sample images

Page 21: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Autocorrelation function

• Autocorrelation function can detect repetitive patterns

• Also defines fineness/coarseness of the texture

• Compare the dot product (energy) of non shifted image with a shifted image

Page 22: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Interpreting autocorrelation

• Coarse texture function drops off slowly• Fine texture function drops off rapidly• Can drop differently for r and c• Regular textures function will have peaks and

valleys; peaks can repeat far away from [0, 0]• Random textures only peak at [0, 0]; breadth

of peak gives the size of the texture

Page 23: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Fourier power spectrum

• High frequency power fine texture• Concentrated power regularity• Directionality directional texture

Page 24: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Feature Extraction Process

• Input: image• Output: pixel features

– Color features– Texture features– Position features

• Algorithm: Select an appropriate scale for each pixel and extract features for that pixel at the selected scale

Pixel Features

Polarity

Anisotropy

Texture contrast

feature

extractionOriginal image

Page 25: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Geometry Feature Extraction(Fingerprint)

Page 26: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Image Enhancement- Gabor Filtering

)2cos(2

1exp),,,(

2

2

2

2

fx

yxfyxG

yx

Page 27: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Image Processing

(2.2)

Raw Image Enhanced Image Skeleton Image

Page 28: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Ending Point Bifurcation Point

Fingerprint Feature : Minutia

Page 29: 嵌入式視覺 Feature Extraction Statistical Feature Extraction(Texture) Geometry Feature Extraction(Fingerprint)

Minutia Extraction