Top Banner
Fast, Multiscale Image Fast, Multiscale Image Segmentation: From Pixels to Segmentation: From Pixels to Semantics Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun, Eitan Sharon
65

Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

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: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Fast, Multiscale Image Fast, Multiscale Image Segmentation: From Pixels to Segmentation: From Pixels to

SemanticsSemantics

Ronen BasriThe Weizmann Institute of Science

Joint work with

Achi Brandt, Meirav Galun, Eitan Sharon

Page 2: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 3: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 4: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

CamouflageCamouflage

Page 5: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

CamouflageCamouflage

Malik et al.’s“Normalized cuts”

Page 6: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 7: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 8: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 9: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 10: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,
Page 11: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Our ResultsOur Results

Page 12: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

SSegmentation by egmentation by WWeighted eighted AAggregationggregation

A multiscale algorithm:• Optimizes a global measure• Returns a full hierarchy of segments• Linear complexity• Combines multiscale measurements:

– Texture– Boundary integrity

Page 13: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

The Pixel GraphThe Pixel GraphCouplings (weights)

reflect intensity

similarity

Low contrast –strong couplingHigh contrast –weak coupling

i jI I

ijW e

Page 14: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Normalized-cut MeasureNormalized-cut Measure

( )( )

( )

Cut SE S

Int S

Minimize:

2( ) ( )ij i ji j

Cut S w u u

( ) ij i ji j

Int S w u u

Si

Siui 0

1

Page 15: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Saliency MeasureSaliency Measure

2( ) ( )

1( )

2

( ) 2

Tij i j

i j

Tij i j

i j

T

T

Cut S w u u u Lu

Int S w u u u Wu

u LuE S

u Wu

Lu WuMinimize:

Page 16: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Multiscale Computation Multiscale Computation of Ncutsof Ncuts

• Our objective is to rapidly find the segments (0-1 partitions) that optimize

• For single-node cuts we simply evaluate • For multiple-node cuts we perform “soft

contraction” using coarsening procedures from algebraic multigrid solvers of PDEs.

Page 17: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Coarsening the GraphCoarsening the Graph

• Suppose we can define a sparse mappingsuch that for all minimal states

: , ( / 2)N nP N n R R

11

22

.

..

Nn

Uu

P

uU

uU

Page 18: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Coarse EnergyCoarse Energy

• Then

• PTWP, PTLP define a new (smaller)

graph

( ) 2 2T T T

T T T

u Lu U P LPUE S

u Wu U P WPU

Page 19: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Recursive CoarseningRecursive Coarsening

iu ju

Page 20: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Recursive CoarseningRecursive Coarsening

lUkURepresentative subset

1 2( , ,..., )NU U U U

Page 21: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Recursive CoarseningRecursive Coarsening

11

22

.

..

Nn

Uu

P

uU

uU

For a salient segment :

( )n NP ,sparse interpolation matrix

iu julUkU

Page 22: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Weighted AggregationWeighted Aggregation

ijwi

jjlp

aggregate k aggregate l

[[ 1] ]s T sWW P P

klWikp

Page 23: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

HierarchicHierarchical Graphal Graph

Pyramid of graphs Soft relations between levels Segments emerge as salient nodes at some level of the pyramid

Page 24: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Importance of Soft Importance of Soft RelationsRelations

Page 25: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Physical MotivationPhysical Motivation

• Our algorithm is motivated by algebraic multigrid solutions to heat or electric networks

• u - temperature/potential• a(x, y) – conductivity• At steady state largest temperature

differences are along the cuts• AMG coarsening is independent of f

( , ) ( , ) ( , )u u

a x y a x y f x yx x y y

Page 26: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Determine the Determine the BoundariesBoundaries

1

001,0,0,…,0

P

Page 27: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

HierarchHierarchyy

in in SWASWA

Page 28: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Texture ExamplesTexture Examples

Page 29: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

FiltersFilters(From Malik and Perona)

Oriented filtersCenter-

surround

Page 30: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

A Chicken and Egg A Chicken and Egg Problem Problem

Problem:Coarse measurements mix neighboring statistics

Solution: Support of measurements is determined as the segmentation process proceeds

Hey, I was here first

Page 31: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Texture AggregationTexture Aggregation

• Aggregates assumed to capture texture elements

• Compare neighboring aggregates according to the following statistics:– Multiscale brightness measures– Multiscale shape measures– Filter responses

• Use statistics to modify couplings

Page 32: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Recursive Computation of Recursive Computation of MeasuresMeasures

• Given some measure of aggregates at a certain level (e.g., orientation)

• At every coarser level we take a weighted sum of this measure from previous level

• The result can be used to compute the average, variance or histogram of the measure

• Complexity is linear

Page 33: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Use Averages to Modify the Use Averages to Modify the GraphGraph

Page 34: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Averaging

Our algorithm - SWA

Original

Geometric

Page 35: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Interpolation Geometric

Original

Our algorithm - SWA

Page 36: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Page 37: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Page 38: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Page 39: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Page 40: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Adaptive vs. Rigid Adaptive vs. Rigid MeasurementsMeasurements

Page 41: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Texture AggregationTexture Aggregation

Fine (homogeneous) Coarse (heterogeneous)

Page 42: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Multiscale Variance Multiscale Variance VectorVector

Page 43: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Multiscale Variance Multiscale Variance VectorVector

Page 44: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Variance: Avoid MixingVariance: Avoid Mixing

aggregation Sliding window

Page 45: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

LeopardLeopard

Page 46: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

More Leopards…More Leopards…

Page 47: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

And More…And More…

Page 48: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

BirdsBirds

Page 49: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

More AnimalsMore Animals

Page 50: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

BoatBoat

Page 51: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Malik’s NcutsMalik’s Ncuts

Page 52: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Key DifferencesKey Differences

• Optimize a global measure(like Malik’s Ncuts)

• Hierarchy with soft relations(unlike agglomerative/graph contraction)

• Combine texture measurements while avoiding the “chicken and egg problem”

Page 53: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

ComplexityComplexity

• Every level contains about half the nodes of the previous level:

Total #nodes 2 X #pixels• All connections are local, cleaning small

weights• Top-down sharpening: constant number

of levels• Linear complexity• Implementation: 5 seconds for 400x400

Page 54: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

•Average intensity•Texture•Shape

RepresentationRepresentation

Page 55: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

MatchingMatching(with Chen Brestel)

Page 56: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

More…More…

Page 57: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Data: FilippiData: Filippi

30 slices, 180x220 in 3 minutes

MRI DataMRI Data

Page 58: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

MS Lesion DetectionMS Lesion Detection

TaggedTagged Our resultsOur results

Data: FilippiData: Filippi

Page 59: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Data: FilippiData: Filippi

TaggedTagged Our resultsOur results

Page 60: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Data: FilippiData: Filippi

TaggedTagged Our resultsOur results

Page 61: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Data: FilippiData: Filippi

TaggedTagged Our resultsOur results

Page 62: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

2D Segmentation2D Segmentation

Data: FilippiData: Filippi

Page 63: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Data: FilippiData: Filippi

3D Segmentation3D Segmentation

Page 64: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

Cell MovementCell Movement

Page 65: Fast, Multiscale Image Segmentation: From Pixels to Semantics Ronen Basri The Weizmann Institute of Science Joint work with Achi Brandt, Meirav Galun,

SummarySummary

image

segments

Shape propertiesLeopard