62
Global Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color, and Texture Cues – Martin, Fowlkes, Malik Using Contours to Detect and Localize Junctions in Natural Images – Maire, Arbalaez, Fowlkes, Malik.                                                                                         presented by Varun Ramakrishna

Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Global Probability of Boundary

Learning to Detect Natural Image Boundaries Using Local Brightness, Color, and Texture Cues – Martin, Fowlkes, Malik

Using Contours to Detect and Localize Junctions in Natural Images – Maire, Arbalaez, Fowlkes, Malik.

                                           

                                             presented by

Varun Ramakrishna

Page 2: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 3: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 4: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 5: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Edge Detection Vs Boundary Detection

Edges­ Abrupt change in some low­level image             feature such as brightness or color

Boundary­ Contour in image plane that         represents a change in pixel ownership  from one object to another

Page 6: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Estimate Posterior probability of boundary passing though centre point based on local patch­based features

Using a Supervised Learning based framework

Boundary information integral to higher level tasks such as perceptual organization

Non-Boundaries Boundaries

Page 7: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 8: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Image Features

Oriented Energy

Gradient­Based Features

Compare contents of the

two disc halvesθr

(x,y)

Page 9: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

L*a*b* Colorspace

Which is more similar?

L*a*b* was designed to be uniform in that perceptual “closeness” corresponds to Euclidean distance in the space.

Page 10: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

L – lightness (white to black)

a – red-greeness

b – yellowness-blueness

Page 11: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Image Features

Work in L*a*b* Colorspace – distance between points is perceptually meaningful

Kernel density estimate followed by binning

Brightness Gradient: Histogram of L* values Color Gradient : Histogram of a* b* values

Page 12: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Image Features

Comparison of Histograms L1 Norm

Earth Mover's Distance

Chi­Squared Distance

Page 13: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Image Features

Texture Gradient 13 filter responses at each pixel Vector quantization using K­means Cluster centres define textons

Chi­squared difference between 

   texton distributions

Page 14: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Localization

Underlying function should peak at human marked boundaries

Spatially extended features On and Off boundary pixels will have a high value

Page 15: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Localization

Improve Localization by using derived feature Divide by distance to nearest maximum

x    maxima, d(x)   0, fnew   large→ → →

Page 16: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Image Features

Brightness Gradient BG(x,y,r,θ ) Color Gradient CG(x,y,r,θ ) Texture Gradient TG(x,y,r,θ )

Final set of features

{OE',BG,CG,TG'}

Page 17: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Precision-Recall vs ROC

Framework to estimate quality of the boundary classifier

Precision:   True Positives / Hypothesized Class Total

Recall:        True Positives / True Class Total

Page 18: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Recall

Precision

Class 1 Class 2

Page 19: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Goal

FewerFalsePositives

Fewer Misses

Page 20: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

F-measure

Harmonic mean of P and R Maximum value of F along the curve Quality Measure of the P_R curve

Page 21: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

ROC Curves

Page 22: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 23: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 24: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

FN

TP FP

TN

Positives

Negatives

Precision = TP/(TP+FP)

Recall = TP/( TP+FN)

TPR = TP/(TP+FN)= Recall

FPR = FP/(FP+TN)

Page 25: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

FN

TP

FP

TN

Positives

Negatives

Precision = TP/(TP+FP)

Recall = TP/( TP+FN)

TPR = TP/(TP+FN)= Recall

FPR = FP/(FP+TN)

Page 26: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 27: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

ROC Curves

X­axis        Fraction of false positives (fallout)

Y­axis    Fraction of true positives (hit rate)

But true negatives grow as n^2, while true positives grow as n.

Fallout declines as 1/n, for a scaling of n of the image

Page 28: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Cue-Combination• Classification Trees

– Top­down splits to maximize entropy, error bounded

• Density Estimation– Adaptive bins using k­means

• Logistic Regression, 3 variants– Linear and quadratic terms– Confidence­rated generalization of AdaBoost (Schapire&Singer)

• Hierarchical Mixtures of Experts (Jordan&Jacobs)– Up to 8 experts, initialized top­down, fit with EM

• Support Vector Machines (libsvm, Chang&Lin)– Gaussian kernel, ν ­parameterization

Range over bias, complexity, parametric/non­parametric

Training on 200 images from the BSDS

Page 29: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Comparison of the different classifier models

Page 30: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Simple logistic regression model performs as well as  more complex models

Linear model supported by psychophysics (simple neuron model)

Page 31: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Cue-Combinations

Texture gradients are an important cue!

Page 32: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Berkeley Segmentation Dataset

Human subjects presented with image Divide into a number of segments which 

represent ”things” or parts of ”things” 2­30 is a good number Segments should be approximately equally 

important 200 images for training, 100 images for testing

Page 33: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Canny 2MM Pb HumanImage

Page 34: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Testing on 100 images from the BSDS

Page 35: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Key Results

Simple model works well Texture gradient is important

.... Now  combine the local cues with global cues.... 

Page 36: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Line drawings convey most information Goal of boundary detection   line drawings that →

would help in perceptual organization and hence object recognition

Page 37: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Perceptual Organization

Gestaltist view of Perceptual Organization The whole is different from the sum of the 

individual parts Integration of local cues as computed 

previously with global cues Global Framework : Mechanism for integration 

of local cues – Normalized Cuts

Page 38: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Perceptual Organization

Page 39: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Normalized-Cuts review

Image is modelled as a 

fully connected graph

Each link between nodes

(pixels) associated with a cost

 cpq ­  measures similarity­

         inversely proportional

         to difference in feature

Page 40: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Find Cut that minimizes the

cost function

However large segments are penalized, so fix by normalizing for size of segments

Page 41: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Solved by posing it as a generalized eigenvalue problem. 

Page 42: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Maximum intevening contour cue sij =Max (mPb(x,y,theta)) 

on line segment between pixel i and j Wij= exp(­Cij/k)

Multiscale Pb

Page 43: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Compute k+1 eigenvectors of the system arnd reshape in the size of original image – sPb

Contours extracted by taking gaussian derivatives at multiple orientations

Page 44: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 45: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

  The signals mPb and sPb convey different information, so a linear combination is taken and the  weights are learned from training data

mPb fires at all edges sPb fires only at Salient curves

Page 46: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 47: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Experiments with LabelMe

Goal of using the boundary detection for generating line drawings that would be useful for object recognition

Interesting to see how well certain object boundaries as detected by gPb correspond with human segmentations

Page 48: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

LabelMe Dataset

Images with objects labelled gPb computed for images with certain objects Boundaries in region of object extracted from 

complete image using the object mask Problems with Dataset

Page 49: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 50: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 51: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 52: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 53: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Results

Page 54: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 55: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 56: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 57: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 58: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 59: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,
Page 60: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Thank You

Page 61: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Which is more similar?

L*a*b* was designed to be uniform in that perceptual “closeness” corresponds to Euclidean distance in the space.

Page 62: Global Probability of Boundaryefros/courses/LBMV09/presentations/GlobalPb.pdfGlobal Probability of Boundary Learning to Detect Natural Image Boundaries Using Local Brightness, Color,

Color