Docsity

Simultaneous Object Recognition and Segmentation from Single or Multiple Model Views | ECE 598, Papers of Electrical and Electronics Engineering

Toggle sidebar
bg1
Simultaneous Object Recognition and Segmentation from Single or Multiple
Model Views ∗
Vittorio Ferrari1, Tinne Tuytelaars2, Luc Van Gool1,2
1Computer Vision Group (BIWI), ETH Zuerich, Switzerland
2ESAT-PSI, University of Leuven, Belgium
{ferrari,vangool}@vision.ee.ethz.ch, [email protected]
Abstract
We present a novel Object Recognition approach based
on affine invariant regions. It actively counters the prob-
lems related to the limited repeatability of the region de-
tectors, and the difficulty of matching, in the presence of
large amounts of background clutter and particularly chal-
lenging viewing conditions. After producing an initial set
of matches, the method gradually explores the surround-
ing image areas, recursively constructing more and more
matching regions, increasingly farther from the initial ones.
This process covers the object with matches, and simulta-
neously separates the correct matches from the wrong ones.
Hence, recognition and segmentation are achieved at the
same time. The approach includes a mechanism for captur-
ing the relationships between multiple model views and ex-
ploiting these for integrating the contributions of the views
at recognition time. This is based on an efficient algorithm
for partitioning a set of region matches into groups lying
on smooth surfaces. Integration is achieved by measuring
the consistency of configurations of groups arising from dif-
ferent model views. Experimental results demonstrate the
stronger power of the approach in dealing with extensive
clutter, dominant occlusion, and large scale and viewpoint
changes. Non-rigid deformations are explicitly taken into
account, and the approximative contours of the object are
produced. All presented techniques can extend any view-
point invariant feature extractor.
1 Introduction
The modern trend in Object Recognition has abandoned
model-based approaches (e.g. [2]), which require a 3D
model of the object as input, in favor of appearance-based
ones, where some example images suffice. Two kinds of
appearance-based methods exist: global and local. Global
methods build an object representation by integrating in-
formation over an entire image (e.g [4, 19, 30]), and are
∗This research was supported by EC project VIBES, the Fund for Scientific Re-
search Flanders, and the IST Network of Excellence PASCAL
therefore very sensitive to background clutter and partial oc-
clusion. Hence, global methods only consider test images
without background, or necessitate a prior segmentation, a
task which has proven extremely difficult. Additionally, ro-
bustness to large viewpoint changes is hard to achieve, be-
cause the global object appearance varies in a complex and
unpredictable way (the object’s geometry is unknown). Lo-
cal methods counter problems due to clutter and occlusion
by representing images as a collection of features extracted
based on local information only (e.g. [28]). After the in-
fluential work of Schmid [26], who proposed the use of
rotation-invariant features, there has been important evolu-
tion. Feature extractors have appeared [14, 16] which are in-
variant also under scale changes, and more recently reco gni-
tion under general viewpoint changes has become possible,
thanks to extractors adapting the complete affine shape of
the feature to the viewing conditions [1, 15, 17, 25, 34, 33].
These affine invariant features are particularly significant:
even though the global appearance variation of 3D objects
is very complex under viewpoint changes, it can be approx-
imated by simple affine transformations on a local scale,
where each feature is approximately planar (a region). Lo-
cal invariant features are used in many recent works, and
provide the currently most successful paradigm for Object
Recognition (e.g. [14, 17, 20, 23, 33]). In the basic common
scheme a number of features are extracted independently
from both a model and a test image, then characterized by
invariant descriptors and finally matched.
In spite of their success, the robustness and generality
of these approaches are limited by the repeatability of the
feature extraction, and the difficulty of matching correctly,
in the presence of large amounts of clutter and challeng-
ing viewing conditions. Indeed, large scale or viewpoint
changes considerably lower the probability that any given
model feature is re-extracted in the test image. Simultane-
ously, occlusion reduces the number of visible model fea-
tures. The combined effect is that only a small fraction of
model features has a correspondence in the test image. Th is
fraction represents the maximal number of features that can
be correctly matched. Unfortunately, at the same time ex-
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Simultaneous Object Recognition and Segmentation from Single or Multiple Model Views | ECE 598 and more Papers Electrical and Electronics Engineering in PDF only on Docsity!

Simultaneous Object Recognition and Segmentation from Single or Multiple

Model Views ∗

Vittorio Ferrari^1 , Tinne Tuytelaars^2 , Luc Van Gool^1 ,^2

1 Computer Vision Group (BIWI), ETH Zuerich, Switzerland

2 ESAT-PSI, University of Leuven, Belgium

{ferrari,vangool}@vision.ee.ethz.ch, [email protected]

Abstract

We present a novel Object Recognition approach based on affine invariant regions. It actively counters the prob- lems related to the limited repeatability of the region de- tectors, and the difficulty of matching, in the presence of large amounts of background clutter and particularly chal- lenging viewing conditions. After producing an initial set of matches, the method gradually explores the surround- ing image areas, recursively constructing more and more matching regions, increasingly farther from the initial ones. This process covers the object with matches, and simulta- neously separates the correct matches from the wrong ones. Hence, recognition and segmentation are achieved at the same time. The approach includes a mechanism for captur- ing the relationships between multiple model views and ex- ploiting these for integrating the contributions of the views at recognition time. This is based on an efficient algorithm for partitioning a set of region matches into groups lying on smooth surfaces. Integration is achieved by measuring the consistency of configurations of groups arising from dif- ferent model views. Experimental results demonstrate the stronger power of the approach in dealing with extensive clutter, dominant occlusion, and large scale and viewpoint changes. Non-rigid deformations are explicitly taken into account, and the approximative contours of the object are produced. All presented techniques can extend any view- point invariant feature extractor.

1 Introduction

The modern trend in Object Recognition has abandoned model-based approaches (e.g. [2]), which require a 3D model of the object as input, in favor of appearance-based ones, where some example images suffice. Two kinds of appearance-based methods exist: global and local. Global methods build an object representation by integrating in- formation over an entire image (e.g [4, 19, 30]), and are

∗This research was supported by EC project VIBES, the Fund for Scientific Re- search Flanders, and the IST Network of Excellence PASCAL

