A method for determining a depth image for a digital image comprising a plurality of picture elements, the method comprising: • edge filtering the digital image to determine an edge map, the edge map comprising a plurality of edge values, wherein each edge value is associated with at least one picture element, characterized by further comprising: • at least once downscaling the edge map; • performing a first edge map adaptive processing to the downscaled edge map, wherein said first edge map adaptive processing comprises - further downscaling the edge map; - for the further downscaled edge map, determining for each edge value, if the edge value is greater than a predefined threshold value; - if the edge value is greater than the predefined threshold value, increasing the edge value to determine a processed edge map; • performing a second edge map adaptive processing after the first edge map adaptive processing, wherein said second edge map adaptive processing comprises - further downscaling the processed edge map; - for the further downscaled processed edge map, determining for each edge value, if the edge value is greater than a predefined threshold value; - if the edge value is greater than the predefined threshold value, increasing the edge value to determine a processed edge map; • once upscaling the output of the second edge map adaptive processing; • blending the output of the first edge map adaptive processing and upscaled output of the second edge map adaptive processing • determining the depth image using the blended edge map. • edge filtering the digital image to determine an edge map, the edge map comprising a plurality of edge values, wherein each edge value is associated with at least one picture element, • at least once downscaling the edge map; • performing a first edge map adaptive processing to the downscaled edge map, wherein said first edge map adaptive processing comprises - further downscaling the edge map; - for the further downscaled edge map, determining for each edge value, if the edge value is greater than a predefined threshold value; - if the edge value is greater than the predefined threshold value, increasing the edge value to determine a processed edge map; - further downscaling the edge map; - for the further downscaled edge map, determining for each edge value, if the edge value is greater than a predefined threshold value; - if the edge value is greater than the predefined threshold value, increasing the edge value to determine a processed edge map; • performing a second edge map adaptive processing after the first edge map adaptive processing, wherein said second edge map adaptive processing comprises - further downscaling the processed edge map; - for the further downscaled processed edge map, determining for each edge value, if the edge value is greater than a predefined threshold value; - if the edge value is greater than the predefined threshold value, increasing the edge value to determine a processed edge map; - further downscaling the processed edge map; - for the further downscaled processed edge map, determining for each edge value, if the edge value is greater than a predefined threshold value; - if the edge value is greater than the predefined threshold value, increasing the edge value to determine a processed edge map; • once upscaling the output of the second edge map adaptive processing; • blending the output of the first edge map adaptive processing and upscaled output of the second edge map adaptive processing • determining the depth image using the blended edge map.