1. A computer implemented method of converting a two-dimensional image into a stereoscopic three-dimensional image, comprising: for each pixel within a right eye image: identifying at least one corresponding pixel from a left eye image by backwards projection comprising: defining a range for searching the left eye image for the at least one corresponding pixel; projecting a floating point location from the right eye image onto a location within the range in the left eye image; determining whether the projected location is approximately at an integer location in the left eye image; and projecting a pixel from the projected location onto the right eye image; forming at least one occluded region if the at least one corresponding pixel is occluded in the right eye image; otherwise, determining a depth and an intensity value for the pixel within the right eye image using the at least one corresponding pixel, wherein the depth value is stored in a right eye depth map and the intensity value is stored in the right eye image; and inpainting the at least one occluded region within the right eye image using the right eye depth map by generating priority information for each of a plurality of blocks in the right eye image using a product of data terms and confidence terms, the product being summed with spatial terms, wherein each of the data terms is a function of a strength of isophotes interacting with a front contour of a target region in the right eye image, each of the confidence terms represents a measure of an amount of reliable information surrounding a pixel at a boundary block and each of the spatial terms comprise priority values assigned to positions of particular blocks of pixels in the right eye image.