therefore very sensitive to background clutter and partial oc- clusion. Hence, global methods only consider test images without background, or necessitate a prior segmentation, a task which has proven extremely difficult. Additionally, ro- bustness to large viewpoint changes is hard to achieve, be- cause the global object appearance varies in a complex and unpredictable way (the object’s geometry is unknown). Lo- cal methods counter problems due to clutter and occlusion by representing images as a collection of features extracted based on local information only (e.g. [28]). After the in- fluential work of Schmid [26], who proposed the use of rotation-invariant features, there has been important evolu- tion. Feature extractors have appeared [14, 16] which are in- variant also under scale changes, and more recently recogni- tion under general viewpoint changes has become possible, thanks to extractors adapting the complete affine shape of the feature to the viewing conditions [1, 15, 17, 25, 34, 33]. These affine invariant features are particularly significant: even though the global appearance variation of 3D objects is very complex under viewpoint changes, it can be approx- imated by simple affine transformations on a local scale, where each feature is approximately planar (a region ). Lo- cal invariant features are used in many recent works, and provide the currently most successful paradigm for Object Recognition (e.g. [14, 17, 20, 23, 33]). In the basic common scheme a number of features are extracted independently from both a model and a test image, then characterized by invariant descriptors and finally matched.

In spite of their success, the robustness and generality of these approaches are limited by the repeatability of the feature extraction, and the difficulty of matching correctly, in the presence of large amounts of clutter and challeng- ing viewing conditions. Indeed, large scale or viewpoint changes considerably lower the probability that any given model feature is re-extracted in the test image. Simultane- ously, occlusion reduces the number of visible model fea- tures. The combined effect is that only a small fraction of model features has a correspondence in the test image. This fraction represents the maximal number of features that can be correctly matched. Unfortunately, at the same time ex-

tensive clutter gives rise to a large number of non-object features, which disturb the matching process. As a final outcome of these combined difficulties, only a few, if any, correct matches are produced. Because these often come together with many mismatches, recognition tends to fail. Even in easier cases, to suit the needs for repeatability in spite of viewpoint changes, only a sparse set of distin- guished features [20] are extracted. As a result, only a small portion of the object is typically covered with matches. Densely covering the visible part of the object is desirable, as it increases the evidence for its presence, which results in higher detection power. Moreover, it would allow to find the contours of the object, rather than just its location.

Simultaneous recognition and segmentation In the first part of the paper we tackle these problems with a new, pow- erful technique to match a model view to the test image which no longer relies solely on matching viewpoint invari- ant features. We start by producing an initial large set of unreliable region correspondences, so as to maximize the number of correct matches, at the cost of introducing many mismatches. Additionally, we generate a grid of regions densely covering the model image. The core of the method then iteratively alternates between expansion phases and contraction phases. Each expansion phase tries to construct regions corresponding to the coverage ones, based on the geometric transformation of nearby existing matches. Con- traction phases try to remove incorrect matches, using filters that tolerate non-rigid deformations. This scheme anchors on the initial matches and then looks around them trying to construct more. As new matches arise, they are exploited to construct even more, in a process which gradually explores the test image, re- cursively constructing more and more matches, increasingly farther from the initial ones. At each iteration, the presence of the new matches helps the filter taking better removal de- cisions. In turn, the cleaner set of matches makes the next expansion more effective. As a result, the number, percent- age and extent of correct matches grow with every itera- tion. The two closely cooperating processes of expansion and contraction gather more evidence about the presence of the object and separate correct matches from wrong ones at the same time. Hence, they achieve simultaneous recogni- tion and segmentation of the object. By constructing matches for the coverage regions, the system succeeds in covering also image areas which are not interesting for the feature extractor or not discriminative enough to be correctly matched by traditional techniques. During the expansion phases, the shape of each new region is adapted to the local surface orientation, allowing the ex- ploration process to follow curved surfaces and deforma- tions (e.g. a folded magazine). The basic advantage of our approach is that each sin-

gle correct initial match can expand to cover a smooth sur- face with many correct matches, even when starting from a large number of mismatches. This leads to filling the visible portion of the object with matches. Some interesting direct advantages derive from it. First, robustness to scale, view- point, occlusion and clutter are greatly enhanced, because most cases where traditional approaches generate only a few correct matches are now solvable. Secondly, discrimi- native power is increased, because decisions about the ob- ject’s identity are based on information densely distributed over the entire portion of the object visible in the test image. Thirdly, the approximate boundary of the object in the test image is suggested by the final set of matches. Fourthly, non-rigid deformations are explicitly taken into account.

Integrating multiple model views When multiple model views are available, there usually are significant overlaps between the object parts seen by different views. In the sec- ond part of the paper, we extend our method to capture the relationships between the model views, and to exploit these for integrating the contributions of the views during recog- nition. The main ingredient is the novel concept of a group of aggregated matches (GAM). A GAM is a set of region matches between two images, which are distributed over a smooth surface of the object. A set of matches, including an arbitrary amount of mismatches, can be partitioned into GAMs. The more matches there are in a GAM, the more likely it is that they are correct. Moreover, the matches in a GAM are most often all correct, or all incorrect. When eval- uating the correctness and inter-relations of sets of matches, it is convenient to reason at the higher perceptual group- ing level that GAMs offer: no longer consider unrelated re- gion matches, but the collection of GAMs instead. Hence, GAMs become the atomic unit, with their size carrying pre- cious information. Moreover, the computational complexity of a problem can be reduced, because there are considerably fewer relevant GAMs than region matches. Concretely, multiple-view integration is achieved as fol- lows. During modeling, the model views are connected by a number of region-tracks. At recognition time, each model view is matched to the test image , and the result- ing matches are partitioned into GAMs. The coherence of a configuration of GAMs, possibly originating from differ- ent model views, is evaluated using the region tracks that span the model views. We search for the most consistent configuration, covering the object as completely as possi- ble, and define a confidence score which strongly increases in the presence of compatible GAMs. In this fashion, the detection power improves over the simple approach of con- sidering the contribution of each model view independently. Moreover, incorrect GAMs are discovered because they do not belong to the best configuration, thus improving the seg- mentation.

