
 
right images is reduced to 1-D (horizontal) search, 
simplifying and speeding up the matching 
procedure. 
In the specific case of building detection for 
security application like change detection or damage 
assessment, an accurate z coordinate (elevation) is 
often not necessary. An approximated value or 
measure relative to the neighbourhood suffices. In 
this case, the disparity is a valid cue for rough 
elevation estimation. 
To derive disparity values, corresponding left 
and right segments must be paired. Segment 
matching considers the following properties: 
2.3.1 Vertical Overlap 
The segments corresponding to a same object are 
displaced horizontally in the left and right images. 
However, due to differences in images originating 
from viewpoint changes, occlusion, shadow or noise, 
the correspondence may be partial or inexistent. We 
retain segments for matching if their vertical overlap 
has a minimum length of only 2 pixels, arguing that 
purely horizontal linear segments cannot receive a 
reliable disparity measure. 
Even though a larger overlap normally increases 
the confidence we have in a match, we have not used 
any confidence rating related to the vertical overlap 
as the length of segment is probably more pertinent 
than its vertical projection. Similarity in length is 
however a difficult concern as many segments 
appear differently in left and right images due to 
occlusion, perspective or edge detection conditions. 
2.3.2  Consistent Orientation 
The segments in the left and right images 
corresponding to one scene object often have a 
similar orientation (the same if the object has a 
constant elevation). This orientation has a possible 
range of 360°, including the sign of the gradient, 
because rising and falling edges correspond to a 
different grey-level neighbourhood and thus 
probably to a different underlying object. The 
segment orientation is estimated thanks to the 
segments points and is quite accurate, as the retained 
segments are straight. Perspective effects, different 
in images due to the viewpoint change, may cause 
some difference in segment orientation. Parameter 
orient_thres accounts for orientation flexibility in 
segment matching. A typical value for this 
parameter is 10°. 
No confidence factor has been associated to 
orientation. The segment pair is either rejected or 
accepted based on the orient_thres parameter. 
2.3.3 Valid Disparity 
Due to image capture, geometry constraints and 
scene continuity, the range of allowable disparities is 
restricted to a given interval. This interval may be 
limited to minimum (min_disp) and maximum 
(max_disp) values when looking for a specific 
elevation range. Until now, these values are entered 
by the operator, but are later supported by a 
histogram of disparities measured on the images. 
2.3.4 Matching Confidence 
Each segment pair satisfying the 2.3.1, 2.3.2 and 
2.3.3 conditions is given a confidence measure in 
order to filter pair candidates, especially for 
ambiguous associations (segment associated to 
several segment candidates). This measure could 
integrate a factor promoting vertical overlap or 
segment length similarity and a factor decreasing 
with orientation difference. So far, the confidence 
measure is based on the histogram of disparities of 
possible matching pairs of segments. 
For ‘left’ segments contained in a rectangular 
area of the left image and ‘right’ segments of the 
corresponding rectangular area of the right image, 
the matrix of segments association is filled in with 
the disparity of valid segment pairs. The histogram 
of disparities is computed and segment pairs are 
given as confidence the occurrence of the disparity 
as collected by the histogram. 
This simple method was designed to take the 
segment topology with no explicit topology 
description, as consistent disparities are often 
present in the structure of built up areas. It is also 
based on the principle that false disparities are likely 
to present non-typical values spread out in the 
histogram. 
2.4 Disparity Estimation 
As explained in the previous section, for rectified 
images, we look for the horizontal disparity between 
matching segments. As scene objects are not 
necessarily horizontal (with a constant elevation) 
disparity values might vary along the segment. 
Fortunately, as we paired linear segments, the 
disparity also varies linearly along the segments, 
corresponding to a linear variation of a linear object 
in the scene. 
Thanks to the linearity of searched scene objects 
and straightness of detected segments, we can use 
sub-pixel approximation of the segments and derive 
a sub-pixel estimation of the disparity. When the 
straightness constraint is sufficiently high, the 
BUILDING DETECTION IN IKONOS IMAGES FROM DISPARITY OF EDGES
319