Top Banner
Sets Functions Grids Grayscale watersheds on perfect fusion graph Jean Cousty Michel Couprie Laurent Najman Gilles Bertrand Institut Gaspard-Monge Laboratoire A2SI, Groupe ESIEE Cité Descartes, BP99 - 93162 Noisy-le-Grand Cedex - France {j.cousty, m.couprie, l.najman, g.bertrand}@esiee.fr International Workshop on Combinatorial Image Analysis 19-21 June 2006 Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph
100

Grayscale Watersheds on Perfect Fusion Graphs

May 06, 2023

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: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grayscale watersheds on perfect fusion graph

Jean CoustyMichel Couprie Laurent Najman Gilles Bertrand

Institut Gaspard-MongeLaboratoire A2SI, Groupe ESIEE

Cité Descartes, BP99 - 93162 Noisy-le-Grand Cedex - France{j.cousty, m.couprie, l.najman, g.bertrand}@esiee.fr

International Workshop on Combinatorial Image Analysis19-21 June 2006

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 2: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problems

Region merging methods consist of improving an initialsegmentation by iteratively merging pairs of neighboringregions.

T.Pavlidis. Structural Pattern Recognition, chapters 4-5.Segmentation techniques, 1977.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 3: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Introduction

In mathematical morphology hierarchical methods (saliency[NAJMAN96], waterfall [BEUCHER94]) are based on:

watershed segmentation; and

iterative merging of the obtained regions.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 4: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 1: grayscale watershed

Problem

Altitudes of passes between the regions of the watersheds arefundamental for region merging methods based on morphology.

Only topological based watersheds (W-thinnings)[NAJMAN05, BERTRAND05] produce divides correctlyplaced with respect to the altitude of the pass.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 5: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 1: grayscale watershed

Problem

Altitudes of passes between the regions of the watersheds arefundamental for region merging methods based on morphology.

Only topological based watersheds (W-thinnings)[NAJMAN05, BERTRAND05] produce divides correctlyplaced with respect to the altitude of the pass.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 6: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 2: region merging

BA

C

D

Problem

Is there some graphs in which any pair of neighboring regionscan always be merged?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 7: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 2: region merging

BA

C

D

Problem

Is there some graphs in which any pair of neighboring regionscan always be merged?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 8: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 2: region merging

BA

C

D

BA

Problem

Is there some graphs in which any pair of neighboring regionscan always be merged?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 9: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 2: region merging

BA BA

C

D

Problem

Is there some graphs in which any pair of neighboring regionscan always be merged?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 10: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 2: region merging

BA BA

C

D

Problem

Is there some graphs in which any pair of neighboring regionscan always be merged?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 11: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 3: grayscale watersheds & region merging

Some grayscale watershed algorithms can sometimesproduce thick divides.

This is a problem for region merging.

Problem

Is there a class of graphs in which any grayscalewatershed is thin?

How is it linked with region merging?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 12: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Problem 3: grayscale watersheds & region merging

Some grayscale watershed algorithms can sometimesproduce thick divides.

This is a problem for region merging.

Problem

Is there a class of graphs in which any grayscalewatershed is thin?

How is it linked with region merging?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 13: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grayscale watersheds on perfect fusion graphs

1 SetsWatershed set: a model of frontierFusion graphs

2 FunctionsW-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

3 Grids

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 14: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Basic notion on graphs

Let (E , Γ) be a symmetric graph. Let X ⊆ E , and let Y ⊆ X .

We say that X is connected if ∀p ∈ X , q ∈ X , there exists apath in X , from p to q.

We say that Y is a connected component of X if Y is bothconnected and maximal for this property.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 15: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

A set X separates its complementary set (X ) intoconnected components that we call regions for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 16: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

A set X separates its complementary set (X ) intoconnected components that we call regions for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 17: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

A set X separates its complementary set (X ) intoconnected components that we call regions for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 18: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: a model of frontier

Let X ⊆ E and p ∈ XWe say that p is W-simple for X if p is adjacent to exactlyone region for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 19: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: a model of frontier