than NCC alone, which is the most common choice in the literature [20, 17, 33]. NCC mostly looks at the pattern structure , and discards valuable color information. A green disc on a red background, and a bright blue disc on a dark blue background would be very similar under NCC. dRGB captures complementary properties. As it focuses on color correspondence, it would correctly score low the previous disc example. However, it would confuse a green disc on a bright green background with a green cross on a bright green background, a difference which NCC would spot. By summing these two measures, we obtain a more robust one which alleviates their complementary shortcomings. Each of the 3 test regions most similar to T above a low threshold t 1 are considered tentatively matched to T. Re- peating this operation for all regions T ∈ Φt, yields a first set of tentative matches. At this point, every test region could be matched to either none, 1, 2 or 3 model regions.

3.2 Refinement and re-thresholding

Since all regions are independently extracted from the two images, the geometric registration of a correct match is of- ten not optimal. Two matching regions often do not cover exactly the same physical surface, which lowers their sim- ilarity. The registration of the tentative matches is now re- fined using our algorithm [6], that efficiently looks for the affine transformation that maximizes the similarity. This results in adjusting the region’s location and shape in one of the images. Besides raising the similarity of correct matches, this improves the quality of the forthcoming ex- pansion stage, where new matches are constructed based on the affine transformation of the initial ones. After refinement, the similarity is re-evaluated and only matches scoring above a second, higher threshold t 2 are kept 1. Refinement tends to raise the similarity of correct matches much more than that of mismatches. The increased separation between the similarity distributions makes the second thresholding more effective. At this point, about 1 / 3 to 1 / 2 of the tentative matches are left.

3.3 Motivation

The obtained set of matches usually still contains soft matches , i.e. more than one region in Φm is matched to the same region in Φt, or vice versa. This contrasts with previous works [1, 14, 17, 20, 33], but there are two good reasons for it. First, the scene might contain repeated, or visually similar elements. Secondly, large viewpoint and scale changes cause loss of resolution which results in a less accurate geometric correspondence and a lower similarity.

(^1) The R, G, B colorbands range in [0, 255], so sim is within [− 4. 41 , 2]. A value of 1. 0 indicates good similarity. In all experiments the matching thresholds are t 1 = 0. 6 , t 2 = 1. 0.

When there is also extensive clutter, it might be impossible, based purely on local appearance [24], to decide which of the best 3 matches is correct, as several competing regions might appear very similar, and score higher than the correct match. A classic 1-to-1 approach may easily be distracted and fail to produce the correct match. The proposed process outputs a large set of plausible matches, all with a reasonably high similarity. The goal is to maximize the number of correct matches, even at the cost of accepting a substantial fraction of mismatches. This is im- portant in difficult cases, when only a few model regions are re-extracted in the test image, because each correct match can start an expansion which will cover significant parts of the object. Figure 2a shows the case-study, for which 3 correct matches out of 217 are found (a correct-ratio of 3/217). The large scale change, combined with the modest reso- lution (720x576), causes heavy image degradation which corrupts edges and texture. In such conditions only a few model regions are re-extracted in the test image and many mismatches are inevitable. In the rest of the paper, we refer to the current set of matches as the configuration Γ. How to proceed? Global, robust geometry filtering methods, like detecting outliers to the epipolar geometry through RANSAC [32] fail, as they need a minimal portion of inliers of about 1 / 3 [3, 14]. Initially, this may very well not be the case. Even if we could separate out the few cor- rect matches, they would probably not be sufficient to draw reliable conclusions about the presence of the object. In the following sections, we explain how to gradually increment the number of correct matches and simultaneously decrease the number of mismatches.

4 Early expansion

4.1 Coverage of the model image

We generate a grid Ω of overlapping circular regions densely covering the model image Im (figure 3a). In our implementation the grid is composed of a first layer of re- gions of radius 25 pixels, spaced 25 pixels, and a second layer with radius 13 pixels and spaced 25 pixels 2. No re- gions are generated on the black background. According to various experiments, this choice of the parameters is not crucial for the overall recognition performance. The choice of the exact grid pattern, and consequently the number of regions in Ω, trades segmentation quality for computational cost, and could be selected based on the user’s desires. At this point, none of the regions in Ω is matched to the test image It. The expansion phases will try to construct in It as many regions corresponding to them as possible. (^2) These values are for an image of 720x576 pixels, and are proportion- ally adapted for images of other sizes.

a b

Figure 3: a) the homogeneous coverage Ω. b) a support region (dark), associated sectors (lines) and candidates (bright).

4.2 Propagation attempt

We now define the concept of propagation attempt which is the basic building-block of the expansion phases and will be used later. Consider a region Cm in model image Im without match in the test image It and a nearby region Sm, matched to St. If Cm and Sm lie on the same physical facet of the object, they will be mapped to It by similar affine transformations. The support match (Sm, St) attempts to propagate the candidate region Cm to It as follows:

  1. Compute the affine transformation A mapping Sm to St.
  2. Project Cm to It via A : Ct = ACm.

The benefits of exploiting previously established geo- metric transformations was also noted by [25].

4.3 Early expansion

Propagation attempts are used as a basis for the first expansion phase as follows. Consider as supports {Si^ = (Smi, Sti )} the soft-matches configuration Γ, and as candidates Λ the coverage regions Ω. For each support region Smi we partition Im into 6 circular sectors centered on the center of Smi (figure 3b). Each Smi attempts to propagate the closest candidate re- gion in each sector. As a consequence, each candidate Cm has an associated subset ΓCm ⊂ Γ of supports that will compete to propagate it. For a candidate Cm and each sup- port Si^ in ΓCm do:

  1. Generate Cti by attempting to propagate Cm via Si.
  2. Refine Cti. If Cti correctly matches Cm, this adapts it to the local surface orientation (handles curved and deformable objects) and perspective effects (the affine approximation is only valid on a local scale).
  3. Compute the color transformation T (^) RGBi = {sR, sG, sB } between Sim and Sti. This is speci- fied by the scale factors on the three colorbands.

a b

Figure 4: a) early propagation generates 17 correct matches (bright) out of 113. These are located around the initial 3 correct matches (dark). b) the configuration after early expansion has 20 correct matches (bright) and 310 mismatches (dark).

  1. Evaluate the quality of the refined propagation attempt, after applying the color transformation T (^) RGBi

