A computer-implemented method of determining extrinsic parameters of a plurality of cameras using a plurality of diffractive optical elements, the method comprising: providing a plurality of diffractive optical elements (502, 504); providing a plurality of cameras (402, 404) positioned in an eye box of each one of the plurality of diffractive optical elements (502, 504); receiving a plurality of images from the plurality of cameras (402, 404), wherein a single image is received from each one of the plurality of cameras (402, 404) at a given position with respect to one of the plurality of diffractive optical elements (502, 504); for each image, identifying data pairs, each data pair including pixel coordinates of an intensity peak in the image and virtual light source produced by the diffractive optical element (502, 504) that corresponds to the intensity peak; determining extrinsic parameters of the plurality of cameras (402, 404) using the identified data pairs and a predetermined transform matrix of the plurality of diffractive optical elements (502, 504); upon determining extrinsic parameters of the plurality of cameras (402, 404), replacing the plurality of diffractive optical elements (502, 504) with different diffractive optical elements; and determining extrinsic parameters of the different diffractive optical elements using the extrinsic parameters of the plurality of cameras (402, 404), wherein the extrinsic parameters of the different diffractive optical elements map a coordinate system of a given diffractive optical element of the different diffractive optical elements (502, 504) to coordinate systems of other diffractive optical elements of the different diffractive optical elements. providing a plurality of diffractive optical elements (502, 504); providing a plurality of cameras (402, 404) positioned in an eye box of each one of the plurality of diffractive optical elements (502, 504); receiving a plurality of images from the plurality of cameras (402, 404), wherein a single image is received from each one of the plurality of cameras (402, 404) at a given position with respect to one of the plurality of diffractive optical elements (502, 504); for each image, identifying data pairs, each data pair including pixel coordinates of an intensity peak in the image and virtual light source produced by the diffractive optical element (502, 504) that corresponds to the intensity peak; determining extrinsic parameters of the plurality of cameras (402, 404) using the identified data pairs and a predetermined transform matrix of the plurality of diffractive optical elements (502, 504); upon determining extrinsic parameters of the plurality of cameras (402, 404), replacing the plurality of diffractive optical elements (502, 504) with different diffractive optical elements; and determining extrinsic parameters of the different diffractive optical elements using the extrinsic parameters of the plurality of cameras (402, 404), wherein the extrinsic parameters of the different diffractive optical elements map a coordinate system of a given diffractive optical element of the different diffractive optical elements (502, 504) to coordinate systems of other diffractive optical elements of the different diffractive optical elements.