06.02.2013 Views

PhD thesis - Institute for Computer Graphics and Vision - Graz ...

PhD thesis - Institute for Computer Graphics and Vision - Graz ...

PhD thesis - Institute for Computer Graphics and Vision - Graz ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

48 Chapter 4. GPU-based Depth Map Estimation using Plane Sweeping<br />

(a) CPU generated (b) GPU generated<br />

Figure 4.2: NCC images calculated on the CPU (left) <strong>and</strong> on the GPU (right) using<br />

integral images.. Darker pixels indicate smaller similarity values. The image computed on<br />

the GPU has significant deviations especially in the lower right regions.<br />

4.2.3 Sum of Absolute Differences <strong>and</strong> Variants<br />

The sum of absolute differences (SAD) is a widely used image similarity function because<br />

of its simple computation, the minimal precision requirements <strong>and</strong> its high per<strong>for</strong>mance:<br />

SAD = �<br />

|Xi − Yi|,<br />

i∈W<br />

where W denotes the aggregation window. It is not insensitive to illumination changes,<br />

which results in limited use of the SAD <strong>for</strong> real-world application.<br />

Lighting changes in the scene can be incorporated by subtracting the local mean from<br />

the original image values yielding a zero-mean sum of absolute differences (ZSAD):<br />

ZSAD = �<br />

|(Xi − ¯ X) − (Yi − ¯ Y )|.<br />

i∈W<br />

In contrast to the correlation coefficient the subtracted local means cannot be moved<br />

outside the absolute value bars. Hence a similar technique like the shifting theorem <strong>for</strong><br />

the correlation coefficient is not applicable <strong>and</strong> the ZSAD is not suitable <strong>for</strong> efficient<br />

computation. In a first step we replace the true zero-mean intensity values Xi − ¯ X resp.<br />

Yi − ¯ Y by the differences Xi − X σ i , where Xσ is a smoothed version of the image X. X σ<br />

is typically generated by box-filtering the original image. The same applies to Y . The

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!