1. Method for determining a depth map from images obtained from different orientations using window-based matching for a point of the image, wherein at least for a part of the image, for the points of the part of the image, a set of matching windows is used, a number of candidate disparity values is calculated for each point to provide for a provisional depth map wherein to each point more than one candidate disparity value is attributed, where after a further depth map is calculated by minimizing for each point at least the z-component of a norm of a sum of unit vectors pointing from the candidate disparity values for neighboring points to said point.