simi = sim(Cm, Cit , T (^) RGBi ) = NCC(T (^) RGBi Cm, Cti ) + (1 − dRGB(T (^) RGBi Cm,Cti ) 100 ) Applying T (^) RGBi allows to use the unnormalized sim- ilarity measure sim, because color changes are now compensated for. This provides more discriminative power over using sim.

We retain Cbestt , with best = arg maxi simi, the best re- fined propagation attempt. Cm is considered successfully propagated to Ctbest if simbest > t 2 (the matching thresh- old). This procedure is applied for all candidates Cm ∈ Λ. Most support matches may actually be mismatches, and many of them typically lie around each of the few correct ones (e.g. several matches in a single soft-match, figure 2b). In order to cope with this situation, each support concen- trates its efforts on the nearest candidate in each direction, as it has the highest chance to undergo a similar geometric transformation. Additionally, every propagation attempt is refined before evaluation. Refinement raises the similarity of correctly propagated matches much more than the sim- ilarity of mispropagated ones, thereby helping correct sup- ports to win. This results in a limited, but controlled growth, maximizing the chance that each correct match propagates, and limiting the proliferation of mispropagations. The pro- cess also restricts the number of refinements to at most 6 per support (contains computational cost).

A

Figure 6: Left: a candidate (thin) and 2 of 20 supports within the large circular area. Right: the candidate is propagated to the test image using the affine transformation A of the support on the right (thick). Refinement adapts the shape to the perspective effects (brighter). The other support is mismatched to a region not visible in this close-up.

In contrast to the early expansion, many more sup- ports compete for the same candidate, and no refinement is applied before choosing the winner. However, the pres- ence of more correct supports, now tending to be grouped, and fewer mismatches, typically spread out, provides good chances that a correct support will win a competition. In this process each support has the chance to propagate many more candidates, spread over a larger area, because it of- fers help to all candidates within a wide circular radius. This allows the system to grow a mass of correct matches. Moreover, the process can jump over small occlusions or degraded areas, and costs only one refinement per candi- date. For the case-study, 185 new matches, 61 correct, are produced, thus lifting the correct-ratio of Γ up to 74/ (31%, figure 9, second row).

7 Main contraction

At this point the chances of having a sufficient number of correct matches for applying a global filter are much better. We propose here a global filter based on a topological con- straint for triples of region matches. In contrast to the local filter of section 5, this filter is capable of finding also iso- lated mismatches. The next subsection introduces the prop- erty on which the filter is based, while the following two subsections explain the filter itself and discuss its qualities.

7.1 The sidedness constraint

Consider a triple (R^1 m, R^2 m, R^3 m) of regions in the model image and their matching regions (R^1 t , R^2 t , R^3 t ) in the test image. Let cjv be the center of region Rjv (v ∈ {m, t}). The function

side(R^1 v , R^2 v, R^3 v ) = sign((c^2 v × c^3 v )c^1 v) (3)

takes value − 1 if c^1 v is on the right side of the directed line c^2 v × c^3 v , going from c^2 v to c^3 v, or value 1 if it’s on the left side. The equation side(R^1 m, R^2 m, R^3 m) = side(R^1 t , R^2 t , R^3 t ) (4) states that c^1 should be on the same side of the line in both views (figure 7). This sidedness constraint holds for all cor- rectly matched triples of coplanar regions, because in this case property (3) is viewpoint invariant. The constraint is valid also for most non-coplanar triples. A triple violates the constraint if at least one of the three regions is mismatched, or if they are not coplanar and there is important camera translation in the direction perpendicular to the 3D plane containing their centers ( parallax-violation ). This can cre- ate a parallax effect strong enough to move c^1 to the other side of the line. Nevertheless, this phenomenon typically af- fects only a small minority of triples. Since the camera can only translate in one direction between two views, the re- sulting parallax can only corrupt few triples, because those on planes oriented differently will not be affected. The region matches violate or respect equation (4) inde- pendently of the order in which they appear in the triple. The three points should be cyclically ordered in the same orientation (clockwise or anti-clockwise) in the two images in order to satisfy (4). Topological configurations of points and lines were also used by Tell and Carlsson [31] in the wide-baseline stereo context, as a mean for guiding the matching process.

7.2 Topological filter

A triple including a mismatched region has higher chances to violate the sidedness constraint. When this happens, it indicates that probably at least one of the matches is incor- rect, but it does not tell which one(s). While one triple is not enough to decide, this information can be recovered by considering all triples simultaneously. By integrating the weak information each triple provides, it is possible to ro- bustly discover mismatches. The key idea is that we expect incorrectly located regions to be involved in a higher share of violations. The constraint is checked for all unordered triples (Ri, Rj^ , Rk), Ri, Rj^ , Rk^ ∈ Γ. The share of violations for a region match Ri^ is errtopo(Ri) = 1 v

Rj^ ,Rk^ ∈Γ\Ri,j>k

|side(Rim, Rjm, Rkm) − side(Rit, Rjt , Rkt )|

(5) with v = (n − 1)(n − 2)/ 2 , n = |Γ|. errtopo(Ri) ∈ [0, 1] because it is normalized w.r.t. the maximum number of violations v any region can be involved in. The topological error share (5) is combined with an ap- pearance term, giving the total error errtot(Ri) = errtopo(Ri) + (t 2 − sim(Rim, Rit))

1

m

m

m (^2)

3

2

3

t

t

1

c t

c

c

c

c

c

Figure 7: Sidedness constraint. c^1 should be on the same side of the directed line from c^2 to c^3 in both images.

The filtering algorithm starts from the current set of matches Γ, and then iteratively removes one match at a time as fol- lows:

  1. (Re-)compute errtot(Ri) for all Ri^ ∈ Γ.
  2. Find the worst match Rw, with w = arg maxi errtot(Ri)
  3. If errtot(Rw^ ) > 0 , remove Rw^ from Γ. Rw^ will not be used for the computation of errtopo in the next iter- ation. Iterate to 1. If errtot(Rw^ ) ≤ 0 , or if all matches have been re- moved, then stop.

