A method of digitally processing light waves passing through a planar structure having given functions f in ( x,y,ω) and f out ( x,y,ω) and consisting of a light-propagating and distributing layer, a plurality of interconnecting pattern elements (18a, 18b,.... 18k) of a holographic pattern in said of light-propagating and distributing layer, and a plurality of planar optical elements (12a, 12b,.......12p) arranged in a predetermined pattern on the aforementioned light-propagating and distributing layer, wherein the planar optical elements are selected from planar laser diodes (12a, 12b,.......12p), planar semiconductor amplifiers (14a, 14b,.... 14f), and planar semiconductor receivers (16a, 16b,.... 16g), the method comprising the steps of: calculating positions and shapes of the plurality of interconnecting pattern elements (18a, 18b,.... 18k) of a holographic pattern based on the aforementioned given functions f in ( x,y,ω) and f out ( x,y,ω) by a method of solving an inverse problem, said interconnecting pattern elements (18a, 18b,.... 18k) having refractive indices different from the refractive indices of the light-propagating and distributing layer, said method comprising the steps of: manufacturing the interconnecting pattern elements (18a, 18b,.... 18k) of the holographic pattern based on the results of the calculations; digitizing the aforementioned continuous functions f in x y ω ≅ ∑ n, u C nu exp ik n ⁢ r u ⁢ f ω and f out x y ω ≅ ∑ m, v C mv exp - ik m ⁢ r v ⁢ f ω by providing finite numbers ("n", "m", "u", "v") of values as a result of expansion into the Fourier series; where k n is the wave vector of an incoming wave, and r u is the distance from the incoming port number u to a current point; and k m is the wave vector of an outgoing wave, and r v is the distance from the outgoing port number v to a current point; and using the obtained digitized planar holographic pattern for converting the function f in ( x,y,ω) into the function f out ( x,y,ω). calculating positions and shapes of the plurality of interconnecting pattern elements (18a, 18b,.... 18k) of a holographic pattern based on the aforementioned given functions f in ( x,y,ω) and f out ( x,y,ω) by a method of solving an inverse problem, said interconnecting pattern elements (18a, 18b,.... 18k) having refractive indices different from the refractive indices of the light-propagating and distributing layer, said method comprising the steps of: manufacturing the interconnecting pattern elements (18a, 18b,.... 18k) of the holographic pattern based on the results of the calculations; digitizing the aforementioned continuous functions f in x y ω ≅ ∑ n, u C nu exp ik n ⁢ r u ⁢ f ω and f out x y ω ≅ ∑ m, v C mv exp - ik m ⁢ r v ⁢ f ω by providing finite numbers ("n", "m", "u", "v") of values as a result of expansion into the Fourier series; where k n is the wave vector of an incoming wave, and r u is the distance from the incoming port number u to a current point; and k m is the wave vector of an outgoing wave, and r v is the distance from the outgoing port number v to a current point; and using the obtained digitized planar holographic pattern for converting the function f in ( x,y,ω) into the function f out ( x,y,ω).