Let X ⊆ E and p ∈ XWe say that p is W-simple for X if p is adjacent to exactlyone region for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 20: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: a model of frontier

Let X ⊆ E and p ∈ XWe say that p is W-simple for X if p is adjacent to exactlyone region for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 21: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: a model of frontier

Let X ⊆ E and p ∈ XWe say that p is W-simple for X if p is adjacent to exactlyone region for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 22: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: a model of frontier

The set X is a watershed set if there is no W-simple pointfor X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 23: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 24: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 25: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: examples

ProblemA watershed set can be thick.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 26: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Watershed set: examples

ProblemA watershed set can be thick.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 27: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Thin sets

Let X ⊆ E .

We say that X is thin if any point in X is adjacent to at leastone region for X

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 28: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging

Let X ⊆ E and let A and B be two regions for X with A 6= B.

Definition

We say that A and B can be merged (for X ) if there existsS ⊆ X such that :

A and B are the only regions for X adjacent to S; and

S is connected.

We also say that A and B can be merged through S.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 29: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 30: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 31: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 32: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 33: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: counter-example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 34: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: counter-example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 35: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging: counter-example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 36: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging

Let X ⊂ E and let A be a region for X .

We say that A can be merged (for X ) if there exists aregion B, such that A and B can be merged.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 37: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Region merging and graphs

Remark

Based on region merging properties, we can define fourclasses of graphs.

Weak fusion graphs

Fusion graphs

Strong fusion graphs

Perfect fusion graphs

For clarity reasons, we will introduce only two of these fourclasses.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 38: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph

Definition

We say that (E , Γ) is a fusion graph if for any subset ofvertices X ⊆ E, any region for X can be merged.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 39: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 40: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 41: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 42: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 43: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 44: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 45: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 46: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 47: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graph: example

ProblemThere exists neighboring regions that can not be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 48: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Perfect fusion graphs

Definition

We say that (E , Γ) is a perfect fusion graph if, for any X ⊆ E,any two regions for X , which are neighbor, can be mergedthrough their common neighborhood.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 49: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Perfect fusion graph, example

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 50: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graphs: properties

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 51: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Fusion graphs: properties

Property

Any perfect fusion graph is a fusion graph.The converse is in general not true.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 52: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Characterization of Fusion Graphs

Theorem

A graph G is a fusion graph if and only if any non-trivialwatershed in G is thin.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 53: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Characterizations of perfect fusion graphs

Theorem

The three following statements are equivalent:i) (E , Γ) is a perfect fusion graph;

ii) GN is not a subgraph of (E , Γ).iii) for any non-trivial watershed X in E, any point in X isadjacent to exactly two regions for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 54: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Characterizations of perfect fusion graphs

Theorem

The three following statements are equivalent:i) (E , Γ) is a perfect fusion graph;ii) GN is not a subgraph of (E , Γ).

iii) for any non-trivial watershed X in E, any point in X isadjacent to exactly two regions for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 55: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Watershed set: a model of frontierFusion graphs

Characterizations of perfect fusion graphs

Theorem

The three following statements are equivalent:i) (E , Γ) is a perfect fusion graph;ii) GN is not a subgraph of (E , Γ).iii) for any non-trivial watershed X in E, any point in X isadjacent to exactly two regions for X .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 56: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problems

Problem

Given a grayscale image, how can we obtain an initialwatershed set that can be used by further mergingprocedures?

Topological grayscale watershed?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 57: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problems

Problem

Given a grayscale image, how can we obtain an initialwatershed set that can be used by further mergingprocedures?

Topological grayscale watershed?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 58: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Basic notion for vertex-weighted graphs

Let F be a map from E to N. Let k ∈ N.

We denote by F [k ] the set {x ∈ E ; F (x) ≥ k}.A connected component of F [k ] which does not contain aconnected component of F [k − 1] is a (regional) minimumof F .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 59: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

W-destructible point

Let F be a map let p ∈ E and let k = F (p).

Definition

