1. A computer implemented method for enhancing spatial resolution of an image, said method comprising: accessing an image comprising a set of confident pixels and an unconfident pixel positioned adjacent to each confident pixel of said set of confident pixels, said set of confident pixels comprising two to four confident pixels and having corresponding known depth values, said unconfident pixel comprising an unknown depth value; determining a best depth hypothesis for said unconfident pixel using a filter module in which the known depth values are used as depth hypotheses, the best depth hypothesis corresponding to a smallest cost volume relative to a plurality of cost volumes corresponding to the depth hypotheses of the two to four confident pixels; and updating said unconfident pixel as a confident pixel using said best depth hypothesis.