1. A method of rendering an output image ( 202 ) on basis of an input image ( 200 ) and a corresponding matrix of depth related data ( 204 ), the input image ( 200 ) corresponding to a first viewpoint and the output image ( 202 ) corresponding to a second viewpoint being different from the first viewpoint, the method comprising: computing edges ( 212 , 312 ) in the matrix of depth related data ( 204 ), by computing derivatives of the depth related data in a predetermined direction (X); computing a measure of variation in pixel values in regions of the input image ( 200 ) corresponding to neighborhoods of the edges ( 212 , 312 ), the neighborhoods located at the background side of the edges ( 212 , 312 ); and computing the output image ( 202 ) by shifting respective pixel values of the input image ( 200 ) in the predetermined direction (X) on basis of scaled depth related data, wherein scaling is such that a relative large measure of variation results in a relative large reduction of depth.