Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
AN IMAGE PROCESSING APPARATUS AND METHOD
Document Type and Number:
WIPO Patent Application WO/2017/005275
Kind Code:
A1
Abstract:
The invention relates to an image processing apparatus (100) for selecting a plurality of depth information values (dbest,1-F) for a subset of currently processed fragments of a set of currently processed fragments of a currently processed digital image. The image processing apparatus (100) comprises a signal processing logic (101) configured to process the currently processed fragments of the set of currently processed fragments in parallel by computing for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates, wherein each depth information value candidate of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image, and to process the currently processed fragments of the subset of currently processed fragments in parallel by comparing for each currently processed fragment of the subset of currently processed fragments a depth information value candidate of the plurality of depth information value candidates with a previously selected depth information value (dprev), applying for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the result of the comparison between the depth information value candidate associated with the similarity measure and the previously selected depth information value (dprev), and determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate as the depth information value (dbest,1-F) for the currently processed fragment depending on the updated similarity measure of the depth information value candidate or the further processed similarity measure of the depth information value candidate.

Inventors:
KONIECZNY JACEK (DE)
DOMANSKI MAREK (PL)
SIAST JAKUB (PL)
LUCZAK ADAM (PL)
STANKIEWICZ OLGIERD (PL)
WEGNER KRZYSZTOF (PL)
Application Number:
PCT/EP2015/065192
Publication Date:
January 12, 2017
Filing Date:
July 03, 2015
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
HUAWEI TECH CO LTD (CN)
KONIECZNY JACEK (DE)
International Classes:
G06T7/00
Other References:
XUEFENG CHANG ET AL: "Real-Time Accurate Stereo Matching Using Modified Two-Pass Aggregation and Winner-Take-All Guided Dynamic Programming", 3D IMAGING, MODELING, PROCESSING, VISUALIZATION AND TRANSMISSION (3DIMPVT), 2011 INTERNATIONAL CONFERENCE ON, IEEE, 16 May 2011 (2011-05-16), pages 73 - 79, XP031896469, ISBN: 978-1-61284-429-9, DOI: 10.1109/3DIMPVT.2011.17
HAILONG FU: "Dense matching GPU implementation", MASTER'S THESIS, 1 January 2013 (2013-01-01), http://www.geoengine.uni-stuttgart.de/forum/masterprojects.html, pages 1 - 10, XP055260672, Retrieved from the Internet [retrieved on 20160323]
SIMON HERMANN ET AL: "Iterative Semi-Global Matching for Robust Driver Assistance Systems", 5 November 2012, COMPUTER VISION ACCV 2012, SPRINGER BERLIN HEIDELBERG, BERLIN, HEIDELBERG, PAGE(S) 465 - 478, ISBN: 978-3-642-37430-2, XP047027087
CHRISTIAN BANZ ET AL: "Real-time stereo vision system using semi-global matching disparity estimation: Architecture and FPGA-implementation", EMBEDDED COMPUTER SYSTEMS (SAMOS), 2010 INTERNATIONAL CONFERENCE ON, IEEE, PISCATAWAY, NJ, USA, 19 July 2010 (2010-07-19), pages 93 - 101, XP031806017, ISBN: 978-1-4244-7936-8
D. SCHARSTEIN; R. SZELISKI: "A taxonomy and evaluation of dense two-frame stereo correspondence algorithms", INTERNATIONAL JOURNAL OF COMPUTER VISION, vol. 47, 2002, pages 7 - 42
H. HIRSCHMUELLER; D. SCHARSTEIN: "Evaluation of Cost Functions for Stereo Matching", IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, 2007
Attorney, Agent or Firm:
KREUZ, Georg (DE)
Download PDF:
Claims:
CLAIMS:

1 . An image processing apparatus (100) for selecting a plurality of depth information values for a subset of currently processed fragments of a set of currently processed fragments of a currently processed digital image, the image processing apparatus (100) comprising:

a signal processing logic (101 ) configured to process the currently processed fragments of the set of currently processed fragments in parallel by

computing for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates (d,), wherein each depth information value candidate of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image; and process the currently processed fragments of the subset of currently processed fragments in parallel by

comparing for each currently processed fragment of the subset of currently processed fragments a depth information value candidate (d,) of the plurality of depth information value candidates with a previously selected depth information value (dprev); applying for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the comparison between the depth information value candidate associated with the similarity measure and the previously selected depth information value (dprev), and

determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate (d,) as the depth information value (dbest) for the currently processed fragment depending on the updated similarity measure of the depth information value candidate (d,) or the further processed similarity measure of the depth information value candidate (d,).

2. The image processing apparatus (100) of claim 1 , wherein the signal processing logic (101 ) is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function by applying for each currently processed fragment of the subset of currently processed fragments a weighting function to obtain the updated similarity measure.

3. The image processing apparatus (100) of claim 1 ,

wherein the signal processing logic (101 ) is configured to compute for each currently processed fragment of the set of currently processed fragments a plurality of similarity measures and to determine for each currently processed fragment of the set of currently processed fragments a preliminary depth information value {dbest) depending on the plurality of similarity measures; and

wherein the signal processing logic (101 ) is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function to obtain an updated similarity measure only for those depth information value candidates (di) of the plurality of depth information value candidates which are equal to the preliminary depth information value {dbest) or the previously selected depth information value (dprev), wherein the updating function is a weighting function.

4. The image processing apparatus (100) of anyone of the preceding claims, wherein each similarity measure of the plurality of similarity measures is a matching cost and each updated similarity measure of the plurality of updated similarity measures is an updated matching cost, and wherein the weighting function is configured

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching cost is increased, and/or

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching cost is maintained or increased to a smaller extent compared to the case where the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev).

5. The image processing apparatus (100) of claim 4, wherein the weighting function is configured

such that in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching cost is increased by adding a first matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a first matching cost penalty to obtain the updated matching cost, and/or

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching cost is maintained or increased by adding a second matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a second matching cost penalty to obtain the updated matching cost, wherein the second matching cost penalty is smaller than the first matching cost penalty.