At each iteration the most probable mismatch Rw^ is re- moved. During the first iterations several mismatches are still present. Therefore, even correct matches might have a moderately large error, as they take part in triples includ- ing mismatches. However, mismatches are likely to have an even larger error, because they are involved in the very same triples, plus other violating ones. Hence, the worst mismatch Rw, the region located in It farthest from where it should be, is expected to have the largest error. After re- moving Rw^ all errors decrease, including the errors of cor- rect matches, because they are involved in less triples con- taining a mismatch. After several iterations, ideally only correct matches are left. Since these have only a low error, due to occasional parallax-violations, the algorithm stops. The second term of errtot decreases with increasing ap- pearance similarity, and it vanishes when sim(Rim, Rti) = t 2 , the matches acceptance threshold. The removal crite- rion errtot > 0 expresses the idea that topological viola- tions are accepted up to the degree to which they are com- pensated by high similarity. This helps finding mismatches which can hardly be judged by only one cue. A typical mismatch with similarity just above t 2 , will be removed un- less it is perfectly topologically located. Conversely, cor- rect matches with errtopo > 0 due to parallax-violations are in little danger, because they typically have good sim- ilarity. Including appearance makes the filter more robust

to low correct-ratios, and remedies the potential drawback (parallax-violations) of a purely topological filter. In order to achieve good computational performance, we store the terms of the sum in function (5) during the first iteration. In the following iterations, the sum is quickly re- computed by retrieving and adding up the necessary terms. This makes the computational cost almost independent of the number of iterations. The algorithm can be implemented to run in O(n^2 log(n)), based on the idea of constructing, for each point, a list with a cyclic ordering of all other points (a complete explanation is given in [5, pp. 208-211]).

7.3 Properties and advantages

The proposed filter has various attractive properties, and of- fers several advantages over detecting outliers to the epipo- lar geometry through RANSAC [32], which is traditionally used in the matching literature [15, 17, 24, 25, 33]. In the following, we refer to it as RANSAC-EG. The main two advantages are (more discussion in [5, pp. 75-77]):

It allows for non-rigid deformations. The filter allows for non-rigid deformations, like the bending of paper of cloth, because the structure of the spatial arrangements, captured by the sidedness constraints, is stable under these transfor- mations. As figure 8 shows, sidedness constraints are still respected even in the presence of substantial deformations. Other filters, which measure a geometrical distance error from an estimated model (e.g. homography, fundamental matrix) would fail in this situation. In the best case, several correct matches would be lost. Worse yet, in many cases the deformations would disturb the estimation of the model pa- rameters, resulting in a largely random behavior. The pro- posed filter does not try to capture the transformations of all matches in a single, overall model, but it relies instead on simpler, weak properties, involving only three matches each. The discriminative power is then obtained by integrat- ing over all measurements, revealing their strong, collective information.

It is insensitive to inaccurate locations. The regions’ cen- ters need not be exactly localized, because errtopo varies slowly and smoothly for a region departing from its ideal lo- cation. Hence, the algorithm is not affected by perturbations of the region’s locations. This is precious in the presence of large scale changes, not completely planar regions, or with all kinds of image degradation (motion blur, etc.), where lo- calization errors become more important. In RANSAC-EG instead, the point must lie within a tight band around the epipolar line. Worse yet, inaccurate localization of some regions might compromise the quality of the fundamental matrix, and therefore even cause rejection of many accurate regions [36]. In [5, pp. 84-85] we report experiments sup- porting this point, where the topological filter could with-

soft matching 3/217 early contraction 13/

first main expansion 74/

early expansion 20/

first main contraction 54/74 second main expansion 171/

second main contraction 150/174 contours of the final set of matches

Figure 9: Evolution of Γ for the case-study. Top-rows: correct matches; bottom rows: mismatches;

matches Γ. The correct matches gradually cover more and more of the object, while mismatches decrease in number. The system reversed the situation, by going from only very few correct matches in a large majority of mismatches, to hundreds of correct matches with only a few mismatches. Notice the accuracy of the final segmentation, and in partic- ular how the small occluding rubber has been correctly left out (figure 9 bottom-right).

9 Overview of part II: integrating

multiple model views

The image-exploration technique presented in the first part of the paper matches each single model view to the test im- age independently. In this second part, we capture the rela- tionships among multiple model views, and integrate their contributions at recognition time.

In the next section, we introduce an algorithm for par- titioning a set of region matches between two images into groups lying on smooth surfaces (termed groups of aggre- gated matches , or GAMs). GAMs are at the heart of the approach, and enjoy two fundamental properties. First, the matches in a GAM are most often all correct, or all incor- rect. Second, it is very unlikely for mismatches to form large GAMs (i.e. composed of many matches). Hence, the size of a GAM informs about the probability of it being cor- rect. Because of these properties, it is convenient to reason in terms of GAMs, rather than individual matches. Our mul- tiple view integration scheme relates GAMs arising from different model views, and considers them as atomic units, without descending to the matches level.

Sections 11 and 12 present the multiple-view integration approach. In the initial modeling stage, the model views are matched to each other, in order to build a large number of region-tracks , densely connecting them (section 11). At recognition time, we match each model view to the test im- age and partition the resulting sets of matches into GAMs (section 12). By following the model tracks, a GAM orig- inating from a certain model view can be transfered to an- other model view. Hence, we can measure the geometric consistencies of pairs of GAMs, and integrate these into a global score which quantifies the goodness of some subset ( configuration ) of all GAMs, even if they originate from different model views. We search for the configuration that maximizes the score function. The maximal score repre- sents the system’s confidence in the presence of the object and strongly increases in the presence of compatible GAMs. Therefore, the detection power is better than when consid- ering model views in isolation, and the segmentation im- proves because several incorrect GAMs are typically left out of the best configuration.

A

1 1, R Q

R

1

R

2

Q 2

d

Figure 11: Affine dissimilarity. d is one term in function (6).

10 Groups of Aggregated Matches

(GAMs)

This section describes an incremental grouping algorithm to partition a set of two-view matches into GAMs.

10.1 Affine dissimilarity

The grouping process is driven by the similarity between the affine transformations that map the regions from one view to the other. Consider three points on each region: the center p 0 and two more points p 1 , p 2 on the boundary. These points have previously been put in correspondence by the matching algorithm. The following function measures to which degree the affine transformation of a region match R is also valid for another match Q (figure 11):

D(R, Q) = 1 6

i=0.. 2

‖AR 1 , 2 Qi 1 − Qi 2 ‖ +

i=0.. 2

‖AR 2 , 1 Qi 2 − Qi 1 ‖

