Method and unit of calculation for estimating a depth map from a digital hologram; method for encoding a video sequence; computer program
By reconstructing images from a digital hologram, forming vignettes, and applying operators to determine depth based on repetition and metrics, the method addresses precision and accuracy issues in depth estimation, resulting in a precise and accurate depth map.
Patent Information
- Application Number
- FR2022010435
- Authority / Receiving Office
- FR · FR
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-10-11
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-10-11
AI Technical Summary
Existing methods for determining depth from digital holograms suffer from precision and accuracy issues due to multiple depths being associated with the same pixel, leading to errors in depth assignment.
A method involving reconstructing multiple images from a digital hologram, forming vignettes from contiguous pixels, applying an operator to each vignette to provide a metric, and determining depth based on maximum repetition and average metrics to assign a unique depth to each pixel, reducing sensitivity to speckle noise and blur.
The method produces a precise and accurate depth map by ensuring each pixel is assigned a single depth, improving estimation performance and reducing noise sensitivity.
Smart Images

Figure 00000027_0000 
Figure 00000028_0000 
Figure 00000028_0001
Abstract
Description
Title of the invention: Method and calculation unit for estimating a depth map from a digital hologram, method for coding a video sequence, computer program Technical field of the invention
[0001] The present invention relates to the technical field of digital holography.
[0002] It relates more particularly to a method for estimating a depth map from a digital hologram representing a scene. It also relates to a method for coding a video sequence using a motion vector from two digital holograms. State of the art
[0003] A digital hologram is the recording in digital form of a section, at a reference plane, of a light field propagating in a three-dimensional space, with a view to being able to subsequently restore this light field to a user.
[0004] Methods are known for recovering depth information in a digital hologram. These methods use methods for determining depth from the focus plane (known in particular as "depth from focus"). These methods are configured to recover depth information from two-dimensional images using measurements of the degree of blur on these images. These methods are functional, but pose various problems, in particular of precision and accuracy because in these methods several depths can be associated with the same pixel, causing errors in the choice of the depth attributed to a pixel. Presentation of the invention
[0005] In this context, the invention proposes a method, implemented by a calculation unit, for estimating a depth map from a digital hologram representing a scene, said method comprising: - a step of reconstructing, by means of said digital hologram, n images of the scene, each image being associated with a depth of said scene and comprising a plurality of pixels, each image being defined by the same window; - for each image, a step of forming thumbnails formed by contiguous pixels and associated with two-dimensional regions of the window; - a step of applying an operator to each of the thumbnails of each image associated with a depth to provide a metric per thumbnail and per depth; - a step of determining a depth associated with each two-dimensional region sional based at least on the metrics relating to the thumbnails associated with the two-dimensional region concerned; - a step of determining the depth of a pixel of the depth map by selecting the depth having a maximum number of repetitions in the two-dimensional regions comprising the pixel concerned.
[0006] Thanks to the invention, the method proposes a solution which makes it possible to avoid depth redundancies associated with a pixel. As a result, a single depth is assigned to each pixel at the output of the method according to the present disclosure. The depth map thus obtained is therefore more precise and more accurate.
[0007] In one embodiment, the depth associated with each region is determined by selecting the depth for which the absolute value difference between the metric relating to the two-dimensional region concerned and the depth concerned is maximum, and the average of the metrics relating to the two-dimensional region concerned.
[0008] Thanks to this embodiment, the choice of the depth associated with the pixels of each two-dimensional region is less sensitive to speckle noise and is likely to be induced in the reconstruction step. In addition, the choice of the depth associated with the pixels of each two-dimensional region is also less sensitive to the blur present on the thumbnails which may be caused by a low depth of field in the digital hologram. Such characteristics thus make it possible to obtain an even more precise and accurate depth map. The performance of the estimation of the depth map is therefore improved.
[0009] In another embodiment, the window of the n images has a first main dimension and a second main dimension and each thumbnail has a first secondary dimension and a second secondary dimension, said first secondary dimension, respectively said second secondary dimension, depending on the first main dimension, respectively on the second main dimension, by a reduction factor.
[0010] According to a possible example, the reduction factor is between 61 and 32.
[0011] According to yet another example, each thumbnail is centered on at least one pixel.
[0012] In one embodiment, each vignette has a rectangular shape defined by the following formula: v) = I^m + u - n + v -^)withi corresponding to an index of an image, noted I, associated with a depth of the n images, m and n corresponding to the coordinates of the pixel in the window, u and v corresponding to the coordinates of the pixel in the two-dimensional region associated with the thumbnail in which the pixel is centered, if corresponding to a first principal dimension of the window associated with the image I of index i and s2 corresponding to a second principal dimension of the window associated with the image I of index i.
[0013] In one possible example, the first and second principal dimensions are equal.
[0014] In one embodiment, the method comprises a step of determining a minimum depth and a maximum depth of said scene, the n images being spaced apart by a uniformly sampled distance in an interval defined between the maximum depth and the minimum depth of said scene.
[0015] In an exemplary embodiment, n is equal to 250.
[0016] In one embodiment, the operator applied in the applying step is at least based on at least one of the following operators: - a gradient; - a Laplacian; - wavelets; - a Gabor transform; - statistics from information extracted from the n images or from the digital hologram; - a discrete cosine transform.
[0017] In one embodiment, the n images provided in the holographic reconstruction step are calculated using an angular spectrum propagation defined by the following formula: y. _ p (| with F and F 1 corresponding to direct and inverse Fourier transforms, respectively, and fx and fy are the frequency coordinates of the digital hologram in the Fourier domain according to a first spatial direction X and a second spatial direction Y of the digital hologram, X the acquisition wavelength, i the index of the reconstructed image I with i ranging from 1 to n, Z; the depth associated with the reconstructed image.
[0018] In one embodiment, the method further comprises constructing a color image associating colorimetric information with a pixel of the depth map based on the colorimetric information of the pixel concerned at the depth determined in the step of determining the depth of a pixel of the depth map.
[0019] The invention also proposes a method, implemented by a calculation unit, for estimating a depth map from a digital hologram representing a scene, said method comprising: - a step of reconstruction, by means of said digital hologram, of n images of the scene, each image being associated with a depth of said scene and comprising a plurality of pixels, each image being defined by the same window; - for each image, a step of forming thumbnails formed by contiguous pixels and associated with two-dimensional regions of the window; - a step of applying an operator to each of the thumbnails of each image associated with a depth to provide a metric per thumbnail and per depth; - a step of determining a depth associated with each two-dimensional region by selecting the depth for which the absolute value difference between the metric relating to the two-dimensional region concerned and the depth concerned, and the average of the metrics relating to the two-dimensional region concerned, is maximum.
[0020] In one embodiment, the method further comprises a step of determining the depth of a pixel of the depth map by selecting the depth having a maximum repetition number in the two-dimensional regions comprising the pixel concerned.
[0021] The invention also proposes a method for coding a video sequence comprising at least one first digital hologram and at least one second digital hologram, said method comprising a step of estimating a first depth map from the first digital hologram as explained above and a step of estimating a second depth map from the second digital hologram as explained above, said method further comprising a step of determining a motion vector on the basis of the first and second depth maps.
[0022] In one embodiment, the method comprises: - a step of calculating a predicted hologram by applying said motion vector to the first hologram; - a step of calculating a residue by difference between the second hologram and the predicted hologram.
[0023] The invention also proposes a calculation unit for estimating a depth map from a digital hologram representing a scene, said calculation unit comprising: - a reconstruction module configured to reconstruct n images of said scene by means of said digital hologram, each image being associated with a depth of said scene and comprising a plurality of pixels, each image being defined by the same window; - a training module configured to provide thumbnails formed from contiguous pixels from each image, said thumbnails being associated respectively with two-dimensional regions of the window; - an application module configured to apply an operator to each of the thumbnails of each image associated with a depth to provide a metric per thumbnail and per depth; - a depth determination module configured to determine a depth associated with each two-dimensional region; - a determination module configured to determine the depth of a pixel of the depth map by selecting the depth having a maximum number of repetitions in the two-dimensional regions comprising the pixel concerned.
[0024] In one embodiment, the determination module associated with each two-dimensional region is configured to select the depth for which the absolute value difference between the metric relating to the two-dimensional region concerned and to the depth concerned, and the average of the metrics relating to the two-dimensional region concerned, is maximum.
[0025] The invention also proposes a calculation unit for estimating a depth map from a digital hologram representing a scene, said calculation unit comprising: - a reconstruction module configured to reconstruct n images of said scene by means of said digital hologram, each image being associated with a depth of said scene and comprising a plurality of pixels, each image being defined by the same window; - a training module configured to provide thumbnails formed from contiguous pixels from each image, said thumbnails being associated respectively with two-dimensional regions of the window; - an application module configured to apply an operator to each of the thumbnails of each image associated with a depth to provide a metric per thumbnail and per depth; - a depth determination module configured to determine a depth associated with each two-dimensional region by selecting the depth for which the absolute value difference between the metric relating to the two-dimensional region concerned and the depth concerned, and the average of the metrics relating to the two-dimensional region concerned, is maximum.
[0026] In one embodiment, the calculation unit further comprises a determination module configured to determine the depth of a pixel of the depth map by selecting the depth having a maximum repetition number in the two-dimensional regions comprising the pixel concerned.
[0027] The invention also provides a computer program comprising instructions executable by a processor and designed to implement a method as mentioned above when these instructions are executed by the processor, the unit of the aforementioned calculation being for example formed by this processor.
[0028] The invention finally proposes a recording medium, possibly removable, readable by such a processor and storing such a computer program. Detailed description of the invention
[0029] Furthermore, various other characteristics of the invention emerge from the appended description given with reference to the drawings which illustrate non-limiting forms of embodiment of the invention and where:
[0030] [Fig. 1] is a schematic representation of an embodiment of a computing unit for estimating a depth map from a digital hologram representing a scene;
[0031] [Fig.2] is a schematic representation of an embodiment of a computing unit for encoding a video sequence;
[0032] [Fig.3] is a schematic representation of an image obtained by a reconstruction module of the computing unit illustrated in [Fig.l];
[0033] [Fig.4] is a schematic representation of an image cut by a formation module of the computing unit illustrated in [Fig.l];
[0034] [Fig.5] is a schematic representation of a first embodiment of a method for estimating a depth map according to the present disclosure;
[0035] [Fig.6] is a schematic representation of the images obtained by a reconstruction step of the method according to the present disclosure;
[0036] [Fig.7] is a schematic representation of an embodiment of a method for encoding a video sequence according to the present disclosure. Device
[0037] [Fig.l] illustrates an example of a computing unit 10 for estimating a depth map C from a digital hologram H according to the present disclosure.
[0038] By calculation unit 10 is meant any computer or processor or any other electronic element making it possible to implement a succession of commands and / or calculations. This calculation unit 10 typically comprises a processor, a memory and different input and output interfaces. In the example illustrated in [Fig.l], the input data of the calculation unit 10 comprise at least the digital hologram H and the output data of the calculation unit 10 comprise at least the estimated depth map C.
[0039] The calculation unit 10 illustrated in [Fig.l] comprises a reconstruction module 11, a training module 12, an application module 13, a module 14 for determining a depth Dp, a module 15 for determining a depth dp at each pixel.
[0040] Each of these modules is for example implemented due to the execution, by the processor, computer program instructions, which can be stored in the aforementioned memory. Alternatively, at least one of these modules can be implemented by means of a dedicated electronic circuit, such as an application-specific integrated circuit.
[0041] According to the present disclosure, the digital hologram H representing a scene is received by the reconstruction module 11. In this example, the scene is a three-dimensional scene defined according to a reference frame (O, x, y, z) in which O represents the origin of the reference frame and x, y, z representing spatial directions of the digital hologram H with x being a first spatial direction of the digital hologram H, y being a second spatial direction of the digital hologram H and z being a depth axis of the digital hologram.
[0042] In this example, the scene may include one object or multiple objects.
[0043] The digital hologram H in the present disclosure is defined by a matrix of pixels in a plane defined by the first and second spatial directions (x,y), the depth axis z being defined perpendicular to this plane. In the remainder of the description, the digital hologram H is defined in the plane of equation z=0. Each pixel of the digital hologram H typically represents a light wave received at this pixel.
[0044] The digital hologram H in the present disclosure was acquired with a wavelength X in the visible, for example between 400 nm and 780 nm. In this example, the wavelength may be 550 nm.
[0045] Of course, in the present disclosure, several digital holograms acquired with several acquisition wavelengths and illustrating the same scene can be processed by the calculation unit 10. These different digital holograms will be processed as will be described below.
[0046] The reconstruction module 11 is configured to reconstruct n images f of the scene by means of the received digital hologram H, with i an integer ranging from 1 to n.
[0047] The reconstructed images f can have several color spaces by reconstructing the images h from several digital holograms H acquired at different wavelengths (and illustrating the same scene). For this purpose, the reconstructed images h can be RGB images.
[0048] According to the present disclosure, each reconstructed image h is defined in a reconstruction plane which is perpendicular to the depth axis of the digital hologram H (along the z axis). Each reconstruction plane is associated with a depth value (as explained in [Fig.6]), making it possible to associate with each reconstructed image h a depth z;, the index i referring to the index of the reconstructed image f.
[0049] Following this example, the reconstruction module 11 provides n images f of the scene, each being defined by a plurality of pixels. According to the present disclosure, the images h are all defined by the same window 2, thus making it possible to obtain images h of the same size.
[0050] In the remainder of the description, window 2 is represented by a two-dimensional plane defined by the first and second spatial directions (x, y). In the present disclosure, window 2 is defined by the set of pixels 1 of image h, which means that window 2 is the size of image Ib
[0051] The reconstructed images are preferably made up of as many pixels as the digital hologram H. Thus, the reconstructed images h and the digital hologram H are of the same size.
[0052] Each image provided (h to In) by the reconstruction module 11 is associated with a depth noted zi5 with i corresponding to the index associated with the image h of the scene. In the present disclosure, the reconstruction module 11 is configured to reconstruct at least 2 images. For example, 250 images are reconstructed by the reconstruction module 11 from the digital hologram H. These 250 images will each be associated with a depth z;. Of course, in other embodiments, more images or fewer images can be reconstructed by the reconstruction module 11.
[0053] In the following, two-dimensional regions R of the aforementioned window 2 are used. These two-dimensional regions R are, for example, rectangles included in the window 2. The two-dimensional regions R are made up of a fixed number of contiguous pixels of the image I;. All the reconstructed images h have the same two-dimensional regions R, which means that the two-dimensional regions R of the image h will be identical to the two-dimensional regions R of the image I2, I3, .. .In. Furthermore, according to the present disclosure, the two-dimensional regions R may overlap. This means that each pixel of a given image h may belong to several two-dimensional regions R. The overlap of the two-dimensional regions R in the reconstructed images improves the accuracy of the estimation of the depth map. For example, some pixels may belong to at least two two-dimensional regions.
[0054] The images h are then transmitted to the training module 12. According to the present disclosure, for each image f, the training module 12 is configured to form a thumbnail 5 for each two-dimensional region R of the given image. The thumbnails 5 are formed from contiguous pixels 1 from each image L. Thus, the training module 12 is configured to cut each image h into thumbnails 5 made from contiguous pixels belonging to the same image L. In the present disclosure, the thumbnails 5 are respectively associated with two-dimensional regions R of the window 2, which means that the pixels 1 of each thumbnail 5 de- end a two-dimensional region R.
[0055] In this example, the images f are all cut in the same way. Thus, the two-dimensional regions R of image Ii will be similar to the two-dimensional regions of image I2, or I3, or etc. This is due to the fact that the two-dimensional regions R of each image h are composed of pixels having similar spatial coordinates in the images I;.
[0056] The thumbnails 5 are then transmitted to the application module 13. The application module 13 is configured to apply an OPT operator to each of the thumbnails 5. This OPT operator is applied to each of the thumbnails 5 of each image h associated with a depth z, here 250 images, to provide a metric per thumbnail 5 and per depth (associated with each reconstruction plane 3).
[0057] From the thumbnails 5 and the metric associated with each thumbnail 5, the depth determination module 14 is configured to determine a depth Dp associated with each two-dimensional region R.
[0058] For this, the module 14 for determining a depth associated with each two-dimensional region R is configured to select the depth Dp for which the difference in absolute value between the metric relating to the two-dimensional region R concerned and the depth concerned, and the average of the metrics relating to the two-dimensional region R concerned, is maximum. As a result, the depth Dp attributed to each two-dimensional region R is thus less sensitive to speckle or speckle noise and to blurring, making it possible to more accurately select the depth dp attributed to all the pixels of the same two-dimensional region R. Such a characteristic makes it possible to obtain at the output of the calculation unit 10 an even more precise and accurate depth map C.
[0059] The depth Dp determined by the determination module 14 is recorded for each two-dimensional region R.
[0060] From the depth Dp associated with each two-dimensional region R, the determination module 15 is configured to determine the depth dp of a pixel 1 of the depth map C.
[0061] For this, the determination module 15 is configured to evaluate the repetition of the depth Dp by looking at all the two-dimensional regions which comprise the pixel concerned. The depth Dp having the maximum number of repetitions in these regions is selected as being the depth dp associated with this pixel.
[0062] The determination module 15 is then configured to repeat this action for all the pixels of the window 2. Thus, the pixels 1 of the window 2 are individually assigned a depth dp. A depth map C can thus be obtained at the output of the determination module 15 when a depth value dp has been assigned to all the pixels 1 of the depth map C.
[0063] In the present disclosure, the depth map C is defined by a matrix of pixels in a plane defined by the first and second spatial directions (x, y). The depth map C is notably defined by all the pixels of the window 2 and the pixels of the digital hologram H. Each pixel of the depth map C has an intensity value which depends on the depth dp associated with the pixel concerned.
[0064] The calculation unit 10 according to the present disclosure makes it possible to obtain a depth map C in which a single depth dp is attributed to each pixel 1 of the depth map C.
[0065] In the present disclosure, the depth map C obtained by the calculation unit 10 according to the present disclosure is therefore precise and accurate.
[0066] Optionally, the calculation unit 10 further comprises a construction module 16 configured to construct a color image by associating with a pixel of the depth map C colorimetric information on the basis of the colorimetric information of the pixel concerned at the depth of this pixel in the depth map determined by the determination module 15, as will be described later in the method 100. In this embodiment, a color image, denoted Louieur, can further be provided at the output of the calculation unit 10.
[0067] [Fig. 2] illustrates another example of a computing unit 20 according to the present disclosure. The computing unit 20 comprises the computing unit 10 illustrated in [Fig. 1]. Thus, only the differences with [Fig. 1] will be described. This computing unit 20 typically comprises a processor, a memory and various input and output interfaces.
[0068] The computing unit 20 illustrated in [Fig.2] receives a first digital hologram H1 and at least one second digital hologram H2. The first digital hologram H1 and the second digital hologram are sent to the computing unit 10 in order to provide a first depth map C1 associated with the first digital hologram H1 and a second depth map C2 associated with the second digital hologram H2.
[0069] The calculation unit illustrated in [Fig.2] further comprises a module 21 for determining a motion vector vm on the basis of the first depth map C1 and second depth map C2. Thus, a motion vector vm is provided at the output of the determination module 21 as will be described later in the method 200.
[0070] Optionally, the calculation unit 20 illustrated in [Fig.2] further comprises a prediction module 22 by application to the first digital hologram H1 of the motion vector vm (see method 200). In this case, the prediction module 22 receives the first digital hologram H1 and the calculated motion vector vm by the determination module 21 and provides the predicted hologram Hp.
[0071] In this embodiment, the calculation unit 20 also comprises, in a non-limiting manner, a calculation module 23 for a residue r. The calculation module 23 of the residue uses the second hologram H2 and the predicted hologram Hp to provide the residue r by difference between the second hologram H2 and the predicted hologram Hp. Process
[0072] A first embodiment of a method 100 implemented by the processing unit 10 illustrated in [Fig.l] will be explained using Figures 2 to 6.
[0073] [Fig.5] illustrates an example of method 100 implemented by the calculation unit 10 illustrated in [Fig.l].
[0074] The method 100 illustrated in [Fig.5] comprises a reconstruction step E2, a training step E4, an application step E6, a determination step E8 of a depth Dp associated with each two-dimensional region R and a determination step of the depth dp of a pixel.
[0075] In this example, the method 100 begins with a step E1 of determining a minimum depth zmin and a maximum depth zmax in the scene of the digital hologram H. This step of determining E1 makes it possible to choose more efficiently the number of images f reconstructed in the reconstruction step E2 as well as the distance ze separating each image h (i.e. reconstruction plane 3 of each image f) (see below).
[0076] Optionally, if the reconstructed images h are color images (as explained in the description of the calculation unit 10), for example RGB, the reconstruction step E2 can comprise a conversion into gray level of the reconstructed images h in order to optimize the implementation time of the following steps of the method 100. Of course, the colorimetric information of the reconstructed images h can be saved in the memory of the calculation unit 10 in order to be used in the rest of the method 100.
[0077] In one embodiment, the minimum depth zmin and the maximum depth zmax may be determined visually from the intensity associated with each pixel of the digital hologram H or from a query searching for the pixel having the maximum and minimum intensity. Of course, in another embodiment, the minimum depth zmin and the maximum depth zmax may be known beforehand.
[0078] The method 100 then comprises the reconstruction step E2, by the reconstruction module 11, of the n images h of the scene by means of the digital hologram H.
[0079] According to the method 100, a succession of images h is obtained following the reconstruction step E2 ([Fig.6]). Each image f is associated with a depth, noted z;.
[0080] In this example, 250 images h are reconstructed. Thus, n is equal to 250. The number of reconstructed images f depends on the implementation time of the method 100 and a minimum number of images necessary to accurately estimate the depth map C.
[0081] Preferably, the n images provided in the holographic reconstruction step E2 are calculated using an angular spectrum propagation defined by the following formula: y. _ 17^ ( / / ) |with F and F 1 corresponding to transforms of direct and inverse Fourier, respectively, and fx and fy are the frequency coordinates of the digital hologram H in the Fourier domain along a first spatial direction x and a second spatial direction y of the digital hologram, / . the acquisition wavelength of the digital hologram H, i the index of the reconstructed image I with i ranging from 1 to n and z; the depth given in the reconstruction plane of the image f.
[0082] [Fig.6] illustrates an example of a set of images h reconstructed in the reconstruction step E2 of the method 100 via the propagation of the angular spectrum.
[0083] In [Fig.6], the reconstructed images are located in a reconstruction plane 3 which is perpendicular to a depth axis (along the z axis). Each reconstruction plane 3 is associated with a depth value. This depth value defines a distance between plane 4 of the digital hologram H and the reconstruction plane 3. In this example, plane 4 of the digital hologram H is defined at the level of the light source used to acquire the digital hologram H and thus has a zero reference position, noted z0 = 0. Plane 4 of the digital hologram H is centered on the optical axis of the source used to acquire the digital hologram H. Thus, in the example of [Fig.6], all the images h are centered on the optical axis of the light source (which is defined on the spatial axis z) and are spaced by the same distance ze.The distance ze between each reconstruction plane 3 is similar and is, for example, 50 micrometers (pm).
[0084] Using the angular spectrum method thus makes it possible to obtain a succession of images h which are aligned on the optical axis of the light source used to acquire the digital hologram H.
[0085] In [Fig.6], the distance ze separating the images is determined from the maximum depth zmax and zmin, for example determined from the determination step EL. Thus, the first reconstructed image L is spaced from plane 4 of the digital hologram H by the minimum depth zmin while the last reconstructed image In is spaced from plane 4 of the digital hologram H by the maximum depth zmax.
[0086] In another embodiment, the reconstruction step E2 carried out by the reconstruction module 11 uses the method described in the document “Angular spectrum-based wave-propagation method with compact space bandwidth for large propagation distances”, doi: 10.1364 / OL.40.003420.
[0087] As an example, [Fig.3] illustrates an example of an image obtained by the reconstruction module 11. In this example, the image, here the image Ib, comprises a plurality of pixels 1. Each pixel 1 of the image considered, here Ib, has a spatial position in the image considered h which is given by a line number m and column number n in the corresponding image Ib.
[0088] In [Fig.3], the image h is defined by the window 2 which is a function of the size of the image Ib
[0089] The image h illustrated in [Fig.3] also has a first principal dimension, noted si, and a second principal dimension, noted s2.
[0090] In the example of [Fig.3], the image h is square in shape. The first principal dimension s1 is therefore perpendicular to the second principal dimension s2 and are of the same size. In the method 100, the size of the images h depends on the size of the digital hologram H. Advantageously, the reconstructed images h in this example are the size of the digital hologram H in order to preserve all the information contained in the digital hologram H.
[0091] The reconstruction module 11 illustrated in [Fig. 1] reconstructs in this example images h of similar size. Consequently the windows 2 of the images f reconstructed using the reconstruction module 11 are similar.
[0092] For example, the images f are 1024 x 1024 in size with pixels 1 of 6 micrometers (pm). These characteristics are a function of the size of the sensor used to record the digital hologram H.
[0093] Of course, in the present disclosure, the reconstructed images h could have been processed by different image processing techniques by the reconstruction module 11. When the reconstructed images f are color images (for example RGB images), the latter can be converted into gray levels by techniques known to those skilled in the art, for example to implement step E6 with the local variance operator.
[0094] After the reconstruction step E2, the method 100 then comprises the step E4 of forming thumbnails 5 by the training module 12. The thumbnails 5 determined by the training module 12 are formed from contiguous pixels 1 from each image L. The thumbnails 5 are thus respectively associated with two-dimensional regions R of the window 2.
[0095] By two-dimensional region R, we mean particular zones of the window 2 defined by the contiguous pixels forming the vignette 5 considered. Thus, following this example, the window 2 associated with a given image, for example the image L of [Fig.4] , is cut into a plurality of vignettes 5.
[0096] In the example of [Fig.4], each thumbnail 5 of the image h is associated with a two-dimensional region R. Indeed, according to this embodiment, all the images f are cut in the same way. Thus, the two-dimensional region R of the thumbnail 5 comprising the pixels 1 of the first three columns and the first three rows of the image h is identical to the two-dimensional region R of the thumbnail 5 comprising the pixels of the first three columns and the first three rows of the image I2, or I3, or In. Such a characteristic facilitates the implementation of the method 100.
[0097] Optionally, each thumbnail 5 is centered on at least one pixel 1 of the pixels of said thumbnail 5. In the example of [Fig.4], the thumbnails 5 are centered on a pixel 1, which makes it possible to obtain two-dimensional regions R centered on a pixel 1. Such a configuration makes it possible to define a reference point at each thumbnail 5 of each image U. Of course, the two-dimensional regions R can overlap. This is due to the fact that the pixels can belong to several two-dimensional regions R. Preferably, the thumbnails are centered on a pixel having an optimal focus compared to a focus of a pixel adjacent to said pixel. Such a characteristic makes it possible to improve the performance of the estimation of the depth map. By optimal focus of a pixel, we mean a pixel having a low level of noise (for example having no or little blur).
[0098] As an example, each vignette 5 is in the following identified from the two-dimensional region R with which it is associated and at the coordinates of the pixel 1 on which it is centered. Thus, according to this principle, each vignette 5 is illustrated by the following information R;, n, m, with i the index of the image associated with the vignette 5 and m and n corresponding to the coordinates of the pixel 1 on which the vignette 5 associated with the region Ri is centered. Therefore, the vignette 5 at the top left of the image h illustrated in [Fig.4] will be represented by the data Rb2,2.
[0099] In the example illustrated in [Fig.4], each vignette 5 has a first secondary dimension, denoted t1, and a second secondary dimension, denoted t2. The vignettes 5 are preferably all of similar size, facilitating the implementation of the method 100.
[0100] In one embodiment of the method 100, each vignette 5 has a rectangular shape defined by the following formula: v) = Ii(m + u - y, n + v - )with i corresponding to an index of an image, noted I, associated with a depth, m and n corresponding to the coordinates of pixel 1 in image f on which thumbnail 5 is centered in window 2, u and v corresponding to the coordinates of the pixel in the two-dimensional region R associated with thumbnail 5 in which the pixel is centered, s 1 corresponding to a first dimension main dimension of window 2 associated with image I of index i and s2 corresponding to a second main dimension of the window associated with image I of index i.
[0101] Selecting thumbnails 5 having a size determined by the above formula makes it possible to adapt the precision of the depth map C. Indeed, choosing a thumbnail size 5 that is too small compared to the scene of the digital hologram H would cause oversampling of the thumbnails 5 of the images h and this could lengthen the implementation time of the method 100 and induce errors in the estimation of the depth map C. Conversely, taking thumbnails 5 that are too large could induce undersampling of the thumbnails 5 images h. The depth map C obtained by the method 100 could be less precise.
[0102] Advantageously, the size of the thumbnails 5 is adapted to the size of the image Ib. In particular, the first secondary dimension t1 depends on the first main dimension s1 by a reduction factor and the second secondary dimension t2 depends on the second main dimension s2 by a reduction factor. Such a configuration makes it possible to improve the speed of implementation of the method 100 implemented by the calculation unit 10.
[0103] Preferably, the reduction factor associated with the first secondary dimension t1 is similar to the reduction factor associated with the second secondary dimension t2. This makes it possible to further improve the ease of implementation and the implementation time of the method.
[0104] Advantageously, the reduction factor associated with the first secondary dimension t1 is chosen between 61 and 32 and the reduction factor associated with the first secondary dimension t2 is chosen between 61 and 32. Such a configuration makes it possible to adapt the size of the thumbnails 5 to the objects in the scene, which improves the accuracy of the estimation of the depth map C.
[0105] According to one embodiment, the first principal dimension s1 and the second principal dimension s2 of the images h formed by the reconstruction module 11 are equal. Thus, this makes it possible to obtain square-shaped thumbnails 5 and two-dimensional regions R. Such a configuration improves the ease of implementation of the method 100 while making it possible to obtain good results on the estimation of the depth map.
[0106] In one embodiment, the first and second secondary dimensions t1, t2 are similar. For example, the thumbnails 5 can thus have a size defined in number of pixels, for example 5 pixels x 5 pixels (i.e. 5x5 pixels), or 9 pixels x 9 pixels, or 13 pixels x 13 pixels, or 17 pixels x 17 pixels, or 21 pixels x 21 pixels or 33 pixels x 33 pixels with pixels of size between 1 pm to 15 pm, preferably equal to 6 pm.
[0107] According to this embodiment, a thumbnail size 5 of 13 x 13 pixels allows to obtain a better estimation of the depth of pixels positioned on the contours of areas or objects of the scene or on the corners and edges of the digital hologram H while the depth estimation on areas presenting small variations in depth and / or having little texture will be less efficient.
[0108] For 5-thumbnails larger than 13 x 13 pixels (with 6 pm pixels), more depth information is included in these 5-thumbnails (i.e. because these 5-thumbnails are made up of more 1-pixels), which makes it possible to improve the estimation of the depth map. However, for thumbnails of size 33 x 33 pixels or of size greater than 33 x 33 pixels with pixels of 6 pm, too much depth information may be included in the thumbnails 5. Thus, there is a high probability of observing pixels having different depths and high variability (i.e. significant depth variation) within the same thumbnail 5. The choice of a single depth value Dp per thumbnail 5 in the determination step E8 could, in this embodiment, influence the determination step E10 of the depth of a pixel and therefore induce poor performance in the estimation of the depth map (see below).
[0109] Thus, the size of the thumbnails 5 influences the estimation of the depth map C. The latter is therefore chosen according to the scene of the digital hologram H.
[0110] In the example stated above, the pixels 1 of the images and of the digital hologram H are preferably 6 pm. However, identical results can be obtained for pixels of 1 to 15 pm. For example, the size of the thumbnails 5 given previously can be increased by a factor between 2 and 5 for pixels 1 less than 6 pm and decreased by a factor between 2 and 5 for pixels 1 greater than 6 pm.
[0111] The method illustrated in [Fig.5] then comprises a step E6 of applying the operator OPT to each of the thumbnails R of each image h associated with a depth z; to provide a metric per thumbnail 5 and per depth z;. The application step E6 is implemented by the application module 13.
[0112] In the following, the application of the OPT operator on the set of thumbnails 5 is represented by OPT(Ri, n, m).
[0113] According to the present disclosure, several types of operators may be used. In a non-limiting manner, the operators used may be based on at least one of the following operators: - a gradient; - a Laplacian; - wavelets; - a Gabor transform; - statistics from information extracted on the n images or on the digital hologram H; - a discrete cosine transform.
[0114] The choice of operator depends on the noise present on each vignette 5. Indeed, the speckling or shimmering noise and / or the blur present on each vignette 5 influence(s) the choice of the OPT operator.
[0115] For example, the gradient-based OPT operator is easy to implement and inexpensive in computational time. However, this OPT operator can increase the blur of the thumbnails 5 and therefore induce errors or inaccuracies in the estimation of the depth map C. Therefore, this type of OPT operator is preferably selected when the average blur over all the thumbnails 5 is low.
[0116] Preferably, the OPT operator based on statistics from information extracted on the n images or on the digital hologram H makes it possible to obtain better results in the selection of the depth attributed to each pixel (step E10), improving the precision of the method 100. By way of example, the statistical operator used is the local variance operator of the intensity level on the n images, preferably the local variance operator of the gray level when the images h are in gray level.
[0117] The application step E6 provides as output a metric per thumbnail 5 and per depth. Thus, all the thumbnails 5 of the different reconstruction plans 3 are associated with a metric.
[0118] The method 100 then comprises the step E8 of determination by the determination module 14 of the depth Dp associated with each two-dimensional region R on the basis of at least the metrics relating to the thumbnails 5 associated with the two-dimensional region concerned R.
[0119] Preferably, the determination step E8 of the method 100 works separately on each two-dimensional region R. Each two-dimensional region R is studied on all of the reconstruction planes 3. For this, the determination step E8 of the method 100 uses an optimization criterion which is applied individually to each two-dimensional region R positioned in the different reconstruction planes 3. This makes it possible to follow the evolution of the information contained in the given two-dimensional region R in the different reconstruction planes 3.
[0120] In this example, the optimization criterion is based on at least one of the following criteria: - argmin and calculated in this example using the following formula:
[0121] Dp^ „ = argmin^ JJPT^ „) ' - argmax and calculated in this example by the following formula:
[0122] Dp^ „ = argmin^OPT^ m_ „) '
[0123] with OPT(R;,m,n) corresponding to the metric of a two-dimensional region R in the reconstruction plane 3 associated with a depth z of index i with i corresponding to the reconstruction image (i.e. thus giving the depth of the reconstruction plane 3), Dpm,n corresponding to the depth attributed to the two-dimensional region R comprising the centering pixel of coordinates m, n in the image I;.
[0124] In the present disclosure, the depth z is sought for a given two-dimensional region R evolving in the different reconstruction planes 3; for which the two-dimensional region R has the least speckling or speckling noise.
[0125] According to a first embodiment, such a depth z; can either correspond to: - a global minimum reached by searching for example the maximum intensity value of the pixel on which the two-dimensional region R is centered given in the reconstruction planes 3 with the criterion argmin, or - a global maximum reached by searching for example the maximum intensity value of the pixel on which the two-dimensional region R is centered given in the reconstruction planes 3 with the argmax criterion.
[0126] Thus, according to this embodiment it is therefore necessary to verify the variation of the metric in the different reconstruction planes 3 for each two-dimensional region R.
[0127] In a second embodiment, the depth Dp associated with each two-dimensional region R is determined by selecting the depth for which the absolute value difference between the metric relating to the two-dimensional region R concerned and the depth concerned is maximum, and the average, noted p of the metrics relating to the two-dimensional region R concerned.
[0128] According to this second embodiment, the depth Dp associated with each two-dimensional region R can be determined according to the following formula: DPm, n = argma*^ IP " 0PT(Rù m, J | with ~ ^OPT^ „)
[0129] with p the average of the metric (result of the application step E6 OPT(Ri, n, m)) of all the two-dimensional regions R averaged over all the reconstruction planes 3, OPT(Ri,m,n) corresponding to the metric of a two-dimensional region R in the reconstruction plane 3 associated with a depth z of index i with i corresponding to the reconstruction image (i.e. thus giving the depth of the reconstruction plane 3), II the absolute value operator, Dpm,n corresponding to the depth attributed to the two-dimensional region R comprising the centering pixel of coordinates m, n.
[0130] The second embodiment thus makes it possible to simultaneously search for the global maxima and minima of the different two-dimensional regions R (here determined from the pixel on which the two-dimensional region R is centered). According to this second embodiment and for a given two-dimensional region R, it is no longer necessary to check the variation of the metric in the different reconstruction planes 3 to select the appropriate optimization criterion (argmin or argmax as described in the first embodiment), which makes it possible to improve the implementation time of the method 100. In addition, such a configuration also improves the accuracy and ease of implementation since a single type of optimization operator is used for all the two-dimensional regions R.
[0131] Thus, following the determination step E8, all the two-dimensional regions R are assigned a depth value Dp.
[0132] The method 100 then comprises the step E10 of determining the depth dp of a pixel 1 of the depth map C by selecting the depth Dp having a maximum number of repetitions in the two-dimensional regions R comprising the pixel 1 concerned. This determination step E10 makes it possible to assign to each pixel 1 its specific depth dp.
[0133] As an example, the depth dp assigned to a pixel 1 in the determination step E10 can be determined from the following formula: dpmn~ )
[0134] with A- count [argmax I / / - OPT(Rim — coimt [Dp \
[0135] ettt = ^LpPT(,RtM}
[0136] where count(Dpn,m) corresponds to a function which is configured to count the number of occurrences of the value Dpn,m associated with a pixel and max(A) the function which returns the maximum number of occurrences of the value Dpm>n.
[0137] In a first case, a given pixel 1 can have an identical depth value Dp in all the two-dimensional regions R in which it is included.
[0138] In a second case, a given pixel 1 can have several depth values Dp across all the two-dimensional regions R. This is particularly possible at the level of pixels 1 belonging to several two-dimensional regions R.
[0139] According to this embodiment, for a given pixel, each time a two-dimensional region R contains this given pixel, the depth value Dp determined in the determination step E8 for this two-dimensional region R is recorded. The determination module 15 then counts the number of repetitions of the different depths Dp which have been assigned to all the two-dimensional regions comprising the pixel concerned (previous determination step E8). Thus, the value Dp which has the greatest number of repetitions is selected to be the depth dp assigned to this pixel in the determination step E10. Therefore, for a given pixel, the depth value dp assigned to this pixel is the depth Dp that has been counted the greatest number of times.
[0140] The method 100 therefore makes it possible to process the pixels 1 individually to assign them a single depth dp. The method 100 thus proposes a solution that is easy to implement and inexpensive in terms of computation time for accurately and reliably assigning a depth dp to a pixel in order to construct a depth map from the digital hologram H.
[0141] According to an embodiment of the method 100, the determination step E10 is preferably repeated for all the pixels of the window. H. In this way, the method 100 provides a depth map C for which each pixel of the depth map C contains depth information. In this way, the depth map estimated by means of the method 100 can be considered as a two-dimensional representation of the 3D scene in which the columns and rows of the depth map C provide spatial information (for example, along the x and y axes) and the intensity value associated with each pixel gives information on the depth of this pixel (information oriented along the depth axis z).
[0142] Optionally, the method 100 comprises a step E12 of constructing a color image, denoted Louieur by the construction module 16. The color image Louieur is determined using the depth map C provided at the end of the determination step E10. For this purpose, the construction module 16 associates colorimetric information with each pixel of the depth map C. This colorimetric information is determined using the colorimetric information of the pixel in the image h, that is to say in the reconstruction plane 3, associated with the depth value dp determined in the determination step E10.
[0143] In this way, the method 100 simply retrieves the colorimetric information from the depth map C and the information of the reconstructed images h in the reconstruction planes 3 at the depth dp.
[0144] The color image IcouieUr obtained at the end of the construction step E12 thus comprises in a first space the depth map C and in a second space a color image, for example in an RGB space. The color image IcouieUr thus obtained can be an RGB-D image.
[0145] Such a Louieur image thus makes it possible to describe the geometry of the scene as well as its depth. This Louieur image can thus be used in various applications, such as in the detection of three-dimensional movement which can be used for the compression of a holographic video.
[0146] A second example of a method 200 implemented by the processing unit 20 illustrated in [Fig.2] will be explained using [Fig.7].
[0147] The method 200 is a method for encoding a video sequence. The method 200 illustrated in [Fig.7] uses a first digital hologram, denoted H1, and a second digital hologram, denoted H2. The first digital hologram H1 can present a scene at a given time and the second digital hologram H2 can illustrate the scene at a second given time, greater than the first time.
[0148] The method 200 thus comprises a step E22 of estimating a first depth map Cl from the first digital hologram H1 by means of the method 100 illustrated in [Fig.5]. Such a step makes it possible to provide a first depth map Cl from the first digital hologram HL.
[0149] The method 200 also comprises the step E22 of estimating a second depth map C2 from the second digital hologram H2 by means of the method 100 illustrated in [Fig.5]. Such a step makes it possible to provide a second depth map C2 from the second digital hologram H2.
[0150] In this embodiment, the estimation steps E22 are carried out by the calculation unit 10 illustrated in [Fig.l].
[0151] After having obtained a depth map for each digital hologram H1, H2, the method 200 then comprises a step E24 of determining a motion vector vm on the basis of the first depth map C1 obtained from the first hologram H1 and on the basis of the second depth map C2 obtained from the second hologram H2. This motion vector vm is preferably determined by the determination module 21.
[0152] In a first embodiment, the method 100 used in steps E22 does not include a construction step E12. In this case, only a depth map associated with the first hologram H1 and a depth map associated with the second hologram H2 are therefore obtained following steps E22. The method 200 thus provides in this embodiment a motion vector vm in one dimension along the spatial depth dimension given along the depth axis z.
[0153] In a second embodiment, it is possible to obtain by the method 200 a motion vector vm having spatial components in three dimensions, that is to say on the axes x, y and z. In this case, the method 100 used in the steps E22 comprises the construction step E12. Therefore, each step E22 is configured to provide from the color image Icolor, a motion vector vm in two dimensions using the spatial components x and y extracted from the color space of the color image Louieur (for example RGB color space) and a motion vector vm on the spatial dimension of depth defined along the depth axis z and determined from the depth map C recorded in the space D of the image Louieur-
[0154] Optionally, the motion vector vm obtained in step E24 can be used to predict a digital hologram, denoted Hp.
[0155] According to this embodiment and in a non-limiting manner, the method 200 comprises, following the step E24 of determining the motion vector vm, a step E26 of calculating a predicted hologram Hp by the prediction module 22. In the example illustrated in [Fig.7], the predicted hologram Hp is obtained by applying to the first hologram H1 the motion vector vm determined in the determination step E24.
[0156] The method 200 then comprises a step E28 of calculating a residue r by difference between the second hologram H2 and the predicted hologram Hp calculated in the calculation step E26. The calculation step E28 is in this example carried out by the calculation module 23 illustrated in [Fig.2].
Claims
Claims
1. Method (100), implemented by a calculation unit (10), for estimating a depth map from a digital hologram representing a scene, said method (100) comprising: - a step of reconstructing (E2), by means of said digital hologram, n images of the scene, each image being associated with a depth of said scene and comprising a plurality of pixels (1), each image being defined by the same window (2); - for each image, a step of forming (E4) thumbnails (5) formed by contiguous pixels (1) and associated with two-dimensional regions of the window (2); - a step of applying (E6) an operator to each of the thumbnails (5) of each image associated with a depth to provide a metric per thumbnail (5) and per depth;- a step of determining (E8) a depth associated with each two-dimensional region on the basis of at least the metrics relating to the thumbnails (5) associated with the two-dimensional region concerned; - a step of determining (E10) the depth of a pixel (1) of the depth map by selecting the depth having a maximum number of repetitions in the two-dimensional regions comprising the pixel (1) concerned.;
2. Method (100) according to claim 1, in which the depth associated with each region is determined by selecting the depth for which the absolute value difference between the metric relating to the two-dimensional region concerned and the depth concerned, and the average of the metrics relating to the two-dimensional region concerned, is maximum.
3. Method (100) according to any one of claims 1 to 2, in which the window (2) of the n images has a first and second main dimensions and each thumbnail (5) has a first and second secondary dimensions, said first secondary dimension, respectively said second secondary dimension, depending on the first main dimension, respectively on the second main dimension, by a reduction factor.
4. The method (100) of claim 3, wherein the reduction factor is between 61 and 32.
5. A method (100) according to any one of claims 1 to 4, in in which each thumbnail (5) is centered on at least one pixel (1).
6. Method (100) according to the preceding claim, in which each thumbnail (5) has a rectangular shape defined by the following formula: K v) - + u - n + v - ) with i corresponding to an index of an image, noted I, associated with a depth of the n images, m and n corresponding to the coordinates of the pixel in the window, u and v corresponding to the coordinates of the pixel in the two-dimensional region associated with the thumbnail in which the pixel is centered, si corresponding to a first main dimension of the window associated with the image I of index i and s2 corresponding to a second main dimension of the window associated with the image I of index i.
7. The method (100) of any one of claims 3 to 6, wherein the first and second principal dimensions are equal.
8. Method (100) according to any one of claims 1 to 7, wherein it comprises a step of determining a minimum depth and a maximum depth of said scene, the n images being spaced by a uniformly sampled distance in an interval defined between the maximum and minimum depth of said scene.
9. The method (100) of any one of claims 1 to 8, wherein n is equal to 250.
10. Method (100) according to any one of claims 1 to 9, wherein the operator applied in the application step (E6) is at least based on at least one of the following operators: - a gradient; - a Laplacian; - wavelets; - a Gabor transform; - statistics from information extracted on the n images or on the digital hologram; - a discrete cosine transform.
11. Method (100) according to any one of claims 1 to 10, wherein the n images provided in the holographic reconstruction step are calculated using an angular spectrum propagation defined by the following formula: j _ ( H ) |with ct 1 corresponding to direct and inverse Fourier transforms, respectively, and fx and fy are the frequency coordinates of the digital hologram in the Fourier domain along a first spatial direction x and a second spatial direction y of the digital hologram, X the acquisition wavelength, i the index of the reconstructed image I with i ranging from 1 to n, z; the depth associated with the reconstructed image.
12. The method (100) of any one of claims 1 to 11, wherein the method (100) further comprises constructing a color image associating colorimetric information with a pixel of the depth map based on the colorimetric information of the pixel concerned at the depth determined in the step of determining the depth of a pixel of the depth map.
13. Method (200) for coding a video sequence comprising at least one first digital hologram and at least one second digital hologram, in which it comprises a step of estimating (E22) a first depth map from the first digital hologram according to the method (100) according to any one of claims 1 to 12 and a step of estimating (E22) a second depth map from the second digital hologram according to the method (100) according to any one of claims 1 to 12, said method (200) further comprising a step of determining (E24) a motion vector on the basis of the first and second depth maps.
14. Coding method (200) according to claim 13, wherein said method (200) comprises: - a step of calculating (E26) a predicted hologram by applying said motion vector to the first hologram; - a step of calculating (E28) a residue by difference between the second hologram and the predicted hologram.
15. A computer program comprising instructions executable by a processor and designed to implement a method according to any one of claims 1 to 14 when these instructions are executed by the processor.
16. Calculation unit (10) for estimating a depth map from a digital hologram representing a scene, said calculation unit comprising: - a reconstruction module (11) configured to reconstruct n images of said scene by means of said digital hologram, each image being associated with a depth of said scene and comprising a plurality of pixels, each image being defined by the same window; - a training module (12) configured to provide thumbnails formed from contiguous pixels from each image, said thumbnails being associated respectively with two-dimensional regions of the window; - an application module (13) configured to apply an operator to each of the thumbnails of each image associated with a depth to provide a metric per thumbnail and per depth; - a depth determination module (14) configured to determine a depth associated with each two-dimensional region; - a determination module (15) configured to determine the depth of a pixel of the depth map by selecting the depth having a maximum number of repetitions in the two-dimensional regions comprising the pixel concerned.
17. Calculation unit according to claim 16, in which the module for determining (14) a depth associated with each two-dimensional region is configured to select the depth for which the absolute value difference between the metric relating to the two-dimensional region concerned and the depth concerned, and the average of the metrics relating to the two-dimensional region concerned, is maximum.