We say that p is W-destructible for F if p is W-simple for F [k ].

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 60: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

W-thinnings and topological watersheds

Let F and G be two maps.

Definition

We say that G is a W-thinning of F, if G may be derivedfrom F by iteratively lowering W-destructible points by one.

We say that G is a topological watershed of F if G is aW-thinning of F and if there is no W-destructible pointsfor G.

Definition

The set of all points which are not in a minimum of F ,denoted by M(F ) ⊆ E is the divide of F.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 61: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

W-thinnings and topological watersheds

Let F and G be two maps.

Definition

We say that G is a W-thinning of F, if G may be derivedfrom F by iteratively lowering W-destructible points by one.

We say that G is a topological watershed of F if G is aW-thinning of F and if there is no W-destructible pointsfor G.

Definition

The set of all points which are not in a minimum of F ,denoted by M(F ) ⊆ E is the divide of F.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 62: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

W-thinnings and topological watersheds

Let F and G be two maps.

Definition

We say that G is a W-thinning of F, if G may be derivedfrom F by iteratively lowering W-destructible points by one.

We say that G is a topological watershed of F if G is aW-thinning of F and if there is no W-destructible pointsfor G.

Definition

The set of all points which are not in a minimum of F ,denoted by M(F ) ⊆ E is the divide of F.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 63: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Topological watersheds: example

3 5 5 5 10 10 10 10 15

3 5 30 30 30 30 30 15 15

3 5 30 20 20 20 30 15 15

40 40 40 20 20 20 40 40 40

10 10 40 20 20 20 40 10 10

5 5 40 40 20 40 40 10 5

1 5 10 15 20 15 10 5 0

3 3 3 3 3 3 3 3 3

3 3 30 30 30 30 30 3 3

3 3 30 1 20 0 30 3 3

30 30 30 1 20 0 30 30 30

1 1 1 1 20 0 0 0 0

1 1 1 1 20 0 0 0 0

1 1 1 1 20 0 0 0 0

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 64: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Topological watersheds: example

3 5 5 5 10 10 10 10 15

3 5 30 30 30 30 30 15 15

3 5 30 20 20 20 30 15 15

40 40 40 20 20 20 40 40 40

10 10 40 20 20 20 40 10 10

5 5 40 40 20 40 40 10 5

1 5 10 15 20 15 10 5 0

3 3 3 3 3 3 3 3 3

3 3 30 30 30 30 30 3 3

3 3 30 1 20 0 30 3 3

30 30 30 1 20 0 30 30 30

1 1 1 1 20 0 0 0 0

1 1 1 1 20 0 0 0 0

1 1 1 1 20 0 0 0 0

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 65: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problem

Problem

Is the divide of a topological watershed a watershed set?

Can we extend the thinness property of watershed set onfusion graphs to the grayscale case?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 66: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problem

Counter-example on a fusion graph: the 8-connectedgraph.

0 9 0 8 0 9 0 7 0

0 9 9 8 9 9 0 7 0

0 0 9 8 9 7 7 7 0

0 0 9 9 9 6 6 6 6

0 0 9 8 9 7 7 7 0

0 9 9 8 9 9 0 7 0

0 9 0 8 0 9 0 7 0

Problem

The divide of a topological watershed is not necessarily awatershed set and can be thick, even on fusion graphs.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 67: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problem

Counter-example on a fusion graph: the 8-connectedgraph.

I 9 A 8 B 9 C 7 D

I 9 9 8 9 9 C 7 D

I I 9 8 9 7 7 7 D

I I 9 9 9 6 6 6 6

I I 9 8 9 7 7 7 E

I 9 9 8 9 9 F 7 E

I 9 H 8 G 9 F 7 E

Problem

The divide of a topological watershed is not necessarily awatershed set and can be thick, even on fusion graphs.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 68: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problem

Counter-example on a fusion graph: the 8-connectedgraph.

I 9 A 8 B 9 C 7 D

I 9 9 8 9 9 C 7 D

I I 9 8 9 7 7 7 D

