METHOD FOR ENCODING A DIGITAL HOLOGRAM, METHOD FOR ENCODING A GROUP OF DIGITAL HOLOGRAMS AND ASSOCIATED ENCODING DEVICE

20230004120 · 2023-01-05

    Inventors

    Cpc classification

    International classification

    Abstract

    A method for encoding a digital hologram represented by values associated respectively with pixels in a plane defining the digital hologram includes forming matrix blocks associated respectively with regions composed of contiguous pixels, each matrix block containing elements determined as a function of the values of the pixels in the region associated with the respective matrix block, applying to each of the matrix blocks a space-frequency transformation to obtain, for each matrix block, a set of coefficients respectively corresponding to different two-dimensional spatial frequencies within the respective matrix block, constructing two-dimensional structures each including coefficients from sets of coefficients and associated with two-dimensional spatial frequencies meeting a criterion that is dependent on the two-respective dimensional structure, and encoding the constructed two-dimensional structures.

    Claims

    1. A method for encoding a digital hologram represented by values respectively associated with pixels in a plane of definition of the digital hologram, the method comprising: forming matrix blocks respectively associated with regions composed of contiguous pixels, each of the matrix blocks containing elements determined as a function of values of the pixels of the respective region associated with the respective matrix block; applying a space-frequency transformation to each of the matrix blocks to obtain, for each of the matrix blocks, a set of coefficients respectively corresponding to different two-dimensional spatial frequencies within the respective matrix block; constructing a plurality of two-dimensional structures, each of the plurality of two-dimensional structures comprising coefficients from a plurality of sets of coefficients and that respectively correspond with two-dimensional spatial frequencies meeting a criterion that is dependent on the respective two-dimensional structure; and encoding the constructed two-dimensional structures.

    2. The encoding method according to claim 1, wherein the constructed two-dimensional structures are constructed by grouping together, in each of the two-dimensional structures, the coefficients from said sets of coefficients that correspond to a two-dimensional spatial frequency associated with the respective two-dimensional structure.

    3. The encoding method according to claim 1, wherein the constructed two-dimensional structures are constructed by grouping together, in each of the two-dimensional structures, the coefficients from said sets of coefficients that correspond to a two-dimensional range of spatial frequencies associated with the respective two-dimensional structure.

    4. The encoding method according to claim 1, wherein the regions are obtained by segmenting said plane, the different elements of the respective matrix block respectively being the values of the pixels of the respective region associated with the respective matrix block.

    5. The encoding method according to claim 1, wherein the constructed two-dimensional structures are at least partially encoded by an image encoding algorithm.

    6. The encoding method according to claim 1, wherein the values of the pixels of the digital hologram are real.

    7. The encoding method according to claim 1, wherein the values of the pixels of the digital hologram are complex.

    8. The method according to claim 7, wherein the coefficients in the two-dimensional structures are complex, and the encoding the constructed two-dimensional structures comprises encoding an amplitude of said coefficients by an image encoding algorithm, and of encoding a phase of said coefficients.

    9. A method for encoding a group of digital holograms, the method comprising: encoding each of the digital holograms of said group by the encoding method according to claim 1, wherein the encoding each of the constructed two-dimensional structures is carried out in a predefined sequence within the different digital holograms of said group.

    10. A device for encoding a digital hologram represented by values respectively associated with pixels in a plane of definition of the digital hologram, said encoding device comprising: one or more processors configured to form matrix blocks respectively associated with regions composed of contiguous pixels such that each of the matrix blocks contain elements determined as a function of the values of the pixels in the respective region associated with the respective matrix block, apply a space-frequency transformation to each of the matrix blocks to obtain, for each of the matrix blocks, a set of coefficients respectively corresponding to different two-dimensional spatial frequencies within the respective matrix block, construct a plurality of two-dimensional structures, each of the plurality of two-dimensional structures comprising coefficients from a plurality of sets of coefficients and that respectively correspond with two-dimensional spatial frequencies meeting a criterion that is dependent on the respective two-dimensional structure, and in question; encode the constructed two-dimensional structures.

    11. The encoding method according to claim 2, wherein the regions are obtained by segmenting said plane, the different elements of the respective matrix block respectively being the values of the pixels of the respective region associated with the respective matrix block.

    12. The encoding method according to claim 3, wherein the regions are obtained by segmenting said plane, the different elements of the respective matrix block respectively being the values of the pixels of the respective region associated with the respective matrix block.

    13. The encoding method according to claim 4, wherein the regions are obtained by segmenting said plane, the different elements of the respective matrix block respectively being the values of the pixels of the respective region associated with the respective matrix block.

    14. The encoding method according to claim 2, wherein the constructed two-dimensional structures are at least partially encoded by an image encoding algorithm.

    15. The encoding method according to claim 3, wherein the constructed two-dimensional structures are at least partially encoded by an image encoding algorithm.

    16. The encoding method according to claim 4, wherein the constructed two-dimensional structures are at least partially encoded by an image encoding algorithm.

    Description

    DETAILED DESCRIPTION OF THE INVENTION

    [0027] Moreover, various other features of the invention will be apparent from the appended description made with reference to the drawings that illustrate non-limitative embodiments of the invention, and wherein:

    [0028] FIG. 1 schematically shows the main elements of an example of encoding device according to the invention;

    [0029] FIG. 2 illustrates a possible example for the formation of matrix blocks within a digital hologram;

    [0030] FIG. 3 illustrates the construction of two-dimensional structures from sets of coefficients;

    [0031] FIG. 4 is a flowchart showing the steps of an exemplary encoding method according to the invention; and

    [0032] FIG. 5 shows the main elements of an example of an electronic device liable to form an encoding device according to the invention.

    [0033] FIG. 1 shows the main elements of an example of encoding device according to the invention.

    [0034] This encoding device comprises different modules 10, 12, 14, 16, 18 described hereinafter. This encoding device is for example implemented by means of a processor architecture, as described for example hereinafter with reference to FIG. 5. In such an architecture, the different modules 10, 12, 14, 16, 18 may each be made by cooperation of the processor with computer program instructions stored for example in a memory of the encoding device (such as the memory 6 of the electronic device 2 shown in FIG. 5) and designed to implement the functionalities of the module in question when they are executed by this processor.

    [0035] Hereinafter will be described the encoding (by means of the encoding device) of a holographic video composed of a sequence of T digital holograms H.sub.t (also called “frames of the holographic video”). The invention however also applies to the encoding of a single digital hologram H.sub.1 (case in which T=1).

    [0036] The digital holograms H.sub.t are defined at one plane, each by means of values H.sub.t(x,y) respectively associated with pixels, of position (x,y), distributed over two dimensions within an area (generally rectangular) of this plane of definition of the digital hologram H.sub.t.

    [0037] For a given digital hologram H.sub.t, the value H.sub.t(x,y) associated with a pixel (x,y) typically represents the light wave received, at this pixel (x,y), from a three-dimensional scene located on one side, or possibly on either side, of a plane of definition of the digital hologram H.sub.t.

    [0038] In the example described herein, the values H.sub.t(x,y) are complex values and are hence represented (equivalently) either by a real part and an imaginary part, or by an amplitude (sometimes called norm or module) and a phase.

    [0039] As an alternative, the values H.sub.t(x,y) could be real values.

    [0040] The values H.sub.t(x,y) representing the digital holograms H.sub.t of the sequence are for example stored in a memory of the encoding device (such as the memory 6 of the electronic device 2 given hereinafter as an example with reference to FIG. 5).

    [0041] The encoding device comprises a module 10 for forming matrix blocks B.sub.i,j from the values H.sub.t(x,y) representing a given digital hologram H.sub.t.

    [0042] This module 10 is designed to form matrix blocks B.sub.i,j respectively associated with regions R.sub.i,j composed of contiguous pixels in such a way that each matrix block B.sub.i,j contain elements B.sub.i,j(a,b) determined as a function of the values H.sub.t(x,y) of the pixels (x,y) of the region R.sub.i,j associated with the block B.sub.i,j in question.

    [0043] In the example described herein, each matrix block B.sub.i,j comprises M.sub.H elements per line and M.sub.V elements per column, determined as a function of values H.sub.t(x,y) of pixels (the lines of the matrix blocks B.sub.i,j here corresponding to the x-coordinates direction of the pixels in the plane of definition of the digital hologram H.sub.t and the columns of the matrix blocks B.sub.i,j here corresponding to the y-coordinates direction of these pixels).

    [0044] In practice, the number M.sub.H may be between 50 and 500 (M.sub.H is for example equal to 64 or 128); likewise, the number M.sub.V may be between 50 and 500 (M.sub.V is for example equal to 64 or 128).

    [0045] Moreover, as can also be seen in FIG. 2, module 10 is here designed in such a way as to form a matrix of K.sub.H.K.sub.V matrix blocks composed of K.sub.H matrix blocks per line and K.sub.V matrix blocks per column (i.e. composed of K.sub.V lines and K.sub.H columns). (In this matrix of matrix blocks, a matrix block B.sub.i,j is located at line j+1 and column i+1.)

    [0046] The encoding technique described herein is particularly interesting for processing digital holograms defined by a great number of pixels (typically higher than 10,000×10,000). In practice, each of the numbers K.sub.H (number of matrix blocks B.sub.i,j per line) and K.sub.V (number of matrix blocks B.sub.i,j per column) is for example higher than 500 (or even higher than 1000).

    [0047] Module 10 determines for example each element B.sub.i,j(a,b) of a matrix block B.sub.i,j as follows:


    B.sub.i,j(a,b)=H.sub.t(a+i.Math.D.sub.H,b+j.Math.D.sub.V).Math.w(a,b)

    [0048] where D.sub.H and D.sub.V are two strictly positive integers lower than or equal to M.sub.H and M.sub.V, respectively, and where w is a matrix of real numbers of size M.sub.H×M.sub.V.

    [0049] In a particular case possible, as shown in FIG. 2, the values D.sub.H=M.sub.H, D.sub.V=M.sub.V are taken, and all the elements w(a,b) of the matrix w are taken equal to 1: module 10 then forms the matrix blocks B.sub.i,j by segmentation of the area in which the pixels are defined, in such a way that the different elements B.sub.i,j(a,b) of a matrix block B.sub.i,j are respectively the values H.sub.t(x,y) of the pixels (x,y) of the region R.sub.i,j associated with this matrix block B.sub.i,j:


    B.sub.i,j(a,b)=H.sub.t(a+i.Math.M.sub.H,b+j.Math.M.sub.V).

    [0050] As shown in FIG. 2 by the references P and P′, it is possible to complete the blocks B.sub.i,j with zeros (operation generally called “padding”) when certain block elements B.sub.i,j have no correspondent among the pixels defining the digital hologram H.sub.t, for example because the dimensions of the digital hologram H.sub.t are not multiple of M.sub.H and M.sub.V (respectively).

    [0051] In other words, module 10 may set B.sub.i,j(a,b)=0 when the coordinates (a+i.M.sub.H, b+j.M.sub.V) do not correspond to a pixel of the digital hologram H.sub.t.

    [0052] According to a possible embodiment, module 10 may form, in addition to the elements B.sub.i,j(a,b) determined based on the values H.sub.t(x,y) of the pixels (x,y), elements B.sub.i,j(a′,b′) of zero value, in order to increase the number of elements in each matrix block B.sub.i,j and hence the number of coefficients in each of the sets C.sub.i,j described hereinafter. According to this possible embodiment: M.sub.H<M′.sub.H M.sub.V<M′.sub.V and B.sub.i,j(a′,b′)=0 for a′ varying from M.sub.H+1 to M′.sub.H and for b′ varying from M.sub.V+1 to M′.sub.V.

    [0053] At the exit of module 10, each matrix block B.sub.i,j comprises M′.sub.V lines and M′.sub.H columns (with for example M′.sub.V between 50 and 1000 and/or M′.sub.H between 50 and 1000). (When the just-mentioned possibility to add elements of zero value to increase the number of elements is not used, then:


    M.sub.H=M′.sub.H and M.sub.V=M′.sub.V.Math.)

    [0054] The encoding device also comprises a module 12 for applying a space-frequency transformation.

    [0055] This module 12 is designed to apply this spatial-frequency transformation to each of the matrix blocks B.sub.i,j in such a way as to obtain, for each matrix block B.sub.i,j, a set C.sub.i,j of coefficients C.sub.i,j(k,l) respectively corresponding to different two-dimensional spatial frequencies (k, l) within the matrix block B.sub.i,j in question.

    [0056] It is understood by two-dimensional spatial frequency a couple of spatial frequencies respectively associated with two directions of space (here, the two directions, respectively along x-axis and y-axis, of the plane of definition of the digital hologram H.sub.t).

    [0057] The space-frequency transformation used is for example a two-dimensional Fourier transformation.

    [0058] In this case, module 12 determines the coefficients C.sub.i,j(k,l) of a set C.sub.i,j, as follows:

    [00001] C i , j ( k , l ) = γ .Math. a = 1 M H .Math. b = 1 M V B i , j ( a , b ) .Math. e - 2 i π ( k .Math. a M H + l .Math. b M V ) ,

    where γ is a predefined constant.

    [0059] Using a matrix organization based on that of the matrix block B.sub.i,j, each set C.sub.i,j of coefficients comprises M′.sub.V lines and M′.sub.H columns.

    [0060] The encoding device moreover comprises a module 14 for constructing a plurality of two-dimensional structures S.sub.p,q.

    [0061] The construction module 14 is designed in such a way that each two-dimensional structure S.sub.p,q constructed comprises coefficients C.sub.i,j(k,l) from a plurality of sets C.sub.i,j of coefficients and associated with two-dimensional spatial frequencies k, l meeting a criterion that is dependent on the two-dimensional structure S.sub.k,l in question.

    [0062] According to a possible embodiment, for a given two-dimensional structure S.sub.p,q, the construction module 14 groups together in this given two-dimensional structure S.sub.p,q the coefficients C.sub.i,j(k,l) from all the sets C.sub.i,j of coefficients and associated with a particular two-dimensional spatial frequency, of value (p,q).

    [0063] As schematically shown in FIG. 3, by following within this given two-dimensional structure S.sub.p,q an organization reproducing (within the above-mentioned block matrix B.sub.i,j) that of the blocks B.sub.i,j from which are derived the sets C.sub.i,j of coefficients, a coefficient S.sub.p,q(n,m) of this given two-dimensional structure S.sub.p,q (coefficient located line n and column m in the two-dimensional structure S.sub.p,q) is defined by:


    S.sub.p,q(n,m)=C.sub.n,m(p,q).

    [0064] According to this possible embodiment, the number of two-dimensional structures S.sub.p,q constructed is thus equal to the number of coefficients C.sub.i,j(k,l) per set of coefficients C.sub.i,j (this number of coefficients C.sub.i,j(k,l) per set of coefficients C.sub.i,j being here equal to M′.sub.V.M′.sub.H).

    [0065] Moreover, still within the framework of this possible embodiment, each two-dimensional structure S.sub.p,q comprises a number of coefficients equal to the number of blocks B.sub.i,j (in the above-mentioned block matrix B.sub.i,j and that is clear from FIG. 2), i.e. here a number equal to K.sub.H.K.sub.V. Precisely, each two-dimensional structure S.sub.p,q comprises a number of lines equal to the number (K.sub.V) of lines in the block matrix B.sub.i,j and a number of columns equal to the number (K.sub.H) of columns in the block matrix B.sub.i,j.

    [0066] Other possible embodiments are conceivable to construct the two-dimensional structures S.sub.p,q, as explained hereinafter.

    [0067] The encoding device also comprises a module 16 for encoding the two-dimensional structures S.sub.p,q.

    [0068] This encoding module 16 is designed to order the two-dimensional structures S.sub.p,q in a predefined order and to encode the coefficients S.sub.p,q(n,m) of the ordered two-dimensional structures in order to obtain at least one sequence of data D.sub.A, D.sub.ϕ.

    [0069] The encoding module 16 orders for example the two-dimensional structures S.sub.p,q according to one of the methods contemplated in the article “3D scanning-based compression technique for digital hologram video” already mentioned for the ordering of the segments obtained by a discrete cosine transformation.

    [0070] In the example described herein in which the coefficients S.sub.p,q(n,m) contained in the two-dimensional structures S.sub.p,q are complex numbers, the encoding module 16 encodes separately the amplitude of the coefficients S.sub.p,q(n,m) and the phase of the coefficients S.sub.p,q(n,m).

    [0071] The encoding module 16 encodes for example the amplitude of the coefficients S.sub.p,q(n,m) into a sequence of data D.sub.A by means of an image encoding process such as those described in the MPEG-4 AVC standard, or in the MPEG-4 HEVC or MV-HEVC standard.

    [0072] The encoding module 16 can encode the phase of the coefficients S.sub.p,q(n,m) into a sequence of data D.sub.ϕ by means of another encoding process, such as for example that described in the article “Phase-difference-based compression of phase-only holograms for holographic three-dimensional display”, by H. Gu et G. Jin, in Opt. Express, vol. 26, no 26, pp. 33592-33603, December 2018.

    [0073] In the embodiments in which the coefficients S.sub.p,q(n,m) contained in the two-dimensional structures S.sub.p,q are real numbers, these coefficients can be encoded directly by an image encoding process (such as those mentioned hereinabove).

    [0074] The encoding device finally comprises a module 18 for generating a flow of data to be transmitted (or binary flow) D.sub.T on the basis of the encoded data produced by the encoding module 16. In an embodiment, the flow of data to be transmitted D.sub.T (here for each group of digital holograms, as explained hereinabove) is generated by sequential combination of the sequence of data D.sub.A and of the sequence of data D.sub.ϕ. In other words, the sequences of data D.sub.A and D.sub.ϕ are sent one after the other to form the flow D.sub.T, and that, successively for each group of N digital holograms H.sub.t.

    [0075] An example of encoding method, which may be implemented by the encoding device of FIG. 1, will now be described with reference to FIG. 4.

    [0076] This encoding method is applied to a sequence of T digital holograms H.sub.t organized into groups of N digital holograms. Each group of digital holograms hence comprise N digital holograms H.sub.t that follow each other in the sequence of the T digital holograms.

    [0077] The digital holograms H.sub.t are for example stored in an memory of the encoding device of FIG. 1, as already indicated. The processing steps described hereinafter can also use this memory for storing the data obtained after each processing step (as well as the intermediate results).

    [0078] The sequence of T digital holograms H.sub.t (or frames) forms a holographic video.

    [0079] The method of FIG. 4 starts with a step E2 in which a variable t and a variable g are initialized to the value 1. As will be evident from the following explanation, the variable t denotes the current digital hologram H.sub.t (i.e. the digital hologram to which are applied the processing operations performed during the described steps) and the variable g denotes the current group of holograms.

    [0080] The method of FIG. 4 continues at step E4, during which the encoding device (specifically here module 10) forms matrix blocks B.sub.i,j respectively associated with regions R.sub.i,j formed of contiguous pixels of the current hologram H.sub.t, each matrix block B.sub.i,j formed that way containing elements B.sub.i,j(a,b) determined as a function of the values of the pixels of the region R.sub.i,j associated with the block B.sub.i,j in question.

    [0081] As shown in FIG. 2, each region R.sub.i,j here comprises M.sub.H pixels in the horizontal direction (x-coordinates direction of the pixels) and M.sub.V pixels in the vertical direction (y-coordinates direction of the pixels).

    [0082] As indicated hereinabove, these elements B.sub.i,j(a,b) determined as a function of pixel values are obtained, for example, (here by module 10) as follows:


    B.sub.i,j(a,b)=H.sub.t(a+i.Math.D.sub.H,b+j.Math.D.sub.V).Math.w(a,b).

    [0083] According to a possible embodiment, as already indicated, the matrix blocks B.sub.i,j are obtained by segmentation of the current hologram H.sub.t:


    B.sub.i,j(a,b)=H.sub.t(a+i.Math.D.sub.H,b+j.Math.D.sub.V), with D.sub.H=M.sub.H and D.sub.V=M.sub.V.

    [0084] As indicated hereinabove, module 10 can potentially add elements B.sub.i,j(a′,b′) of zero value within the matrix block B.sub.i,j, in order in particular to increase the number of coefficients C.sub.i,j(k,l) in each set C.sub.i,j.

    [0085] In the example described herein, as can be seen in FIG. 2, step E4 thus makes it possible to form K.sub.H.K.sub.V matrix blocks B.sub.i,j organized as a matrix of K.sub.V lines of matrix blocks B.sub.i,j and K.sub.H columns of matrix blocks B.sub.i,j, each matrix block B.sub.i,j itself comprising M′.sub.V lines and M′.sub.H columns. As explained hereinabove, the following values are for example used in practice: K.sub.H higher than 500 (or even higher than 1000) and/or K.sub.V higher than 500 (or even higher than 1000) and/or M′.sub.V between 50 and 1000, and/or M′.sub.H between 50 and 1000.

    [0086] The method of FIG. 4 then comprises a step E6 of applying, to each of the matrix blocks B.sub.i,j (taken separately), a space-frequency transformation in such a way as to obtain, for each matrix block B.sub.i,j, a set C.sub.i,j of coefficients C.sub.i,j(k,l) that each respectively correspond to different two-dimensional spatial frequencies (k,l) within the matrix block B.sub.i,j in question. This step is here implemented by the above-described module 12.

    [0087] As already indicated, for each matrix block B.sub.i,j, step E6 here comprises applying this space-frequency transformation (for example a two-dimensional Fourier transformation) to the set of elements of the matrix block B.sub.i,j in question.

    [0088] Therefore, step E6 here makes it possible to produce K.sub.H.K.sub.V sets C.sub.i,j each comprising M′.sub.V.M′.sub.H coefficients C.sub.i,j(k,l) respectively corresponding to M′.sub.V.M′.sub.H two-dimensional spatial frequencies (obtained by scanning through M′.sub.H horizontal frequencies k and M′.sub.V vertical frequencies I).

    [0089] The method of FIG. 4 then comprises a step E8 of constructing a plurality of two-dimensional structures S.sub.p,q each comprising coefficients C.sub.i,j(k,l) from a plurality of sets of coefficients C.sub.i,j and associated with two-dimensional spatial frequencies (k,l) meeting a criterion that is dependent on the two-dimensional structure S.sub.p,q in question. This step E8 is here implemented by the construction module 14.

    [0090] According to a first possible embodiment, the two-dimensional structures S.sub.p,q are constructed at step E8 by grouping together, in each two-dimensional structure S.sub.p,q, the coefficients C.sub.i,j(k,l) from the sets of coefficients C.sub.i,j and corresponding to a particular two-dimensional spatial frequency (k,l), associated with the two-dimensional structure S.sub.p,q in question.

    [0091] A given two-dimensional structure S.sub.p,q thus groups together, in this case, coefficients C.sub.i,j(k,l) representing the same two-dimensional spatial frequency (k,l).

    [0092] In the case described hereinabove, step E8 hence makes it possible to construct M′.sub.H.M′.sub.V two-dimensional structures S.sub.p,q each comprising K.sub.H.K.sub.V coefficients.

    [0093] As shown in FIG. 3, it is further proposed herein to use, within each two-dimensional structure S.sub.p,q, the matrix structure of the blocs B.sub.i,j from which are derived the sets C.sub.i,j providing the coefficients C.sub.i,j(k,l) of the two-dimensional structure S.sub.p,q in question, i.e. to define the coefficients S.sub.p,q(n,m) of each block S.sub.p,q by:


    S.sub.p,q(n,m)=C.sub.n,m(p,q).

    [0094] Each two-dimensional structure S.sub.p,q formed that way has (as regards the amplitude of the coefficients) characteristics that are close to two-dimensional images that would have been obtained by parallel projection of the three-dimensional scene. The two-dimensional structures S.sub.p,q thus have a shallow depth of field and strong spatial redundancies between adjacent coefficients within the two-dimensional structure, which allows the efficient encoding thereof at step E14 described hereinafter.

    [0095] According to a second possible embodiment, the two-dimensional structures S.sub.p,q are constructed at step E8 by grouping together, in each two-dimensional structure S.sub.p,q, the coefficients C.sub.i,j(k,l) from the different sets C.sub.i,j of coefficients C.sub.i,j(k,l) and corresponding to a two-dimensional range of two-dimensional spatial frequencies (k,l) associated with the two-dimensional structure S.sub.p,q in question.

    [0096] Therefore, in this case, different two-dimensional ranges of two-dimensional spatial frequencies are defined (each two-dimensional range covering for example a certain number, denoted hereinafter α.β, of different values of two-dimensional spatial frequencies represented within each set C.sub.i,j of coefficients, where α and β are two integers such as α divides M′.sub.H and β divides M′.sub.V). A given two-dimensional structure S.sub.p,q then groups together the C.sub.i,j(k,l) from all the sets C.sub.i,j and representing a two-dimensional spatial frequency (k,l) included in a particular two-dimensional range among these two-dimensional ranges. The coefficients S.sub.p,q(n,m) of a two-dimensional structure S.sub.p,q can in this case be given, for example, by:


    S.sub.p,q(n,m)=C.sub.E(n/α,E(m/β)(p.Math.α+n[α],q.Math.β+m[β]),

    where E(z) denotes the integer part of z, n[α] is the remainder of the Euclidian division of n by a and m[β] is the remainder of the Euclidian division of m by β.

    [0097] In the case described hereinabove, step E8 hence makes it possible to construct M′.sub.H.M′.sub.V/(α.β) two-dimensional structures S.sub.p,q each comprising α.ρ.K.sub.H.K.sub.V coefficients. The advantage of this embodiment is that it allows producing a less important number of two-dimensional structures S.sub.p,q, the amplitude of the coefficients of which always has characteristics close to those which would have been obtained by parallel projection of the three-dimensional scene. By increasing the value of α and β, the number of two-dimensional structures S.sub.p,q can be further reduced, at the cost of less spatial redundancy between adjacent coefficients within a same two-dimensional structure.

    [0098] The method of FIG. 4 continues at step E10, during which the encoding device (here the processor thereof) determines if t<T and t<g.N.

    [0099] The inequality t<T is valid as long as the last digital hologram H.sub.T of the sequence of digital holograms has not been processed.

    [0100] The inequality kg.N is valid as long as the last digital hologram H.sub.t processed is not the last digital hologram of the current group of digital holograms (the index g indicating as mentioned hereinabove the current group).

    [0101] In case of positive determination at step E10 (that is to say that the latter digital hologram H.sub.t processed is neither the last of the sequence nor the last of a group), the method continues at step E11 by incrementation of the variable t denoting the current digital hologram H.sub.t, then at step E4 described hereinabove for the processing of the new current digital hologram H.sub.t.

    [0102] In case of negative determination at step E10 (that is to say when the latter digital hologram H.sub.t processed is either the last of the sequence or the last of a group), the encoding device (especially here the encoding module 16) orders, in a predefined order (or predefined sequence), the different two-dimensional structures S.sub.p,q obtained (during the successive passages in step E8) for the different digital holograms of the current group (step E12).

    [0103] As already indicated, the predefined order chosen is for example on the orders proposed in the article “3D scanning-based compression technique for digital hologram video” already mentioned for the ordering of the segments obtained by a discrete cosine transformation.

    [0104] After implementation of step E12, an ordered sequence of two-dimensional structures S.sub.p,q is obtained (the two-dimensional structures S.sub.p,q of this ordered sequence coming from the processing of different digital holograms H.sub.t of the current group; therefore, the ordered sequence of two-dimensional structures S.sub.p,q comprises at least a first two-dimensional structure obtained by processing of a first digital hologram of the group and a second two-dimensional structure obtained by processing of a second digital hologram of the group).

    [0105] The method of FIG. 4 then continues by the encoding of the so-ordered two-dimensional structures S.sub.p,q, here by means, on the one hand, of encoding the amplitude of the coefficients present in the two-dimensional structures S.sub.p,q (step E14) and, on the other hand, of encoding the phase of these coefficients (step E16).

    [0106] Each two-dimensional structure S.sub.p,q has a matrix shape identical to that of an image and each two-dimensional structure S.sub.p,q can hence be encoded (in amplitude and/or in phase) by means of an image processing algorithm taking, as an input image of the algorithm, the two-dimensional structure in question.

    [0107] This image processing algorithm may thus be applied successively to the different ordered two-dimensional structures (obtained at step E12), by taking successively, as an input image of the algorithm, a particular two-dimensional structure (or in practice a matrix formed of the respective amplitudes of the coefficients of this two-dimensional structure and/or a matrix formed of the respective phases of the coefficients of this two-dimensional structure).

    [0108] Therefore, at step E14, the encoding module 16 applies successively an image encoding algorithm to different matrices each formed of different values of amplitude of the coefficients S.sub.p,q(n,m) of a particular two-dimensional structure S.sub.p,q (these matrices being taken in the order given to the two-dimensional structures S.sub.p,q at step E12). The image encoding algorithm is for example an image encoding process such as those described in the MPEG-4 AVC standard, or in the MPEG-4 HEVC or MV-HEVC standard.

    [0109] Step E14 thus makes it possible to obtain a sequence of data D.sub.A participating to the encoding of the current group of holograms.

    [0110] Comparably, at step E16, the encoding module 16 applies successively an encoding algorithm to different matrices each formed of the phase values of the coefficients S.sub.p,q(n,m) of a particular two-dimensional structure S.sub.p,q (these matrices being taken in the order given to the two-dimensional structures S.sub.p,q at step E12). The encoding algorithm that is used is for example that described in the article “Phase-difference-based compression of phase-only holograms for holographic three-dimensional display”, by H. Gu et G. Jin, in Opt. Express, vol. 26, no 26, pp. 33592-33603, December 2018; the encoding algorithm that is used is thus here different from the image encoding algorithm used at step E14.

    [0111] Step E16 thus makes it possible to obtain a sequence of data D.sub.ϕ participating to the encoding of the current group of holograms.

    [0112] The method of FIG. 4 continues at step E18 in which the encoding device (in practice the processor thereof) determines if t<T (that is to say checks that the digital hologram H.sub.t processed at the last passage in steps E4 to E8 is not the last digital hologram H.sub.T of the sequence).

    [0113] In the affirmative (i.e. if it is determined that the last digital hologram H.sub.t processed was not the last digital hologram H.sub.T of the sequence), the method continues at step E20 for incrementation of the variable t denoting the current digital hologram H.sub.t and of the variable g denoting the current group of digital holograms (the last digital hologram of a group having already been processed from the result of the previous passage in step E10).

    [0114] The method then loops to step E4 for processing again the new group of digital holograms.

    [0115] In the negative at step E18 (that is to say when the last digital hologram H.sub.T of the sequence has been processed), the method continues at step E22 in which module 18 generates a flow of data D.sub.T on the basis of the sequences of data D.sub.A, D.sub.ϕ respectively produced during the previous passages is steps E14 and E16 for the different groups of digital holograms processed.

    [0116] For example, the flow of data D.sub.T comprises a succession of several flows of data D.sub.GOH each relating to a group of digital holograms, each flow of data D.sub.GOH comprising successively the sequence of data D.sub.A and the sequence of data D.sub.ϕ determined as explained hereinabove for this group of digital holograms.

    [0117] FIG. 5 describes an example of electronic device 2 liable to form an encoding device according to the invention.

    [0118] This electronic device 2 comprises a processor 4 (for example, a microprocessor), at least one memory 6 and a telecommunication circuit 8.

    [0119] The memory 6 can store computer program instructions designed to implement certain at least of the steps of the method of FIG. 4 when these instructions are executed by the processor 4.

    [0120] The memory 6 (or potentially another memory) may further store, as already indicated, the values H.sub.t(x,y) respectively associated with the pixels (x,y) to each define digital holograms H.sub.t processed as explained hereinabove. The memory 6 (or potentially another memory) can then store the different values handled during the processing operations described hereinafter, in particular the elements B.sub.i,j(a,b) of the matrix blocks B.sub.i,j, the coefficients C.sub.i,j(k,l) of the sets of coefficients C.sub.i,j, the coefficients S.sub.p,q(n,m) of the two-dimensional structures S.sub.p,q and the data D.sub.A, D.sub.ϕ, D.sub.T.

    [0121] Finally, the telecommunication circuit 8 is designed to transmit (for example upon a command from the processor 4), typically to another electronic device (not shown), the flow of data D.sub.T obtained at step E22.