摘要 |
A method of generating a depth map (106) comprising depth values representing distances to a viewer, for respective pixels of an image (100), is disclosed. The method comprises: segmenting the image (100) into a first segment (110) and a second segment (108); and assigning a first one of the depth values corresponding to a first one of the pixels of the first segment (110) on basis of a first size of the first segment (110) and assigning a second one of the depth values corresponding to a second one of pixels of the second segment (108) on basis of a second size of the second segment (108) whereby the first one of the depth values is less than the second one of the depth values if the first size is less than the second size. |