6. The image processing apparatus (100) of any one of claims 1 to 5, wherein each similarity measure of the plurality of similarity measures is a matching probability and each updated similarity measure of the plurality of updated similarity measures is an updated matching probability, and wherein the weighting function is configured

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching probability is decreased, and/or such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching probability is maintained or decreased to a smaller extent compared to the case where the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev). 7. The image processing apparatus (100) of claim 6, wherein the weighting function is configured

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching probability is decreased by subtracting a first matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a first matching probability penalty to obtain the updated matching probability, and/or

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching probability is maintained or decreased by subtracting a second matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a second matching probability penalty to obtain the updated matching probability, wherein the first matching probability penalty is larger than the second matching probability penalty.

8. The image processing apparatus (100) of claim 1 ,

wherein the signal processing logic (101 ) is configured to compute for each currently processed fragment of the set of currently processed fragments a plurality of similarity measures and to obtain for each similarity measure a further processed similarity measure by applying a processing function to each similarity measure; and

wherein the signal processing logic (101 ) is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function to obtain an updated similarity measure only for those depth information value candidates (di) of the plurality of depth information value candidates which are equal to the previously selected depth information value (dprev), wherein the updating function is a weighting function; and

wherein the signal processing logic (101 ) is configured to determine for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate (d,) as the depth information value (dbest) for the currently processed fragment depending on the updated similarity measure of the depth information value candidate (d,) or the further processed similarity measure of the depth information value candidate (d,).

9. The image processing apparatus (100) of claim 8, wherein each similarity measure of the plurality of similarity measures is a matching cost and each further processed similarity measure of the plurality of further processed similarity measures is a further processed matching cost, and wherein the processing function is configured such that the matching cost is increased and wherein the weighting function is configured

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching cost is increased, and/or

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching cost is maintained or increased to a smaller extent compared to the case where the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev).

10. The image processing apparatus of claim 9, wherein the processing function is configured such that the matching cost is increased by adding a matching cost penalty to the matching cost to obtain the further processed matching cost or by multiplying the matching cost with a matching cost penalty to obtain the further processed matching cost and wherein the weighting function is configured

such that in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching cost is increased by adding a first matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a first matching cost penalty to obtain the updated matching cost, and/or

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching cost is maintained or increased by adding a second matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a second matching cost penalty to obtain the updated matching cost, wherein the second matching cost penalty is smaller than the first matching cost penalty.

1 1 . The image processing apparatus (100) of claim 8, wherein each similarity measure of the plurality of similarity measures is a matching probability and each updated similarity measure of the plurality of updated similarity measures is an updated matching probability, and wherein the processing function is configured such that the matching probability is decreased and wherein the weighting function is configured

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching probability is decreased, and/or such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching probability is maintained or decreased to a smaller extent compared to the case where the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev).

12. The image processing apparatus (100) of claim 1 1 , wherein the processing function is configured such that the matching probability is decreased by subtracting a matching probability penalty from the matching probability to obtain the updated matching probability or by dividing the matching probability by a matching probability penalty to obtain the updated matching probability and wherein the weighting function is configured such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value (dprev), the matching probability is decreased by subtracting a first matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a first matching probability penalty to obtain the updated matching probability, and/or

such that, in case the depth information value candidate (d,) associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value (dprev), the matching probability is maintained or decreased by subtracting a second matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a second matching probability penalty to obtain the updated matching probability, wherein the first matching probability penalty is larger than the second matching probability penalty.

13. The image processing apparatus (100) of any one of the preceding claims, wherein each similarity measure of the plurality of similarity measures is a matching cost and each updated similarity measure of the plurality of updated similarity measures is an updated matching cost, and wherein the signal processing logic (101 ) is configured to select for each fragment of the currently processed subsets of fragments the depth information value for the fragment from the depth information value candidates associated with the plurality of similarity measures computed for the fragment, which has the smallest weighted matching cost; or

wherein each similarity measure of the plurality of similarity measures is a matching probability and each weighted similarity measure of the plurality of weighted similarity measures is a weighted matching probability, and wherein the signal processing logic (101 ) is configured to select for each fragment of the currently processed subsets of fragments the depth information value for the fragment from the depth information value candidates associated with the plurality of similarity measures computed for the fragment, which has the largest weighted matching probability.

14. An image processing method (200) for selecting a plurality of depth information values for a subset of currently processed fragments of a set of currently processed fragments of a currently processed digital image, the image processing method comprising: processing (201 ) the currently processed fragments of the set of currently processed fragments in parallel by

computing (201 a) for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates, wherein each depth information value candidate of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image; and processing (203) the currently processed fragments of the subset of currently processed fragments in parallel by

comparing (203a) for each currently processed fragment of the subset of currently processed fragments a depth information value candidate of the plurality of depth information value candidates with a previously selected depth information value;

applying (203b) for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the comparison between the depth information value candidate associated with the similarity measure and the previously selected depth information value, and

determining (203c) for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate as the depth information value for the currently processed fragment depending on the updated similarity measure of the depth information value candidate or the further processed similarity measure of the depth information value candidate.

15. A computer program comprising a program code for performing the method of claim 14 when executed on a computer.

Description:
DESCRIPTION

An image processing apparatus and method TECHNICAL FIELD

The present invention relates to an image processing apparatus and method. In particular, the present invention relates to an image processing apparatus and method for selecting a depth information value for a fragment of a digital image.

BACKGROUND

In many known algorithms for estimating the disparity or depth (herein collectively referred to collectively as a depth information value) for a given fragment of a digital image, for instance a pixel or a group of pixels of a digital image, the depth information value is selected as the best one from a set of depth information values under consideration. Often the selection is done by minimization of a cost function C current (d) with respect to the depth information value d for a currently processed fragment. This cost function can be a purely local fragment matching error M current (d) like in the well-known "Winner-Takes-All (WTA) algorithm" described, for instance, in D. Scharstein & R. Szeliski "A taxonomy and evaluation of dense two-frame stereo correspondence algorithms", International Journal of Computer Vision 47, 7-42, 2002. In such algorithms the depth information value for each fragment is selected independently from depth information values of other fragments as