(6)

where ARa,b is the affine transformation mapping R from view a to view b, and Riv is point pi of region R in view v. By averaging over the two regions, we obtain the affine dissimilarity

DA(R, Q) =^1 2 (D(R, Q) + D(Q, R)) (7)

between (the affine transformations of) R and Q. This mea- sure is symmetric in the regions and in the views. This brings stability and helps dealing fairly with large scale changes. Two region matches have a high affine dissimilar- ity if either is a mismatch, or if they lie on different surfaces.

10.2 Constructing GAMs

The matches are partitioned by the following algorithm, which starts a GAM from a single match and then grows it by iteratively adding matches. The algorithm starts with the set Ω of region matches.

1 2 3 4 5 6 7 >

7

1076

201 (^72 20 1 )

1000 800 600 400 200

a)

1 2 3 4 5 6 >

1% 1% 10% 13%13%

94% 75%

90%

20%

70%

b)

Figure 13: a) number of incorrect GAMs in function of their size (x-axis). b) percentage of correct GAMs.

of added mismatches. As a result, correct GAMs are com- posed of correct matches only, or they contain only very few mismatches (typically 1 or 2). As a combined effect of the two properties, mismatches are scattered over many small GAMs, while correct matches typically concentrate in a few larger GAMs. This brings the major advantage to organizing individual matches into GAMs: if a GAM contains many matches we know it is very probably correct. Small GAMs are most of the time mismatches, and sometimes they are minor groups of correct matches located on a small, or difficult to match, surface. Beside informing about correctness, the sizes of GAMs correlate with relevance: the larger a GAM is, the more important it is, because it covers a larger surface. The above properties are the reason of existence of GAMs and make them valuable as an intermediate group- ing level on which to base powerful higher level algorithms. These need no longer consider each individual match, but can reason about complete GAMs instead, because matches and mismatches are separated into different GAMs. Hence, GAMs are seen as the new atomic units. GAMs can be used beyond the object recognition con- text. In another work [7], we propose a GAM-based algo- rithm for simultaneously estimating the epipolar geometry between two images and filtering mismatches, which works in the presence of very high percentages of mismatches.

Experimental assessment. In order to assess the valid- ity of the fundamental properties, we have matched 14 im- age pairs, run the GAM constructor, and measured size and composition of all resulting GAMs. The images come from diverse sources and contain planar, curved, as well as de- formed surfaces. Seven pairs are wide-baseline stereo cases (WBS), while the others are object recognition cases, with the first image being a model view and the second a test image. The two kinds of data differ in several aspects. The recognition pairs present larger occlusion, scale change, and clutter. The WBS pairs feature a more complex geome- try, with many fragmented surfaces, in contrast to the often compact objects in the recognition pairs. Six of the recogni- tion cases come from our dataset (subsection 13), while one is the teddybear used in the independent work of [23]. The

Figure 14: Top: Graffiti scene. A large GAM covers the whole wall, effectively bridging the perspective effect (only centers are shown). Middle: two GAMs on two very different views of Coleo. Bottom: close-up on some matches of the back-arm GAM. The ge- ometric transformations vary over a wide range, but change grad- ually among spatially neighboring regions.

WBS cases include three classic examples used in many pa- pers: the Valbonne church [25], the Graffiti wall [17], and the Dunster toy house [22]. The region correspondences are produced by one-to-one matching for the WBS cases, and by soft-matching for the object recognition cases (sec- tion 3). In total there are 2253 matches, which have been parti- tioned into 1428 GAMs. 1378 of them are formed purely of mismatches, while there are 50 GAMs containing all 415 correct matches. We call the former incorrect GAMs and the latter correct GAMs. Since the overall ratio of correct matches is only 18.4%, the statistics are relevant and truly summarize the behavior of the GAM constructor. Figure 13a plots the number of incorrect GAMs as a function of their size. The exponential decrease is clearly visible. There is only one incorrect GAM of size 6, and none larger than 7. This confirms the first fundamental property: it is unlikely for mismatches to form large GAMs. The second property is confirmed as well: 96.4% of all non-singleton GAMs are composed of either only correct

matches or only mismatches (as the property trivially holds for singleton GAMs, they are not counted). The property is also almost fulfilled by the remaining GAMs, as they contain all correct matches, but one (2.4%) or two (1.2%). No GAM mixed more than two mismatches with a correct match, therefore meeting the expectations. The relation between the size of a GAM and its probabil- ity of being correct is illustrated in figure 13b, which plots the percentage of correct GAMs of size N , for various N. The chances that a GAM is correct quickly grow with its size, and is 94% for N > 6.

10.4 Example GAMs

Figure 14 shows some examples. The first is the well- known Graffiti , introduced in [17]. The constructor algo- rithm grouped in a single GAM 71 matches spread over the whole wall, despite evident perspective effects. The matches are produced by the standard approach of [33]. The other example consists of two images of Coleo , a plush toy with a complex shape composed by several curved sur- faces. We matched the images with the image-exploration technique presented in part I, and fed the GAM constructor with the resulting region correspondences. There are many more correspondences than one would obtain by conven- tional matching, and they densely cover the parts of the ob- ject visible in both images. When applied to this input, the GAM decomposition is most interesting, because the con- structor has enough prime matter to build GAMs covering larger areas, even if curved or deformed. Despite the very different viewpoints, the exploration algorithm produced about 120 correct matches, densely covering the parts visi- ble in both views. The two largest GAMs correspond well to the principal contiguous surfaces, which are the head and the back-arm complex. Some of the matches among the lat- ter GAM are shown in the close-ups. The regions are all cir- cles of the same size in the left image, because they are part of one layer of the coverage generated in subsection 4.1. The contiguous variation of the regions’ shapes in the right image mirrors the changes in affine transformation due to the varying surface orientation. Although the range of the transformations is very wide, the GAM grouper succeeded in grouping these matches in a large GAM, exploiting the gradual changing of the transformation from a region to the next.

11 Modeling from multiple views

Let’s now turn to the central question of this part of the paper: how to exploit the relationships between multiple model views for recognition. In the modeling stage, the relationships are captured by a dense set of region-tracks.

a) coverage of view 5 b

c d

view 4 view 5 view 6

