1. A computer-implemented method, comprising: associating a set of features in a pair of images to selected cells within a set of cells using a base mesh, wherein the associating comprises: dividing each image of the pair of images using the base mesh to generate the set of cells, and defining the set of features in terms of the selected cells; and generating a stereo image pair, wherein the generating the stereo image pair comprises transforming the set of cells with a mesh-based transformation function, wherein the transforming the set of cells further comprises: computing a transformation of the set of cells by applying an energy minimization function to the set of cells, said applying the energy minimization function including calculating for the set of cells constraint terms based on derivatives of vertexes of the set of cells; and generating a selected transformed mesh and another transformed mesh by applying the transformation of the set of cells to the base mesh, and wherein the mesh-based transformation function preserves selected properties of the set of features in the pair of images.