where arg in [ ] denotes the selection of the depth information value d for which the expression within the square brackets is minimal. The matching error M current (d) for the position (x,y) of the fragment in the image and the depth information value d associated with the fragment are usually computed using an error function, which determines the difference between the value of the image / in position (x,y) and the value of the reference image l re f (or images) in position (x+d,y). Usually, the term value of the image refers to color channels or a luminance value of the texture image, but may be also combined with a horizontal and vertical gradient. The commonly used error functions are the sum of absolute differences (SAD) given by the following equation (2) or the sum of squared differences (SSD) given by the following equation (3) (see, for instance, H. Hirschmueller and D. Scharstein, "Evaluation of Cost Functions for Stereo Matching", IEEE Conference on Computer Vision and Pattern Recognition, 2007):

M current (jT) = SAD (l(x, y), I ref (x + d, y†j = y) - I ref (x + d, y) \ (2)

^ current ^-^) SSD (l(x, y), I ref (x + d, y = (l(x, y) - I ref (.x + d, y)) (3)

In more advanced algorithms (like in Viterbi, Forward or Belief Propagation algorithms, also described in the above-referenced article by D. Scharstein & R. Szeliski) a more sophisticated cost function C current (d) is used for minimization and selection of the resulting depth information value. In such a case, C current (d) typically is a sum of M current (d) with a min-convolution of a transition cost function T with costs related to all considered depth information values in neighboring fragments, i.e. additionally includes a smoothing term. In Forward and Viterbi algorithms, the neighboring fragments are those that have already been processed to obtain their depth information value d, and, therefore, C current (d) for a given depth information value d accumulates the cost from all previously processed fragments (designated by the index "prev") considered for the depth information value estimation of the currently processed fragment (designated by the index "current"):

^ current (^0 ^preu C^O * ^ ^7> ^0 ^current ^.^) (4) min where M current (d) is the local fragment matching error for the depth information value d as described before, C prev (d) is the cost for a previously processed fragment for the depth information value d, T(q, d) is a two-argument transition-cost function (cost for changing from depth information value q to depth information value d) and the operator .

min denotes the min-convolution, defined as:

C P rev(d) * T(q, d) = mm(C vrev (q) + T(q, d)) (5) min Q wherein min q denotes the smallest value with respect to q and both q and d belong to the considered range of depth information values (which is typically set a priori according to the parameters of the visual scene under consideration, i.e. object distance to the cameras). An exemplary transition cost function known from literature is the Potts model:

The cost for the current fragment ^current is calculated for all depth information values d considered for the depth information value estimation of the currently processed fragment.

In Belief Propagation algorithms, the final selection of depth information values for fragments can be done after multiple iterations of the algorithm. In Forward algorithms the decision on the selection of the depth information value is done on-the-fly on the basis of the accumulated cost d best = arg m [C current (d)].

In Viterbi algorithms, the final selection of depth information values is postponed to an additional pass of back-tracking, executed when all cost values are known.

The currently known algorithms, that provide high fidelity of the estimated depth information values, in particular disparity or depth values, are computationally complex and are not suitable for real-time processing, for instance, on mobile devices. On the other hand, currently known simple depth information value estimation algorithms, that can estimate depth information values in real-time, for instance, on mobile devices, provide limited fidelity of the results obtained.

Thus, there is a need for an improved image processing apparatus and method, in particular an image processing apparatus and method providing high fidelity of the estimated depth information values in a computationally efficient manner.

SUMMARY

It is an objective of the invention to provide an improved image processing apparatus and method, in particular an image processing apparatus and method providing high fidelity of the estimated depth information values in a computationally efficient manner.

This objective is achieved by the subject matter of the independent claims. Further implementation forms are provided in the dependent claims, the description and the figures. According to a first aspect the invention relates to an image processing apparatus for selecting a plurality of depth information values for a subset or layer of currently processed fragments of a set or group of currently processed fragments of a currently processed digital image. The image processing apparatus comprises a signal processing logic configured to process the currently processed fragments of the set of currently processed fragments in parallel by computing for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates, wherein each depth information value candidate of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image, and to process the currently processed fragments of the subset of currently processed fragments in parallel by comparing for each currently processed fragment of the subset of currently processed fragments a depth information value candidate of the plurality of depth information value candidates with a previously selected depth information value, applying for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the result of the comparison between the depth information value candidate associated with the similarity measure and the previously selected depth information value, and determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate as the depth information value for the currently processed fragment depending on the updated similarity measure of the depth information value candidate or the further processed similarity measure of the depth information value candidate. The signal processing logic can be a processor, e.g. a multi-purpose processor or a digital signal processor (DSP), an ASIC, a FPGA, CPU, GPU and the like. The depth information value can be, for example, a depth value, a disparity value, or an index or label representing a depth value or a disparity value. The fragment can be, for example, a pixel or a group of pixels of the current digital image and the digital reference image.

In a first possible implementation form of the first aspect of the invention as such the signal processing logic is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function by applying for each currently processed fragment of the subset of currently processed fragments a weighting function on the calculated similarity measure to obtain the updated similarity measure. In a second possible implementation form of the first aspect of the invention as such the signal processing logic is configured to compute for each currently processed fragment of the set of currently processed fragments a plurality of similarity measures and to determine for each currently processed fragment of the set of currently processed fragments a preliminary depth information value depending on the plurality of similarity measures, and the signal processing logic is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function to obtain an updated similarity measure only for those depth information value candidates of the plurality of depth information value candidates which are equal to the preliminary depth information value or the previously selected depth information value, wherein the updating function is a weighting function.

In a third possible implementation form of the first aspect of the invention as such the first or second implementation form thereof each similarity measure of the plurality of similarity measures is a matching cost and each updated similarity measure of the plurality of updated similarity measures is an updated matching cost, wherein the weighting function is configured such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching cost is increased, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching cost is maintained or increased to a smaller extent compared to the case where the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value.

In a fourth possible implementation form of the third implementation form of the first aspect of the invention the weighting function is configured such that in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching cost is increased by adding a first matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a first matching cost penalty to obtain the updated matching cost, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching cost is maintained or increased by adding a second matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a second matching cost penalty to obtain the updated matching cost, wherein the second matching cost penalty is smaller than the first matching cost penalty.

In a fifth possible implementation form of the first aspect of the invention as such or any one of the first to fourth implementation form thereof each similarity measure of the plurality of similarity measures is a matching probability and each updated similarity measure of the plurality of updated similarity measures is an updated matching

probability, wherein the weighting function is configured such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching probability is decreased, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching probability is maintained or decreased to a smaller extent compared to the case where the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value.

In a sixth possible implementation form of the fifth implementation form of the first aspect of the invention the weighting function is configured such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching probability is decreased by subtracting a first matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a first matching probability penalty to obtain the updated matching probability, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching probability is maintained or decreased by subtracting a second matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a second matching probability penalty to obtain the updated matching probability, wherein the first matching probability penalty is larger than the second matching probability penalty.

In a seventh possible implementation form of the first aspect of the invention as such the signal processing logic is configured to compute for each currently processed fragment of the set of currently processed fragments a plurality of similarity measures and to obtain for each similarity measure a further processed similarity measure by applying a processing function to each similarity measure, the signal processing logic is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function to obtain an updated similarity measure only for those depth information value candidates of the plurality of depth information value candidates which are equal to the previously selected depth information value, wherein the updating function is a weighting function, and the signal processing logic is configured to determine for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate as the depth information value for the currently processed fragment depending on the updated similarity measure of the depth information value candidate or the further processed similarity measure of the depth information value candidate.

In an eighth possible implementation form of the seventh implementation form of the first aspect of the invention as such each similarity measure of the plurality of similarity measures is a matching cost and each further processed similarity measure of the plurality of further processed similarity measures is a further processed matching cost, wherein the processing function is configured such that the matching cost is increased and wherein the weighting function is configured such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching cost is increased, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching cost is maintained or increased to a smaller extent compared to the case where the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value.

In a ninth possible implementation form of the eighth implementation form of the first aspect of the invention as such the processing function is configured such that the matching cost is increased by adding a matching cost penalty to the matching cost to obtain the further processed matching cost or by multiplying the matching cost with a matching cost penalty to obtain the further processed matching cost, wherein the weighting function is configured such that in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching cost is increased by adding a first matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a first matching cost penalty to obtain the updated matching cost, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching cost is maintained or increased by adding a second matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a second matching cost penalty to obtain the updated matching cost, wherein the second matching cost penalty is smaller than the first matching cost penalty. In a tenth possible implementation form of the seventh implementation form of the first aspect of the invention as such each similarity measure of the plurality of similarity measures is a matching probability and each updated similarity measure of the plurality of updated similarity measures is an updated matching probability, wherein the processing function is configured such that the matching probability is decreased and wherein the weighting function is configured such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching probability is decreased, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching probability is maintained or decreased to a smaller extent compared to the case where the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value. In an eleventh possible implementation form of the tenth implementation form of the first aspect of the invention as such the processing function is configured such that the matching probability is decreased by subtracting a matching probability penalty from the matching probability to obtain the updated matching probability or by dividing the matching probability by a matching probability penalty to obtain the updated matching probability, wherein the weighting function is configured such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is different from the previously selected depth information value, the matching probability is decreased by subtracting a first matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a first matching probability penalty to obtain the updated matching probability, and/or such that, in case the depth information value candidate associated with a similarity measure of the plurality of similarity measures is identical to the previously selected depth information value, the matching probability is maintained or decreased by subtracting a second matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a second matching probability penalty to obtain the updated matching probability, wherein the first matching probability penalty is larger than the second matching probability penalty.

In a twelfth possible implementation form of the first aspect of the invention as such or any one of the first to eleventh implementation form thereof each similarity measure of the plurality of similarity measures is a matching cost and each updated similarity measure of the plurality of updated similarity measures is an updated matching cost, wherein the signal processing logic is configured to select for each fragment of the currently processed subsets of fragments the depth information value for the fragment from the depth information value candidates associated with the plurality of similarity measures computed for the fragment, which has the smallest weighted matching cost, or each similarity measure of the plurality of similarity measures is a matching probability and each weighted similarity measure of the plurality of weighted similarity measures is a weighted matching probability, wherein the signal processing logic is configured to select for each fragment of the currently processed subsets of fragments the depth information value for the fragment from the depth information value candidates associated with the plurality of similarity measures computed for the fragment, which has the largest weighted matching probability.

In a thirteenth possible implementation form of the first aspect of the invention as such or any one of the first to twelfth implementation form thereof the signal processing logic is configured to compare for each currently processed fragment of the subset of currently processed fragments the depth information value candidate of the plurality of depth information value candidates with depth information values within a range around the previously selected depth information value, and apply for each currently processed fragment of the subset of currently processed fragments the updating function to obtain an updated similarity measure dependent on whether any of the depth information values within the range around the previously selected depth information value is identical to the depth information value candidate associated with each similarity measure. According to a second aspect the invention relates to an image processing method for selecting a plurality of depth information values for a subset or layer of currently processed fragments of a set or group of currently processed fragments of a currently processed digital image. The image processing method comprises the steps of:

processing the currently processed fragments of the set of currently processed fragments in parallel by computing for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates, wherein each depth information value candidate of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image; and processing the currently processed fragments of the subset of currently processed fragments in parallel by comparing for each currently processed fragment of the subset of currently processed fragments a depth information value candidate of the plurality of depth information value candidates with a previously selected depth information value, applying for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the comparison between the depth information value candidate associated with the similarity measure and the previously selected depth information value, and determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate as the depth information value for the currently processed fragment depending on the updated similarity measure of the depth information value candidate or the further processed similarity measure of the depth information value candidate.

The image processing method according to the second aspect of the invention can be performed by the image processing apparatus according to the first aspect of the invention. Further features of the image processing method according to the second aspect of the invention result directly from the functionality of the image processing apparatus according to the first aspect of the invention and its different implementation forms.

According to a third aspect the invention relates to a computer program comprising program code for performing the method according to the second aspect of the invention when executed on a computer.

The invention can be implemented in hardware and/or software.

BRIEF DESCRIPTION OF THE DRAWINGS Further embodiments of the invention will be described with respect to the following figures, in which:

Fig. 1 shows a schematic diagram of an image processing apparatus according to an embodiment;

Fig. 2 shows a schematic diagram of an image processing method according to an embodiment; Fig. 3 shows a schematic diagram illustrating a parallel processing algorithm implemented in an image processing apparatus according to an embodiment;

Fig. 4 shows a flow diagram of an algorithm implemented in an image processing apparatus according to an embodiment;

Fig. 5 shows a flow diagram of an algorithm implemented in an image processing apparatus according to an embodiment; and

Fig. 6 shows a flow diagram of an algorithm implemented in an image processing apparatus according to an embodiment.

In the various figures, identical reference signs will be used for identical or at least functionally equivalent features.

DETAILED DESCRIPTION OF EMBODIMENTS

In the following detailed description, reference is made to the accompanying drawings, which form a part of the disclosure, and in which are shown, by way of illustration, specific aspects in which the disclosure may be practiced. It is understood that other aspects may be utilized and structural or logical changes may be made without departing from the scope of the present disclosure. The following detailed description, therefore, is not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims. It is understood that a disclosure in connection with a described method may also hold true for a corresponding device or system configured to perform the method and vice versa. For example, if a specific method step is described, a corresponding device or apparatus may include a unit to perform the described method step, even if such unit is not explicitly described or illustrated in the figures. Further, it is understood that the features of the various exemplary aspects described herein may be combined with each other, unless specifically noted otherwise.

Figure 1 shows a schematic diagram of an image processing apparatus 100 according to an embodiment. The image processing apparatus 100 is configured to select a plurality of depth information values dbest,i-F for a subset or layer of currently processed fragments of a set or group of currently processed fragments of a currently processed digital image. The depth information values dbest,i-F can be, for example, depth values, disparity values, or indices or labels representing depth values or disparity values. The currently processed fragments can be, for example, currently processed pixels or currently processed groups of pixels of a digital image.

The image processing apparatus 100 comprises a signal processing logic 101 . The signal processing logic 101 is configured to process the currently processed fragments of the set of currently processed fragments in parallel by computing for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates, wherein each depth information value candidate d, of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image, and to process the currently processed fragments of the subset of currently processed fragments in parallel by comparing for each currently processed fragment of the subset of currently processed fragments a depth information value candidate d, of the plurality of depth information value candidates with a previously selected depth information value d pre v, applying for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the result of the comparison between the depth information value candidate d, associated with the similarity measure and the previously selected depth information value d pre v, and determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate d, as the depth information value for the currently processed fragment dbest depending on the updated similarity measure of the depth information value candidate d, or the further processed similarity measure of the depth information value candidate d,.

The signal processing logic 101 can be a processor, e.g. a multi-purpose processor or a digital signal processor (DSP), an ASIC, a FPGA, CPU, GPU and the like. As will be described in more detail further below, the similarity measure can be, for example, a matching cost or a matching probability, wherein the matching cost is a measure indicating a difference between a currently processed fragment and the reference fragment and increases with increasing difference and wherein the matching probability is a measure indicating a likelihood/probability that a currently processed fragment and the reference fragment match and decreases with increasing difference.

In an embodiment, the image processing apparatus 100 comprises a memory 103 for storing the previously selected depth information value d pre v.

Figure 2 shows a schematic diagram of an image processing method 200 for selecting a plurality (e.g. F) of depth information values dbest,i-F for a subset or layer of currently processed fragments of a set or group of currently processed fragments of a currently processed digital image. The image processing method comprises the following steps. As part of a step 201 of processing the currently processed fragments of the set of currently processed fragments in parallel a step 201 a of computing for each currently processed fragment a plurality of similarity measures based on a plurality of depth information value candidates, wherein each depth information value candidate d, of the plurality of depth information value candidates defines a reference fragment candidate of a digital reference image. As part of a step 203 of processing the currently processed fragments of the subset of currently processed fragments in parallel a step 203a of comparing for each currently processed fragment of the subset of currently processed fragments a depth information value candidate d, of the plurality of depth information value candidates with a previously selected depth information value d pre v, a step 203b of applying for each currently processed fragment of the subset of currently processed fragments an updating function to obtain an updated similarity measure based on the similarity measure or a further processed similarity measure and the comparison between the depth information value candidate d, associated with the similarity measure and the previously selected depth information value d pre v, and a step 203c of determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate d, as the depth information value dbest for the currently processed fragment depending on the updated similarity measure of the depth information value candidate d, or the further processed similarity measure of the depth information value candidate d,. In the following, further implementation forms and embodiments of the image processing apparatus 100 and the image processing method 200 are described.

In an embodiment, the signal processing logic 101 is configured to apply for each currently processed fragment of the subset of currently processed fragments the updating function by applying for each currently processed fragment of the subset of currently processed fragments a weighting function on the calculated similarity measure to obtain the updated similarity measure.

In an embodiment, the similarity measure is a matching cost and the updated similarity measure is an updated matching cost. More specifically, the updated matching cost C current (d) for a given image fragment and for a depth information value candidate d is defined as a sum of image fragment matching costs M current (d) and a constant penalty value, conditionally, if the given depth information value candidate is different from the depth information value d prev selected for a previously processed fragment, i.e.:

_ 0 if d dp rev

^current W ~ M current {d) + [ penalty jf d≠

In an embodiment, the matching cost M current (d) can be, for instance, the sum of absolute differences (SAD) given by the above equation (2) or the sum of squared differences (SSD) given by the above equation (3).

In an embodiment, the penalty value defined in above equation (7) can be determined "experimentally". As a rule of thumb, its value should be comparable to the level of noise present in the similarity measure, for instance the matching cost M current (d), for the processed images.

Figure 3 shows a schematic diagram illustrating a parallel processing algorithm implemented in an image processing apparatus according to an embodiment, for instance the image processing apparatus 100 shown in figure 1. More specifically, figure 3 shows a portion of a currently processed digital image 300 comprising a first exemplary set or group 301 of currently processed fragments and a second exemplary set or group 303 of currently processed fragments. In the exemplary embodiment shown in figure 3 the fragments correspond to pixels of the currently processed digital image 300, wherein each pixel is defined by its x and y coordinates, such as the pixel at coordinates (0,0) in the upper left hand corner of the digital image 300. The first exemplary set or group 301 of currently processed fragments/pixels comprises three exemplary subsets or layers of currently processed fragments/pixels, namely the subsets 301 a, 301 b and 301 c. Likewise, the second exemplary set or group 303 of currently processed fragments/pixels comprises three exemplary subsets or layers of currently processed fragments/pixels, namely the subsets 303a, 303b and 303c.

In an embodiment, the signal processing logic 101 of the image processing apparatus 100 shown in figure 1 is configured to process the fragments of the first set or group 301 in parallel by computing for each fragment a plurality of matching costs M current (di) on the basis of a plurality of depth information value candidates d,. In an embodiment, these matching costs M current (di) can be stored in the memory 103 of the image processing apparatus. In an embodiment, the signal processing logic can be configured to process at the same time also the fragments of the second set or group 303 in parallel by computing for each fragment a plurality of matching costs M current (di) on the basis of a plurality of depth information value candidates d,.

Having processed the fragments of the first set or group 301 (and possibly of the second set or group 303) in parallel by computing a plurality of matching costs for each fragment, in an embodiment the signal processing logic 101 is configured to process the fragments of the subset or layer 301 a of the first set or group 301 in parallel by comparing for each fragment of the subset or layer 301 a, for instance, the exemplary pixels (0,0), (0, 1 ) and (0,2) shown in figure 3, the depth information value candidate d, associated with each matching cost M current (di) to the previously selected depth information value d prev . For example, for each depth information value candidate d, of each fragment of the subset or layer 301 a the cost function C current (d ) defined in equation (7) above is applied to the matching cost M current (d ) to obtain the updated matching cost on the basis of the comparison between d t and d prev . As the person skilled in the art will appreciate, the cost function C current (d ) defined in equation (7) above penalizes depth information value candidates d, other than d vrev . In an embodiment, the signal processing logic 101 is further configured to select for each fragment of the subset or layer 301 a, for instance, the exemplary pixels (0,0), (0,1 ) and (0,2) shown in figure 3, on the basis of the updated matching cost, i.e. the cost function Ccurrent id-i), the depth information value candidate d, that has a minimal updated matching cost as the depth information value d best , i.e. d best .

In an embodiment, the signal processing logic 101 is configured to store the depth information value d best selected for the fragments of the subset or layer 301 a in the memory 103, before proceeding with the subset or layer 301 b of fragments in the same way. In an embodiment, the signal processing logic 101 is configured to use one or more of the depth information value d best selected for the fragments of the subset or layer 301 a as the previously selected depth information value(s) d prev for processing the fragments of the subset or layer 301 b in parallel (as well as the fragments of the subset or layer 301 c in parallel).

In an embodiment, the signal processing logic 101 is configured to process the fragments of the first set or group 301 in parallel by computing for the fragments of the set or group 301 of currently processed fragments a plurality of matching costs M current {d ) and by determining for each fragment a preliminary depth information value d best depending on the plurality of matching costs M current {d ), i.e. without "penalization" by the cost function C C urrent ( i). In this embodiment, the preliminary depth information value d best is given by best - I·" 1 this embodiment, the signal processing logic 101 is further configured to process the fragments, for instance, of the subset or layer 301 a or the subset or layer 301 b of the first set or group 301 in parallel by applying for each currently processed fragment of the subset or layer 301 a of currently processed fragments an updating function in the form of the cost function C current (di) on the matching costs M current (di) to obtain an updated matching cost C current (di) only for those depth information value candidates of the plurality of depth information value candidates d t which are equal to the preliminary depth information value d best or a set of P previously selected depth information value(s) d prev k . On the basis of the updated matching costs C current (di) the signal processing logic 101 is configured to select the depth information value candidate d, as the depth information value d best that has a minimal updated matching cost: d-best d current s-best )< As the person skilled in the art will appreciate, using the penalizing cost function defined in equation (7) above results in an embodiment, where the computations to be performed during the parallel processing of the layers are very simple, namely

^current {β-best ) = ^current {β-best ) + Penalty,

In an embodiment, the signal processing logic 101 to process the fragments of the first set or group 301 in parallel by computing for each currently processed fragment of the set or group 301 of currently processed fragments a plurality of matching costs M current (di) and by applying a processing function to each matching cos\ M current (d ) to obtain for each matching cos\ M current (d ) a further processed matching cost C current (d ). In an embodiment, the processing function is configured to add the penalty value defined in equation (7) above to any matching cos\ M current (d ) irrespective of the depth information value candidate d,. In this embodiment the further processed matching costs C current (d ) can be used to compute a preliminary depth information value d best for each currently processed fragment of the set or group 301 of currently processed fragments. In this embodiment, the signal processing logic 101 is further configured to process the fragments, for instance, of the subset or layer 301 a or the subset or layer 301 b of the first set or group 301 in parallel by applying for each currently processed fragment of the subset of currently processed fragments, for instance, the fragments of the subset or layer 301 a or the subset or layer 301 b of the first set or group 301 , an updating function in the form of the cost function C current d ) on the matching costs M current (d ) to obtain an updated matching cost C current (d ) only for those depth information value candidates d, of the plurality of depth information value candidates, which are equal to the previously selected depth information values d prev k , and by determining for each currently processed fragment of the subset of currently processed fragments whether to select the depth information value candidate d, as the depth information value d best for the currently processed fragment depending on the updated matching cost C current (d ) of the depth information value candidate d, or the further processed matching cost C current (d ) of the depth information value candidate d,. In an embodiment, the signal processing logic 101 is configured to select the depth information value d best on the basis of the following equation: d-best d As the person skilled in the art will appreciate, using the penalizing cost function defined in equation (7) above results in an embodiment, where the computations to be performed during the parallel processing of the layers are very simple, namely:

Figure 4 shows a flow diagram of an algorithm, which can be implemented in an image processing apparatus according to an embodiment, for instance the image processing apparatus 100 shown in figure 1 , for determining the depth information value dbest for a single fragment of a subset or layer of fragments in a computationally efficient manner.

In an embodiment, a set of N eligible depth information value candidates

die{d 0 , d , ... , άΜ- is considered, wherein i is the respective depth information value candidate index with i = 0, N-1 . After the initialization steps 401 and 403 in figure 4, for each eligible depth information value candidate d t (step 407 of figure 4), the updated matching cost C current (d ) is calculated (using a similarity measure in the form of a local fragment matching cost M current (d) ) and assigned to the cost variable (step 407 of figure 4). The depth information value candidate d t is compared to the previously selected depth information value d pre v (step 409 of figure 4). If the depth information value candidate d, and the previously selected depth information value d pre v are equal, the value of the cost variable, i.e. the cost of the depth information value candidate d,, is directly compared to the value of the costbest variable, which represents the best or lowest cost so far determined for the currently processed fragment with regard to the previously processed depth information value candidates. If the depth information value candidate d, and the previously selected depth information value d pre v are not equal, a penalty value is added to the value of the cost variable to obtain a penalized cost value, and the penalized cost value is assigned to the cost variable (step 41 1 of figure 4) and compared to the value of the costbest variable. If the value of the cost variable is smaller or equal to the value of the costbest variable (step 413 of figure 4), the current depth information value candidate d, is assigned to the variable dbest, which represents the best depth information value so far determined for the current fragment with regard to the previously processed depth information value candidates, and the value of the cost variable is assigned to the costbest variable (step 415 of figure 4). If the value of the cost variable is larger than the value of the costbest variable, the variables dbest and cos are maintained, i.e. not changed or updated. Afterwards the depth information value candidate index i is incremented (step 417 of figure 4) and the above steps are performed for the new current depth information value candidate index i. In an embodiment, for the first iteration, i.e. for i=0, for example, the comparison between the values of the cost variable and the costbest variable may be omitted, and the value of the costbest variable may be just set to the cost value calculated for the depth information value candidate do, and the value of the dbest variable may be just set to the depth information value candidate do. In other words, in the search loop 400a as shown in Fig. 4, the smallest weighted matching cost C current (di) is found among all depth information value candidates d, and written to the cost best variable. The corresponding best depth information value d is stored in d best and fed to the output.

Once all depth information value candidates have been processed within the loop 400a, the final dbest is outputted as the depth information value (step 419 of figure 4).

Figure 5 shows a flow diagram of a further algorithm, which can be implemented in an image processing apparatus according to an embodiment, for instance the image processing apparatus 100 shown in figure 1 , for determining the depth information value dbest for a single fragment of a subset or layer of fragments in a computationally efficient manner. In the algorithm described in the context of figure 4 all eligible depth information value candidates are considered equally and thus are processed without any specific order (e.g. according to their index i from 0 to N-1 ).

In the algorithm shown in figure 5 the search for the depth information value is reordered in a portion 500a such that the previously selected depth information value d prev is processed first (step 501 of figure 5). Its updated matching cost C current (d prev ) is calculated, which is equal to its matching cost M current (d prev ), because no penalty is added to the matching cost related to the previous depth information value d prev (step 501 of figure 5). Step 503 of figure 5 defines an update condition in that in case the calculated matching cost M current (d prev ) is less than (or less or equal to) the penalty value, then the depth information value search loop 500b is skipped. In such a case, d prev (assigned also to d best ) is immediately fed to the output (step 521 of figure 5). Such a skipping of the depth information value search loop 500b allows for substantial reduction of computational complexity. As the loop 500b is identical to the loop 400a of the algorithm shown in figure 4 reference is made to the above detailed description of the steps 403 to 41 1 of loop 400a, which correspond to the steps 505 to 513 of figure 5. As the person skilled in the art will appreciate, in the algorithms shown in figures 4 and 5 only a single previously selected depth information value d prev is used for calculating the updated similarity measure for a depth information value candidate. However, as already described above, the present invention also covers embodiments, where a plurality of previously selected depth information values are considered and used for calculating the updated similarity measure. For instance, in embodiments of the invention the updated similarity measure can be calculated using a set of P previously selected depth

information values d preVk as follows:

0 if d in {d .prev ^prev 2 ' ^prev^' ... , d .prev p }

C, current (d) = M t current (9) penalty otherwise

In an embodiment the set of P previously selected depth information values d preVk is extended by depth information values that are similar, but not necessarily identical to previously selected depth information values selected for a previously processed fragment or fragments. For instance, in the case of the embodiment shown in figure 4, where only a single previously selected depth information value d prev is considered, the set of P previously selected depth information values can be extended to:

where the values m and n can be predefined or adapted.

Figure 6 shows a flow diagram of a further algorithm, which can be implemented in an image processing apparatus according to an embodiment, for instance the image processing apparatus 100 shown in figure 1 , for determining the depth information value dbest for a single fragment of a subset or layer of fragments in a computationally efficient manner. The embodiment shown in figure 6 is a variant of the embodiment shown in figure 5 for an extended set of previously selected depth information values d preVk . In such an embodiment, the exemplary set of P previously selected depth information values {d preVl , d preV2 , d preV 3 , ... , d preVp ] from the previously processed fragments is considered first (see loop 600a of figure 6). The best d preVk which has the minimal updated matching cost C current (d prev ^j is found (see steps 601 -613 of figure 6) and if its updated matching cost is less than (or less than or equal to) the penalty value then the further depth information value search loop 600b is skipped as a result of the skipping condition defined in step 615 of figure 6.

In case the minimal updated matching cost is not less than (or less than or equal to) the penalty value the loop 600b of figure 6 will be executed, by processing the set of P previously selected depth information values {d prev , d prev , d prev ^, ... , d preVp ] from the previously processed fragments in a predetermined order. The first depth information value d preVk which has a updated matching cost C current (d prei7fc ), which is less than (or less than or equal to) the penalty value, is output as dbest for the current fragment, and the further depth information search is skipped. If none of the P previously selected depth information values d preVk has an updated matching cost, which is less than (or less than or equal to) the penalty value, the loop 600b is used to determine dbest for the currently processed fragment. As the loop 600b is essentially identical to the loop 400a of the embodiment shown in figure 4 reference is made to the above detailed description of the steps 403 to 41 1 of loop 400a, which correspond to the steps 617 to 631 of figure 6.

In several of the above described embodiments, the updating function is a weighting function, the similarity measure is a matching cost and the updated similarity measure produced by the weighting function is an updated matching cost, where a penalty is added to the matching cost and the depth information value from the depth information value candidates is selected, which has the smallest updated matching cost.

In an embodiment, the updating function is a weighting function, the similarity measure is a matching cost and the updated similarity measure is an updated matching cost, wherein the weighting function is configured such that, in case the depth information value candidate is identical to the previously selected depth information value, the matching cost is maintained or only increased to a smaller extent compared to the case where the depth information value candidate is different from the previously selected depth information value.

In an embodiment of the invention, the updating function is a weighting function and the weighting function is configured such that, in case the depth information value candidate is different from the previously selected depth information value, the matching cost is increased by multiplying the matching cost with a first matching cost penalty to obtain the updated matching cost, and/or such that, in case the depth information value candidate is identical to the previously selected depth information value, the matching cost is maintained or increased by adding a second matching cost penalty to the matching cost to obtain the updated matching cost, or by multiplying the matching cost with a second matching cost penalty to obtain the updated matching cost, wherein the second matching cost penalty is smaller than the first matching cost penalty.

In an embodiment of the invention, the updating function is a weighting function, the similarity measure is a matching probability and the updated similarity measure is a updated matching probability, wherein the weighting function is configured such that, in case the depth information value candidate is different from the previously selected depth information value, the matching probability is decreased, and/or such that, in case the depth information value candidate is identical to the previously selected depth information value, the matching probability is maintained or only decreased to a smaller extent compared to the case where the depth information value candidate is different from the previously selected depth information value. In an embodiment, the weighting function is configured such that, in case the depth information value candidate is different from the previously selected depth information value, the matching probability is decreased by subtracting a first matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a first matching probability penalty to obtain the updated matching probability, and/or such that, in case the depth information value candidate is identical to the previously selected depth information value, the matching probability is maintained or decreased by subtracting a second matching probability penalty from the matching probability to obtain the updated matching probability, or by dividing the matching probability by a second matching probability penalty to obtain the updated matching probability, wherein the first matching probability penalty is larger than the second matching probability penalty.

In an embodiment, the updating function is a weighting function, the similarity measure is a matching probability, and the signal processing logic 103 is configured to select the depth information value from the depth information value candidates of the set of depth information value candidates, which has the largest updated matching probability.

In an embodiment, the updating function is a weighting function, the similarity measure is a matching probability based on the Bhattacharayya coefficient, which indicates the probability of two distributions being similar and which is known to the person skilled in the art. In an alternative embodiment, the similarity measure is a matching probability, which is derived from a matching cost by defining the matching probability to be proportional, for instance, to exp(-"matching cost") or a similar equation. In an embodiment, the matching probability is normalized within a range from [0, 1 ].

Embodiments of the invention provide, amongst others, for the following advantages.

Embodiments of the invention allow the reuse of computations used for determining the matching costs M current (di). Embodiments of the invention allow for a parallelization in both processing directions, i.e. horizontally and vertically. The synergy of parallelization in both directions allows for even more efficient processing, e.g. calculation of more pixel subcomponents of matching costs (SAD/SSD) can be reused.

An example of a practical application of an embodiment is a parallel implementation of the algorithm shown in figure 3, wherein 2x10 (horizontal * vertical) = 20 pixels are processed in parallel. The matching costs are calculated in parallel with reuse of pixel

subcomponents, and thus only (5+2-1 )x(5+10-2)=84 pixel subcomponents of the block matching sums need to be calculated (in comparison to 500 pixel subcomponents without parallelization). Therefore, in the case of the implementation on Xilinx ARTIX-7 FPGA, embodiments of the invention allow to attain a reduction of about 50% of the used hardware resources.

Embodiments of the invention may be implemented in a computer program for running on a computer system, at least including code portions for performing steps of a method according to the invention when run on a programmable apparatus, such as a computer system or enabling a programmable apparatus to perform functions of a device or system according to the invention.

A computer program is a list of instructions such as a particular application program and/or an operating system. The computer program may for instance include one or more of: a subroutine, a function, a procedure, an object method, an object implementation, an executable application, an applet, a servlet, a source code, an object code, a shared library/dynamic load library and/or other sequence of instructions designed for execution on a computer system.

The computer program may be stored internally on computer readable storage medium or transmitted to the computer system via a computer readable transmission medium. All or some of the computer program may be provided on transitory or non-transitory computer readable media permanently, removably or remotely coupled to an information processing system. The computer readable media may include, for example and without limitation, any number of the following: magnetic storage media including disk and tape storage media; optical storage media such as compact disk media (e.g., CD-ROM, CD-R, etc.) and digital video disk storage media; nonvolatile memory storage media including semiconductor-based memory units such as FLASH memory, EEPROM, EPROM, ROM; ferromagnetic digital memories; MRAM; volatile storage media including registers, buffers or caches, main memory, RAM, etc.; and data transmission media including computer networks, point-to-point telecommunication equipment, and carrier wave transmission media, just to name a few.

A computer process typically includes an executing (running) program or portion of a program, current program values and state information, and the resources used by the operating system to manage the execution of the process. An operating system (OS) is the software that manages the sharing of the resources of a computer and provides programmers with an interface used to access those resources. An operating system processes system data and user input, and responds by allocating and managing tasks and internal system resources as a service to users and programs of the system. The computer system may for instance include at least one processing unit, associated memory and a number of input/output (I/O) devices. When executing the computer program, the computer system processes information according to the computer program and produces resultant output information via I/O devices. Those skilled in the art will recognize that the boundaries between logic blocks are merely illustrative and that alternative embodiments may merge logic blocks or circuit elements or impose an alternate decomposition of functionality upon various logic blocks or circuit elements. Thus, it is to be understood that the architectures depicted herein are merely exemplary, and that in fact many other architectures can be implemented which achieve the same functionality.

Thus, any arrangement of components to achieve the same functionality is effectively "associated" such that the desired functionality is achieved. Hence, any two components herein combined to achieve a particular functionality can be seen as "associated with" each other such that the desired functionality is achieved, irrespective of architectures or intermedial components. Likewise, any two components so associated can also be viewed as being "operably connected," or "operably coupled," to each other to achieve the desired functionality.

Furthermore, those skilled in the art will recognize that boundaries between the above described operations merely illustrative. The multiple operations may be combined into a single operation, a single operation may be distributed in additional operations and operations may be executed at least partially overlapping in time. Moreover, alternative embodiments may include multiple instances of a particular operation, and the order of operations may be altered in various other embodiments.

Also for example, the examples, or portions thereof, may implemented as soft or code representations of physical circuitry or of logical representations convertible into physical circuitry, such as in a hardware description language of any appropriate type. Also, the invention is not limited to physical devices or units implemented in

nonprogrammable hardware but can also be applied in programmable devices or units able to perform the desired device functions by operating in accordance with suitable program code, such as mainframes, minicomputers, servers, workstations, personal computers, notepads, personal digital assistants, electronic games, automotive and other embedded systems, cell phones and various other wireless devices, commonly denoted in this application as 'computer systems'.

However, other modifications, variations and alternatives are also possible. The specifications and drawings are, accordingly, to be regarded in an illustrative rather than in a restrictive sense.