I I 9 9 9 6 6 6 6

I I 9 8 9 7 7 7 E

I 9 9 8 9 9 F 7 E

I 9 H 8 G 9 F 7 E

Problem

The divide of a topological watershed is not necessarily awatershed set and can be thick, even on fusion graphs.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 69: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problem

Counter-example on a fusion graph: the 8-connectedgraph.

I 9 A 8 B 9 C 7 D

I 9 9 8 9 9 C 7 D

I I 9 8 9 7 7 7 D

I I 9 9 9 6 6 6 6

I I 9 8 9 7 7 7 E

I 9 9 8 9 9 F 7 E

I 9 H 8 G 9 F 7 E

Problem

The divide of a topological watershed is not necessarily awatershed set and can be thick, even on fusion graphs.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 70: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Problem

What about topological watersheds on perfect fusiongraphs?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 71: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

M-cliff points

Let F be a map and let x ∈ E .

Definition

We say that x is a cliff point (for F) if x is W-simple for thedivide of F (i.e., if it is adjacent to a single minimum of F).

We say that x is M-cliff (for F ) if x is a cliff point withminimal altitude.

Property

If (E , Γ) is a perfect fusion graph then any point M-cliff for F isW-destructible for F .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 72: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

M-cliff points

Let F be a map and let x ∈ E .

Definition

We say that x is a cliff point (for F) if x is W-simple for thedivide of F (i.e., if it is adjacent to a single minimum of F).

We say that x is M-cliff (for F ) if x is a cliff point withminimal altitude.

Property

If (E , Γ) is a perfect fusion graph then any point M-cliff for F isW-destructible for F .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 73: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Thin topological watershed

Theorem

On a perfect fusion graph, the divide of any topologicalwatershed is:

a watershed set;

a thin set.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 74: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

Algorithms for topological watersheds

Problem

The algorithms for topological watershed are quasi-linear butnot linear.

Is there a faster (linear) algorithm on perfect fusion graphs?

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 75: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watersheds: definition

Let F and G be two maps.

Definition

We say that G is a C-thinning of F if G may be derivedfrom F by iteratively lowering M-cliff point.

We say that G is a C-watershed of F if G is a C-thinning ofF and if there is no M-cliff point for G.

Remark

Let x be a M-cliff point.

If G is derived from F by lowering the value of x down tothe altitude of the only minimum adjacent to x, then G is aC-thinning of F .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 76: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watersheds: definition

Let F and G be two maps.

Definition

We say that G is a C-thinning of F if G may be derivedfrom F by iteratively lowering M-cliff point.

We say that G is a C-watershed of F if G is a C-thinning ofF and if there is no M-cliff point for G.

Remark

Let x be a M-cliff point.

If G is derived from F by lowering the value of x down tothe altitude of the only minimum adjacent to x, then G is aC-thinning of F .

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 77: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watersheds: properties

Suppose that (E , Γ) is a perfect fusion graph.Let F be a map and G be a C-watershed of F .

Property

G is a W-thinning of F .

the divide of G is a watershed set.

the divide of G is thin.

On non-perfect fusion graphs, the previous properties arein general not true.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 78: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watersheds: properties

Suppose that (E , Γ) is a perfect fusion graph.Let F be a map and G be a C-watershed of F .

Property

G is a W-thinning of F .

the divide of G is a watershed set.

the divide of G is thin.

On non-perfect fusion graphs, the previous properties arein general not true.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 79: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watersheds: algorithm

Data: a perfect fusion graph (E , Γ), a map F

Result : F

L := ∅; K := ∅;1

Attribute distinct labels to all minima of F and label the points of M(F ) with the2

corresponding labels;

foreach x ∈ E do3

if x ∈ M(F ) then K := K ∪ {x};4

else if x is adjacent to M(F ) then L := L ∪ {x}; K := K ∪ {x};5

while L 6= ∅ do6

x := an element with minimal altitude for F in L;7

L := L \ {x};8

if x is adjacent to exactly one minimum of F then9

