international prevention research institute laboratoire ... · 42000 saint-etienne, france abstract...

5
ASPLÜND’S METRIC DEFINED IN THE LOGARITHMIC IMAGE PROCESSING (LIP) FRAMEWORK FOR COLOUR AND MULTIVARIATE IMAGES Guillaume Noyel, Member IEEE International Prevention Research Institute 95 cours Lafayette 69006 Lyon, France Michel Jourlin Laboratoire Hubert Curien, UMR CNRS 5516 18 rue du Professeur Benoît Lauras 42000 Saint-Etienne, France ABSTRACT Asplünd’s metric, which is useful for pattern matching, con- sists in a double-sided probing, i.e. the over-graph and the sub-graph of a function are probed jointly. It has previously been defined for grey-scale images using the Logarithmic Im- age Processing (LIP) framework. LIP is a non-linear model to perform operations between images while being consistent with the human visual system. Our contribution consists in extending the Asplünd’s metric to colour and multivariate im- ages using the LIP framework. Asplünd’s metric is insensitive to lighting variations and we propose a colour variant which is robust to noise. Index TermsAsplünd’s distance, colour and multi- variate images, Logarithmic Image Processing, double-sided probing, pattern recognition 1. INTRODUCTION The LIP framework has been originally defined by Jourlin et al. in [1, 2, 3]. It consists in performing operations between images such as addition, subtraction or multiplication by a scalar with a result staying in the bounded domain of the im- ages, for example [0...255] for grey-scale images on 8 bits. Due to the relation between LIP operations and the physi- cal transmittance, the model is perfectly suited for images ac- quired by transmitted light (i.e. when the observed object is located between the source and the sensor). Furthermore, the demonstration, by Brailean [4] of the compatibility of the LIP model with human vision has enlarged its application for im- ages acquired in reflected light. The Asplünd’s metric initially defined for binary shapes [5, 6] has been extended to grey-scale images by Jourlin et al. using the LIP framework [7, 8]. One of the main property of this metric is to be strongly independent of lighting variations. It consists in probing a function by two homothetic functions of a template, i.e. the probe. As the homothetic functions are computed by a LIP multiplication, the distance is consistent with the human vision. After a reminder of the LIP model and the Asplünd’s met- ric for grey-scale images, a definition is given for colour im- ages in order to perform colour matching. A variant of the metric, robust to the noise, is also proposed. Examples will illustrate the properties of the metric. 2. PREREQUISITES 2.1. LIP model Given a spatial support D R N , a grey-scale image is a function f with values in the grey-scale [0,M [ R: f : D R N [0,M [. In the LIP context, 0 corresponds to the “white” extrem- ity of the grey-scale, which means to the source intensity, i.e. when no obstacle (object) is placed between the source and the sensor. Thanks to this grey-scale inversion, 0 will appear as the neutral element of the logarithmic addition. The other extremity M is a limit situation where no element of the source is transmitted (black value).This value is excluded of the scale, and when working with 8-bit digitized images, the 256 grey-levels correspond to the interval of integers [0...255]. Due to the relation between the LIP model and the trans- mittance law, T f (x)=1 - f (x)/M [2], the addition of two images f and g corresponds to the superposition of the obsta- cles (objects) generating respectively f and g. The resulting image will be noted: f 4 + g = f + g - f.g M From this law, the multiplication of an image by a positive real number λ is defined by: λ 4 × f = M - M 1 - f M λ Physical interpretation [2]: In the case of transmitted light, the sum 2 4 × f = f 4 + f consists in stacking twice the semi-transparent object corresponding to f . Therefore, the LIP multiplication of f by a scalar corresponds to changing the thickness of the observed object in the ratio λ. If λ> 1, the thickness is increased and the image becomes darker than f , while if λ< 1, the thickness is decreased and the image becomes brighter than f . arXiv:1803.00764v1 [cs.CV] 2 Mar 2018

Upload: others

Post on 11-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: International Prevention Research Institute Laboratoire ... · 42000 Saint-Etienne, France ABSTRACT Asplünd’s metric, which is useful for pattern matching, con-sists in a double-sided

ASPLÜND’S METRIC DEFINED IN THE LOGARITHMIC IMAGE PROCESSING (LIP)FRAMEWORK FOR COLOUR AND MULTIVARIATE IMAGES

Guillaume Noyel, Member IEEE

International Prevention Research Institute95 cours Lafayette

69006 Lyon, France

Michel Jourlin

Laboratoire Hubert Curien, UMR CNRS 551618 rue du Professeur Benoît Lauras

42000 Saint-Etienne, France

ABSTRACTAsplünd’s metric, which is useful for pattern matching, con-sists in a double-sided probing, i.e. the over-graph and thesub-graph of a function are probed jointly. It has previouslybeen defined for grey-scale images using the Logarithmic Im-age Processing (LIP) framework. LIP is a non-linear modelto perform operations between images while being consistentwith the human visual system. Our contribution consists inextending the Asplünd’s metric to colour and multivariate im-ages using the LIP framework. Asplünd’s metric is insensitiveto lighting variations and we propose a colour variant whichis robust to noise.

Index Terms— Asplünd’s distance, colour and multi-variate images, Logarithmic Image Processing, double-sidedprobing, pattern recognition

1. INTRODUCTION

The LIP framework has been originally defined by Jourlin etal. in [1, 2, 3]. It consists in performing operations betweenimages such as addition, subtraction or multiplication by ascalar with a result staying in the bounded domain of the im-ages, for example [0...255] for grey-scale images on 8 bits.Due to the relation between LIP operations and the physi-cal transmittance, the model is perfectly suited for images ac-quired by transmitted light (i.e. when the observed object islocated between the source and the sensor). Furthermore, thedemonstration, by Brailean [4] of the compatibility of the LIPmodel with human vision has enlarged its application for im-ages acquired in reflected light.

The Asplünd’s metric initially defined for binary shapes[5, 6] has been extended to grey-scale images by Jourlin et al.using the LIP framework [7, 8]. One of the main property ofthis metric is to be strongly independent of lighting variations.It consists in probing a function by two homothetic functionsof a template, i.e. the probe. As the homothetic functions arecomputed by a LIP multiplication, the distance is consistentwith the human vision.

After a reminder of the LIP model and the Asplünd’s met-ric for grey-scale images, a definition is given for colour im-

ages in order to perform colour matching. A variant of themetric, robust to the noise, is also proposed. Examples willillustrate the properties of the metric.

2. PREREQUISITES

2.1. LIP model

Given a spatial support D ⊂ RN , a grey-scale image is afunction f with values in the grey-scale [0,M [ ∈ R:f : D ⊂ RN → [0,M [.

In the LIP context, 0 corresponds to the “white” extrem-ity of the grey-scale, which means to the source intensity,i.e. when no obstacle (object) is placed between the sourceand the sensor. Thanks to this grey-scale inversion, 0 willappear as the neutral element of the logarithmic addition. Theother extremity M is a limit situation where no element ofthe source is transmitted (black value).This value is excludedof the scale, and when working with 8-bit digitized images,the 256 grey-levels correspond to the interval of integers[0...255].

Due to the relation between the LIP model and the trans-mittance law, Tf (x) = 1 − f(x)/M [2], the addition of twoimages f and g corresponds to the superposition of the obsta-cles (objects) generating respectively f and g. The resultingimage will be noted:

f 4+ g = f + g − f.gM

From this law, the multiplication of an image by a positivereal number λ is defined by:

λ4× f =M −M(1− f

M

)λPhysical interpretation [2]: In the case of transmitted

light, the sum 24× f = f 4+ f consists in stacking twice thesemi-transparent object corresponding to f . Therefore, theLIP multiplication of f by a scalar corresponds to changingthe thickness of the observed object in the ratio λ. If λ > 1,the thickness is increased and the image becomes darker thanf , while if λ < 1, the thickness is decreased and the imagebecomes brighter than f .

arX

iv:1

803.

0076

4v1

[cs

.CV

] 2

Mar

201

8

Page 2: International Prevention Research Institute Laboratoire ... · 42000 Saint-Etienne, France ABSTRACT Asplünd’s metric, which is useful for pattern matching, con-sists in a double-sided

2.2. Asplünd’s metric for grey-scale images

Definition 1. Given two images f and g defined on D,g is chosen as a probing function for example, and wedefine the two numbers: λ = inf {α, f ≤ α4× g} andµ = sup {β, β 4× g ≤ f}. The corresponding “functionalAsplünd’s metric” d4×As is:

d4×As(f, g) = ln (λ/µ) (1)

Physical interpretation [8]: As Asplünd’s metric is basedon LIP multiplication, this metric is particularly insensitive tolighting variations, as long as such variations may be mod-elled by thickness changing.

In order to find in an image the location of a given tem-plate, the metric d4×As can be adapted to local processing.The template corresponds to an image t defined on a spa-tial support Dt ⊂ D. For each point x of D, the distanced4×As(f|Dt(x) , t) is computed on the neighbourhood Dt(x)centred in x, with f|Dt(x) being the restriction of f to Dt(x).

3. ASPLÜND’S METRIC FOR COLOUR ANDMULTIVARIATE IMAGES

A colour image f , defined on a domain D ⊂ RN , with valuesin T 3, T = [0,M [, is written:

f :

{D → T 3

x → f(x) = (fR(x), fG(x), fB(x))(2)

with fR , fG , fB being the red, green and blue channels of f ,and f(x) being a vector-pixel.

A colour image is a particular case of a multivariate imagewhich is defined as fλ : D → T L, with L being an integernumber corresponding to the number of channels [9].

Definition 2. Given two colours C1 = (R1, G1, B1), C2 =(R2, G2, B2) ∈ T 3, their Asplünd’s distance is equal to:

d4×As(C1, C2) = ln(λ/µ) (3)

with λ = inf {k, k4× R1 ≥ R2, k4× G1 ≥ G2, k4× B1 ≥ B2}and µ = sup {k, k4× R1 ≤ R2, k4× G1 ≤ G2, k4× B1 ≤ B2}

Strictly speaking, d4×As is a metric if the colours Cn =(Rn, Gn, Bn) are replaced by their equivalence classes C̃n ={C = (R,G,B) ∈ T 3/∃α ∈ R+, (α4× R = Rn, α4× G =Gn, α4× B = Bn)}.

Colour metrics between two colour images f and g maybe defined as the sum (d1 metric) or the supremum (d∞) ofd4×As(C1, C2) on the considered region of interest Z ⊂ D:

d4×1,Z(f ,g) =1

#R

∑x∈R

d4×As(f(x),g(x)) (4)

d4×∞,Z(f ,g) = supx∈R

d4×As(f(x),g(x)) (5)

with #R the cardinal of R. In the same way:

Definition 3. The global colour Asplünd’s metric betweentwo colour images f and g on a region Z ⊂ D is

d4×As,Z(f ,g) = ln(λ/µ) (6)

with λ = inf {k, ∀x ∈ Z, k4× fR(x) ≥ gR(x), k4× fG(x) ≥gG(x), k4× fB(x) ≥ gB(x)}and µ = sup {k, ∀x ∈ Z, k4× fR(x) ≤ gR(x), k4× fG(x) ≤gG(x), k4× fB(x) ≤ gB(x)}.

In figure 1, the Asplünd’s metric has been tested betweenthe colour probe g and the colour function f on their definitiondomain D. In this case, the Asplünd’s distance is equal tod4×As,D(f ,g) = 1.76. The lower bound µ and the upper boundλ are determined as shown in Figure 1 (c).

(a) Colour function f (b) Colour probe g

(c) Lower (µ) and upper (λ)bounds

Fig. 1. Computation of the Asplünd’s distance between twocolour functions d4×As,D(f ,g) = 1.76. Each colour channel ofthe function is represented by a line having the correspondingcolour.

As for grey-scale images, the metric d4×As,Z may beadapted to local processing. The template, (i.e. the probe)corresponds to a colour image t defined on a spatial supportDt ⊂ D. For each point x ofD, the distance d4×As,Dt

(f|Dt(x) , t)is computed on the neighbourhood Dt(x) centred in x, withf|Dt(x) being the restriction of f to Dt(x).

Definition 4. Given a colour image f defined on D into T 3,(T 3)D

, and a colour probe t defined onDt into T 3,(T 3)Dt ,

the map of Asplünd’s distances is:

As4×t f :

(T 3)D × (T 3

)Dt → R+D

(f , t) → As4×t f(x) =

d4×As,Dt(f|Dt(x) , t)

(7)

Page 3: International Prevention Research Institute Laboratoire ... · 42000 Saint-Etienne, France ABSTRACT Asplünd’s metric, which is useful for pattern matching, con-sists in a double-sided

with Dt(x) the neighbourhood corresponding to Dt centredin x ∈ D.

In figure 2, the map of Asplünd’s distances is computedbetween a colour function and a colour probe. The minima ofthe map corresponds to the location of a pattern similar to theprobe.

(a) Colour function f (b) Colour probe t

(c) Map of Asplünd’sdistance As4×t f

Fig. 2. (c) Map of the Asplünd’s distance As4×t f between acolour function and a colour probe. (a) and (b) Each colourchannel is represented by a line having the correspondingcolour.

As explained in [8], Asplünd’s distance is sensitive tonoise because the probe lays on regional extrema producedby noise (Figure 1). In [8], Jourlin et al. have introduced anew definition of Asplünd’s distance with a tolerance on theextrema corresponding to noise. In this paper, we extend thisdefinition for colour and multivariate images.

To reduce the sensitivity of Asplünd’s distance to thenoise, there exists a metric defined in the context of “MeasureTheory”. It will be called Measure metric or M-metric. Onlya short recall of this theory adapted to the context of colourimages defined on a subset D ⊂ RN is presented. Given ameasure µ on RN , a colour image f and a metric d on thespace of colour images, a neighbourhoodNµ,d,ε,ε′ of functionf may be defined thanks to µ and two arbitrary small positivereal numbers ε and ε′ according to:

Nµ,d,ε,ε′ = {g, µ(x ∈ D, d(f(x),g(x)) > ε) < ε′}

It means that the measure of the set of points x, whered(f(x),g(x)) exceeds the tolerance ε, satisfies another toler-ance ε′. This can be simplified, in the context of Asplünd’smetric:

• the image being digitized, the number of pixels lyingin D is finite, therefore the “measure” of a subset of Dis linked to the cardinal of this subset, for example thepercentage P of its elements related to D (or a regionof interest R ⊂ D). In this case, we are looking for asubset D′ of D, such that f|D′ and g|D′ are neighboursfor Asplünd’s metric and the complementary setD\D′

of D′ related to D is small sized when compared to D.This last condition can be written as:P (D \D′) = #(D\D′)

#D ≤ pwhere p represents an acceptable percentage and #Dthe number of elements in D.

• Therefore, the neighbourhood Nµ,d,ε,ε′(f) is

NP,dAs,ε,p(f) ={g \ ∃D′ ⊂ D, d4×As,D′(f|D′ ,g|D′ ) < ε

and #(D\D′)#D ≤ p

}(8)

We follow the same approach already used in [8] to com-pute the Asplünd’s distance with a tolerance d4×As,D,p=80%(f ,g).In figure 3, a tolerance of p = 80% is used and consists indiscarding two points. Therefore, the Asplünd’s distance isdecreased from d4×As,D(f ,g) = 1.76 to d4×As,D,p=80%(f ,g) =0.91.

(a) Colour function f (b) Colour probe g

(c) Lower and upper bounds, p = 80%

Fig. 3. Colour Asplünd’s distance with a tolerance of p =80%. (µ, λ) are the scalars multiplying the probe withouttolerance. (µ′, λ′) are the scalars multiplying the probe withtolerance.

With this distance, a map of Asplünd’s distances can bedefined.

Page 4: International Prevention Research Institute Laboratoire ... · 42000 Saint-Etienne, France ABSTRACT Asplünd’s metric, which is useful for pattern matching, con-sists in a double-sided

Definition 5. Given a colour image f defined on D into T 3,(T 3)D

, and a colour probe t defined onDt into T 3,(T 3)Dt ,

a tolerance p ∈ [0, 1], the map of Asplünd’s distances with atolerance is:

As4×t,pf :

(T 3)D × (T 3

)Dt → R+D

(f , t) → As4×t,pf(x) =d4×As,Dt,p

(f|Dt(x) , t)(9)

with Dt(x) the neighbourhood corresponding to Dt centredin x ∈ D.

After having introduced the colour Asplünd’s distance,examples are given.

4. EXAMPLES AND APPLICATIONS

In figure 4, our aim is to find bricks of homogeneous colourinside a colour image of a brick wall. In the map of Asplünd’sdistances As4×t f of the image without noise f , the regionalminima correspond to the location where the probe is similarto the image (according to Asplünd’s distance). In the noisyimage f̃ , the map of Asplünd’s distance is very sensitive tonoise (fig. 4 d). Therefore, it is necessary to introduce a toler-ance in the map As4×t,pf̃ , to find the minima corresponding tothe bricks. One can notice that:

• the minima are preserved into the map with a tolerance(fig. 4 c) compared to the map without (fig. 4 f)

• the maps are insensitive to a vertical lighting drift.

The minima can be extracted using standard mathematicalmorphology operations [10, 11].

In figure 5, two images of the same scene, a bright imagef and a dark image f̃ , are acquired with two different expo-sure time. The probe t is extracted in the bright image andused to compute the map of Asplünd’s distance As4×t f̃ in thedarker image. By finding the minima of the map, the balls aredetected and their contours are added to the image of figure 5(b). One can notice that the Asplünd’s distance is very robustto lighting variations.

5. CONCLUSION AND PERSPECTIVES

An Asplünd’s distance for colour and multivariate images hasbeen introduced. Based on a double-sided probing of a func-tion, this distance is particularly insensitive to the lightingvariations. Moreover an alternative definition of the colourAsplünd’s distance robust to noise has been introduced. Anexample illustrates the robustness of the method to the light-ing variations and to the noise. With this new distance, ef-ficient colour or multivariate pattern matching can be per-formed in images with all the properties described in [8]. Infuture works, we plan to present the definition of a colour

(a) Image f and probe t (b) Noisy image f̃

(c) Map As4×t f (d) Map As4×t f̃

(e) Colour probe t magnified (f) Map As4×t,p=98%f̃

Fig. 4. Maps of Asplünd’s distances without tolerance As4×t f̃

and with tolerance As4×t,pf̃ . In f̃ , a Gaussian white noise withzero-mean, variance 2.6 and spatial density 1% has been used.

(a) Initial image fand probe t

(b) Dark image f̃Balls detected

(c) Map As4×t f̃

Fig. 5. Detection of coloured balls on a dark image f̃ with aprobe t extracted in the bright image f . (a) The border of theprobe t is coloured in white.

Page 5: International Prevention Research Institute Laboratoire ... · 42000 Saint-Etienne, France ABSTRACT Asplünd’s metric, which is useful for pattern matching, con-sists in a double-sided

Asplünd’s distance with a colour LIP model [3] (already de-fined). We are also going to study the links between As-plünd’s probing and mathematical morphology.

6. REFERENCES

[1] M. Jourlin and J.C. Pinoli, “A model for logarithmicimage processing,” Journal of Microscopy, vol. 149, no.1, pp. 21–35, 1988.

[2] M. Jourlin and J.C. Pinoli, “Logarithmic image process-ing: The mathematical and physical framework for therepresentation and processing of transmitted images,” inAdvances in Imaging and Electron Physics, Peter W.Hawkes, Ed., vol. 115, pp. 129 – 196. Elsevier, 2001.

[3] M. Jourlin, J. Breugnot, F. Itthirad, M. Bouabdellah, andB. Closs, “Chapter 2 - Logarithmic image processingfor color images,” in Advances in Imaging and ElectronPhysics, Peter W. Hawkes, Ed., vol. 168, pp. 65 – 107.Elsevier, 2011.

[4] J.C. Brailean, B. Sullivan, C.T. Chen, and M.L. Giger,“Evaluating the EM algorithm for image processing us-ing a human visual fidelity criterion,” in Acoustics,Speech, and Signal Processing, 1991. ICASSP-91., 1991International Conference on, Apr 1991, pp. 2957–2960vol.4.

[5] E. Asplünd, “Comparison between plane symmetricconvex bodies and parallelograms,” Mathematica Scan-dinavica, vol. 8, pp. 171–180, 1960.

[6] B. Grünbaum, “Measures of symmetry for convex sets,”in Proceedings of Symposia in Pure Mathematics, 1963,pp. 233–270 vol.7.

[7] M. Jourlin, M. Carré, J. Breugnot, and M. Bouabdel-lah, “Chapter 7 - Logarithmic image processing: Ad-ditive contrast, multiplicative contrast, and associatedmetrics,” in Advances in Imaging and Electron Physics,Peter W. Hawkes, Ed., vol. 171, pp. 357 – 406. Elsevier,2012.

[8] M. Jourlin, E. Couka, B. Abdallah, J. Corvo, andJ. Breugnot, “Asplünd’s metric defined in the logarith-mic image processing (LIP) framework: A new wayto perform double-sided image probing for non-lineargrayscale pattern matching,” Pattern Recognition, vol.47, no. 9, pp. 2908 – 2924, 2014.

[9] G. Noyel, J. Angulo, and D. Jeulin, “Morphologicalsegmentation of hyperspectral images,” Image Analysis& Stereology, vol. 26, no. 3, 2007.

[10] G. Matheron, Eléments pour une théorie des milieuxporeux, Masson, Paris, 1967.

[11] J. Serra and N.A.C. Cressie, Image analysis and math-ematical morphology: Vol. 1, Academic Press, London,1982.