Figure 15: a) Coverage regions for model view 5. b) One of the coverage regions. c+d) the corresponding regions constructed by the image-exploration algorithm in views 4 and 6. These direct matches 5 → 4 and 5 → 6 induce a three-view track across views 4 , 5 , 6_. Hence, the transitive match_ 4 → 6 is implied. Bottom: 242 3-view tracks through views 4 , 5 , 6_._

Each such track is composed by the image regions of a sin- gle physical surface patch along the model views in which it is visible. The tracks should densely connect the model views, because they will be used during recognition in or- der to establish connections among GAMs matched from different model views to the test image (section 12). This section explains how to build the model region- tracks, starting from the bare set of M unordered model im- ages. First, dense two-view matches are produced between all pairs of model images. All pairwise sets of matches are then integrated into a single multi-view model. This process can be regarded as a specialized, dense counterpart of other sparse multi-view matching schemes, such as [25, 6]. In the following sections, we explain the method on 8 model views, taken at about 45 degrees during a complete tour of an example object (named Coleo , see next figures).

Dense two-view correspondences A dense set of region correspondences between every two model views vi, vj is obtained using a simplified variant of the image-exploration technique (part I). More precisely, it uses a simple one-to-

model view 1

model view 8

test image

Figure 17: Two compatible (and correct) GAMs. The nose GAM (black) is initially matched from model view 8, and is transferred to model view 1. Note how the other GAM (white) is very large and covers the head, arms and chest. A GAM can extend over multiple facets when the combination of viewpoints and surface orientations make the affine transformations of the region matches vary smoothly even across facet edges. In these cases, the resulting GAMs are larger and therefore more reliable and relevant.

GAMs are more likely to be correct. A Genetic Algorithm is used to maximize the configuration score. The maximum yields the final recognition score and reveals which GAMs are deemed incorrect. The recognition score increases in the presence of compatible GAMs, thereby improving recogni- tion performance. The recognition score, and the decisions to remove GAMs, are based on a global analysis of the situation. This considers simultaneously relationships among all pairs of GAMS, coming from all model views. It is computation- ally feasible because there are much less GAMs (a few tens) than region matches (hundreds to thousands). This is an advantage of reasoning on the higher perceptual grouping level offered by GAMs. The system no longer needs to consider each single region individually, but it can rely on a meaningful organization instead. The following subsections describe the elements of the above scheme in more detail.

12.1 GAM transfer

Consider a GAM matched from a model view vi to the test image, and another GAM matched from a different model view vj. Before computing the compatibility score for this GAM pair, they must be put in a common model view. Only then the geometrical coherence of their relative arrangement can be evaluated. A GAM is transferred from vi to vj as

a) GAM in view 3 A

b) overlapping model regions c) transfering one region to view 1

view 1

view 3

test image

Figure 18: The GAM transfer mechanism. a) The GAM to be transfered, which is originally matched from view 3 to the test im- age. b) The set Λ of overlapping model regions. c) One of the GAM regions (white) is transferred from view 3 to view 1, via the affine transformation of the nearest region of Λ (black). We now know the correspondence between view 1 and the test image.

follows:

  1. Determine the set of model regions Λ covering the same part of vi as the GAM 5. Remove from Λ all regions which are not part of a model track passing through vj. The model can now predict the location and shape of the GAM in vj.
  2. Compute the affine transformations mapping each re- gion of Λ from vi to vj (figure 18).
  3. Project each GAM region to vj via the affine transfor- mation of the nearest region of Λ. Thereby, we have established a region-to-region correspondence for the GAM between the test image and model view vj.

When transferring a GAM, it is like making a model- based prediction. The pairwise compatibility score (next subsection) evaluates to which degree the two GAMs are consistent with this prediction. This idea is essential: in this way the system exploits the relationships among the model views, in order to conclude more than what is possible from the mere collection of all GAMs. During modeling, the sys- tem learned the structure of the object in the form of region tracks, and it brings this insight to bear at recognition time by imposing order on the GAMs. Note that a GAM cannot be transferred if the model re- gions it covers in view vi are not visible in view vj (Λ is empty). In these cases, the compatibility score is not com- puted, and a neutral score is assigned instead. (^5) This is implemented by selecting the model regions which strongly overlap (more than 70%) with the image area covered by the union of the GAM’s regions.

12.2 Pairwise compatibility score

We evaluate here the geometric consistency of a pair of GAMs. Both GAMs are matched between the test image and a model view vi. If at least one GAM is incorrect, we wish this measure to be low. The compatibility score is based on the sidedness con- straint for triples of region matches, introduced in subsec- tion 7.1. We check the constraint for all triples formed by a region from a GAM and two regions from the other GAM. The percentage of triples respecting the constraint is our choice for the compatibility score of the GAM pair. The key idea is that if a region is picked from an incor- rect GAM, we expect most triples in which it takes part to violate the constraint. Note that no triple is composed of regions from a single GAM. This is important when exactly one of the GAMs is correct. In these cases, most triples based only on the correct GAM will respect the constraint, and would therefore falsely raise the score. The proposed score tolerates a substantial amount of non-rigid deformation. This preserves the system’s capa- bility of recognizing deformable objects. Moreover, it is insensitive to inaccurately localized region matches (sub- section 7.3). The score can penalize conflicting GAMs, but also highlight compatible pairs of GAMs. Although based on comparing region matches, it captures the compatibility of the GAMs as a whole.

12.3 Configuration score

The compatibility scores are computed for all pairs of GAMs, and combined here in a single configuration score. The compatibility scores range in [0, 1]. Based on a threshold t, we linearly transform the interval [0, t] to [− 1 , 0] and the interval [t, 1] to [0, 1]. The values then range in [− 1 , 1]. In all experiments, the threshold t = 0. 2 splits the original range into positive and negative parts. Positive scores now indicate that two GAMs are likely to belong to- gether, while negative ones indicate incompatibility. Let a configuration C be a subset of the available GAMs. What is the score of a configuration? It should be high when containing large, mutually compatible GAMs. It should be lower in the presence of incompatible ones. These two forces, pairwise corroboration and individual size, are combined into the following configuration score

S(C) =

P ∈C

Size(P ) +

Q∈C\P

(Comp(P, Q) · Size(Q))

(8)