Set F [x ] to the altitude of the only minimum of F adjacent to x ;10

Label x with the corresponding label;11

foreach y ∈ Γ?(x) ∩ K do L := L ∪ {y}; K := K ∪ {y};12

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 80: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watershed: linear time algorithm

Property

C-watershed algorithm is monotone;

it runs in linear time with respect to the size of the inputgraph.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 81: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

W-thinnings and topological watershedsTopological watersheds on perfect fusion graphsC-watersheds: definition and linear time algorithm

C-watershed: linear time algorithm

Property

C-watershed algorithm is monotone;

it runs in linear time with respect to the size of the inputgraph.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 82: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grids

Property

None of the usual grids is a perfect fusion graph.

We introduce the perfect fusion grids.

Perfect fusion grids can be defined in dimension over Zn, forany integer n.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 83: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grids

Property

None of the usual grids is a perfect fusion graph.

We introduce the perfect fusion grids.

Perfect fusion grids can be defined in dimension over Zn, forany integer n.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 84: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grids

Property

None of the usual grids is a perfect fusion graph.

We introduce the perfect fusion grids.

Perfect fusion grids can be defined in dimension over Zn, forany integer n.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 85: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grids

Property

None of the usual grids is a perfect fusion graph.

We introduce the perfect fusion grids.

Perfect fusion grids can be defined in dimension over Zn, forany integer n.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 86: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

To conclude by an example

BA

D

C

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 87: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

To conclude by an example

BA

D

C

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 88: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

To conclude by an example

BA

D

C

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 89: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

To conclude by an example

A

D

E

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 90: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Conclusion

Perfect fusion graphs: framework adapted for regionmerging methods based on grayscale watersheds

Introduction of a simple linear-time algorithm to computegrayscale watersheds in this framework

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 91: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Perspectives

Drop of water principle:A framework that guarantees the existence of suchwatersheds;New simple and linear algorithms to compute thosewatersheds;

Region merging schemes:Links bewteen minimum spanning trees and watersheds;Saliency and watershed hierachies.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 92: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Perspectives: saliancy on perfect fusion grids

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 93: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Publications (Grayscale watersheds)

Theoretical foundations

G. Bertrand. On topological watersheds. vol. 22, n. 2-3, pp. 217-230 Journal of Mathematical Imaging and Vision, May 2005.(Special issue on Mathematical Morphology after 40 years)

Comparisons with flooding and the emergence paradigm

L. Najman, M. Couprie, and G. Bertrand. Watersheds, mosaicsand the emergence paradigm. vol. 147, n. 2-3, pp. 301-324. Dis-crete Applied Mathematics, April 2005. (Special issue on DGCI)

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 94: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Publications (Fusion graphs)

Fusion graphs

J. Cousty, G. Bertrand, M. Couprie, and L. Najman. Fusiongraphs: merging properties and watershed. Computer Visionand Image Understanding, 2006. Submitted, Special Issuecommemorating the career of Prof. Azriel Rosenfeld. Also inIGM2005-04.

Fusion graphs and grayscale watersheds

J. Cousty, M. Couprie, L. Najman and G. Bertrand. GrayscaleWatersheds on Perfect Fusion Graphs. pp. 60-73. IWCIA 2006,LNCS 4040, proceedings, June 2006.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 95: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grille hexagonale

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 96: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Grille hexagonale

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 97: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Division de régions

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 98: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Division de régions

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 99: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Division de régions

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph

Page 100: Grayscale Watersheds on Perfect Fusion Graphs

SetsFunctions

Grids

Division de régions

Property

Soit (E , Γ) un graphe de fusion parfait. Soit X ⊆ E, une LPE etA une région pour X. Si Y ⊆ A est une LPE sur (A, Γ ∩ [A× A])alors X ∪ Y est une LPE sur (E , Γ).

La propriété n’est pas vérifiée sur les graphes de fusion.

Jean Cousty , Michel Couprie, Laurent Najman, Gilles Bertrand Grayscale watersheds on perfect fusion graph