Docsity

Computer Vision - Lecture Slides | CS 4495, Study notes of Computer Science

Partial preview of the text

Download Computer Vision - Lecture Slides | CS 4495 and more Study notes Computer Science in PDF only on Docsity!

Classifiers

(Ch 22)

Frank Dellaert

Some slides by Forsyth & Ponce Memory-based stuff by me Some slides by Paul Viola

Recognition by finding

patterns

 We have seen very

simple template

matching (under

filters)

 Some objects

behave like quite

simple templates

 Frontal faces

 Strategy:

 Find image windows  Correct lighting  Pass them to a statistical test (a classifier) that accepts faces and rejects non-faces

Decision Theory

 Generally, we should classify as 1 if the

expected loss of classifying as 1 is better

than for 2

 gives

 Crucial notion: Decision boundary

 points where the loss is the same for either case 1 if 2 if

Decision Theory

 Choose decision with minimum Risk

Risk

Risk(say 2) Risk(say 1)? Risk(ND)

Bayes Classifier

Decision Boundaries

 Where P(1|x)=P(2|x):

P(1|x) P(2|x)

Bayes Risk

P(1|x) P(2|x)

Some loss may be inevitable: the minimum

risk (shaded area) is called the Bayes risk

Memory-Based Methods

Classification

Posterior

Example Histograms

Application: Skin Histograms

 Skin has a very small range of (intensity independent) colours, and little texture  Compute colour measure, check if colour is in this range, check if there is little texture (median filter)  See this as a classifier - we can set up the tests by hand, or learn them.  get class conditional densities (histograms), priors from data (counting)  Classifier is

Figure from “Statistical color models with application to skin detection,” M.J. Jones and J. Rehg, Proc. Computer Vision and Pattern Recognition, 1999 copyright 1999, IEEE

Results

Dropping Boxes

Properties “Dropping Boxes”