with Size(P ) the number of regions in GAM P , and Comp(P, Q) ∈ [− 1 , 1] the pairwise compatibility scores. We are interested in the maximum value of S(C), and in the configuration for which it occurs. The maximum value

is used as recognition criterion, to decide whether the ob- ject is in the test image. As argued before, larger GAMs are trusted more (first summation term). The second term makes the contribution of each GAM heavily dependent on its compatibility with the others, especially the larger ones. A GAM whose negative compatibilities lower S will be left out. Smaller GAMs can also be part of the maximum con- figuration, depending on how compatible they are with the others. An important effect of the second summation term is that the total score can be much higher than the mere sum of the sizes of all correct GAMs. This reflects the key idea that compatible configurations are worth more because they more reliably indicate the presence of the object. This increases the separation between scores in positive and neg- ative cases, thus improving discriminative power. The GAMs not selected by the best configuration are deemed incorrect and discarded. This decision is based on a global analysis. Typically, several incorrect GAMs are de- tected thanks to their incompatibility with GAMs matched to other model views. Such a case couldn’t have been dis- covered by looking at the GAM’s model view in isolation. This is another benefit of our proposal for integrating mul- tiple model views. Finally, note how we treat a GAM as a unit: either we keeps all its matches, or none.

12.4 Maximization by Genetic Algorithm

We now need to find the configuration which maximizes function (8). Unfortunately, we can’t try them all out, as there are 2 n^ possible configurations of n GAMs. Moreover, a function in the form of (8) cannot be maximized by graph- cuts methods, as shown by [9]. We designed a Genetic Algorithm (GA) to find an ap- proximation of the solution. GAs offer an elegant and flex- ible framework for optimizing functions of any form. We represent a configuration by a binary indicator vector I of length n. If I(p) = 1, the pth GAM is in the configu- ration. The fitness function F (I) is defined equivalent to S(C). The GA follows several steps:

  1. Initialize. Create a random, uniformly distributed pop- ulation of binary n-vectors. The size of this population is l = ceil(

2 n)^2. Since this enforces

l to be an integer, it simplifies the later crossover.

  1. Fitness. Evaluate the fitness function F (I) for each individual. Stop if the best individual is identical as in the previous generation.
  2. Crossover. Consider the best

l individuals. De- rive the next generation by crossing over all pairs of them. Crossing over two individuals means keeping the identical bits and randomly choosing the different bits. This amounts to producing l −

l new individu- als, and copying the current best

l.

a

b

c

d

e

Figure 19: Recognition results (see text).

Bau

this paper (^) MS TVG

OM

TVG00 org

Legend MS02: Mikolajczyk and Schmid 2002 OM02: Obrdzalek and Matas 2002 Bau00: Baumberg 2000 TVG00: Tuytelaars and Van Gool 2000

b c

Figure 20: a) ROC plot. False-positives on the X-axis, detection rate on the Y-axis. b) close-up on one match of case b2. c) starting from the black region only, the method covers the magazine with 365 regions (3 shown).

percentage of cases

percentage of cases a) (^) b)

30% 30%

number of matches (score) number of matches (score) 200 30

Figure 21: Distribution of scores (percentage; bright = positive cases; dark = negative cases). a) for our method. b) for the tradi- tional matching of the regions of [OM02].

orientation (for clarity, only 3 regions are shown). The performance of the system was quantified by pro- cessing all pairs of model-object and test images, and count- ing the resulting number of region matches. The highest ROC curve in figure 20a depicts the detection rate versus false-positive rate, while varying the detection threshold from 0 to 200 matches. An object is detected if the num- ber of produced matches, summed over all its model views, exceeds this threshold. The method performs very well, and can achieve 98% detection with 6% false-positives. For comparison, we processed the dataset also with 4 state-of- the-art affine region extractors [1, 17, 20, 33], and described the regions with the SIFT [14] descriptor 9 , which has re- cently been demonstrated to perform best [18]. The match-

(^9) All region extractors and the SIFT descriptor are implementations of the respective authors. We are grateful to Jiri Matas, Krystian Mikolajczyk, Andrew Zisserman, Cordelia Schmid and David Lowe.

ing is carried out by the ’unambiguous nearest-neighbor’ approach 10 advocated in [1, 14]: a model region is matched to the region of the test image with the closest descriptor if it is closer than 0.7 times the distance to the second-closest de- scriptor (the threshold 0.7 has been empirically determined to optimize results). Each of the central curves illustrates the behavior of a different extractor. As can be seen, none is satisfactory, which demonstrates the higher level of chal- lenge posed by the dataset and therefore suggests that our approach can broaden the range of solvable Object Recog- nition cases. Closer inspection reveals the source of fail- ure: typically only very few, if any, correct matches are produced when the object is present, which in turn is due to the lack of repeatability and the inadequacy of a sim- ple matcher under such difficult conditions. The impor- tant improvement brought by the proposed method is best quantified by the difference between the highest curve and the central thick curve, representing the system we started from [33] (’TVG00 org’ in the plot).

Figure 21a shows a histogram of the number of final matches (recognition score) output by our system. The scores assigned when the object is in the test image (positive cases) are much higher than when the object is absent (nega- tive cases). This very good separation brings discriminative power and is due to the combination of two effects. First, the exploration process tends to implode in negative cases, because the expansion phases can do little and the contrac- tion phases eat up most of the matches. Conversely, the method fills the object with matches when it is present, as expansions can prosper on much fertile surface. As a com- parison with the traditional methods, the standard match- ing of regions of [20], based on the SIFT descriptor, yields two hardly separable distributions (figure 21b), and hence the unsatisfactory performance in the ROC plot. Similar histograms are produced based on the other feature extrac- tors [1, 17, 33].

As last comparison, we consider the recent system [23], which constructs a 3D model of each object prior to recog- nition. We asked the authors to process our dataset. As they reported, because of the low number of model views, their system couldn’t produce meaningful models, and therefore couldn’t perform recognition. Conversely, we have pro- cessed the dataset of [23] with our complete system (in- cluding GAMs and multi-view integration). It performed well, and achieved 95% detection rate for 6% false-positives (see [23] for more details).

(^10) We have also tried the standard approach, used in [17, 18, 20, 33], which simply matches two nearest-neighbors if their distance is below a threshold, but it produced slightly worse results.