[go: up one dir, main page]

CN107301662B - Depth image compression recovery method, device, device and storage medium - Google Patents

Depth image compression recovery method, device, device and storage medium Download PDF

Info

Publication number
CN107301662B
CN107301662B CN201710524546.0A CN201710524546A CN107301662B CN 107301662 B CN107301662 B CN 107301662B CN 201710524546 A CN201710524546 A CN 201710524546A CN 107301662 B CN107301662 B CN 107301662B
Authority
CN
China
Prior art keywords
depth image
image
model
restored
branch model
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710524546.0A
Other languages
Chinese (zh)
Other versions
CN107301662A (en
Inventor
王旭
张乒乒
江健民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen University
Original Assignee
Shenzhen University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen University filed Critical Shenzhen University
Priority to CN201710524546.0A priority Critical patent/CN107301662B/en
Publication of CN107301662A publication Critical patent/CN107301662A/en
Application granted granted Critical
Publication of CN107301662B publication Critical patent/CN107301662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • G06T7/529Depth or shape recovery from texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明适用计算机技术领域,提供了一种深度图像的压缩恢复方法、装置、移动终端及存储介质,该方法包括:接收输入的待恢复深度图像的恢复请求,待恢复深度图像关联有对应的纹理图像,对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像,从而提高了深度图像的压缩恢复质量,进而提高了用户体验。

Figure 201710524546

The present invention is applicable to the field of computer technology, and provides a depth image compression and restoration method, device, mobile terminal and storage medium. The method includes: receiving an input restoration request of a depth image to be restored, and the depth image to be restored is associated with a corresponding texture image, preprocess the texture image and the depth image to be restored, obtain the high-frequency information of the texture image and the depth image to be restored, and input the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored respectively. To the Y branch model, D branch model and M branch model of the preset depth image restoration model, input the feature images recovered by the Y branch model and D branch model into the M branch model, and restore the depth image to be restored through the M branch model Corresponding depth images, thereby improving the compression and restoration quality of the depth images, thereby improving the user experience.

Figure 201710524546

Description

深度图像的压缩恢复方法、装置、设备及存储介质Depth image compression recovery method, device, device and storage medium

技术领域technical field

本发明属于计算机技术领域,尤其涉及一种深度图像的压缩恢复方法、装置、设备及存储介质。The invention belongs to the technical field of computers, and in particular relates to a method, device, device and storage medium for compression and restoration of depth images.

背景技术Background technique

在3D计算机图形学中,深度图像包含了视点与场景物体表面的距离信息。传统的机器视觉是把三维物体投影成二维图像,通过物体的特征、图像数据和成像过程之间的关系来恢复出三维景物。深度信息在三维重构起到了关键的作用。发送立体视频(左视图和右视图)能够提供3D体验,但是具有显著的限制。为了减少传输视图的数量,纹理加深度的格式已被广泛接受。这种方法是将几个视点的颜色信息和深度信息一起传输,然后使用基于深度图像的渲染(depth-image-based rendering,简称DIBR)技术合成虚拟视图。重建3D场景需要获取纹理信息和深度信息,高分辨的深度图像在存储和传输过程中都会占用大量的空间。因此,深度图像需要被压缩,以提高空间的利用率和传输效率。但压缩后的深度图像会存在模糊、块状等失真,这些失真会进一步导致3D场景绘制的失真。In 3D computer graphics, depth images contain information about the distance between the viewpoint and the surface of objects in the scene. The traditional machine vision is to project a three-dimensional object into a two-dimensional image, and restore the three-dimensional scene through the relationship between the characteristics of the object, the image data and the imaging process. Depth information plays a key role in 3D reconstruction. Sending stereoscopic video (left and right views) can provide a 3D experience, but has significant limitations. To reduce the number of transmitted views, the texture-plus-depth format has become widely accepted. This method transmits the color information and depth information of several viewpoints together, and then uses the depth-image-based rendering (DIBR) technique to synthesize the virtual view. Reconstructing a 3D scene requires obtaining texture information and depth information, and high-resolution depth images take up a lot of space during storage and transmission. Therefore, depth images need to be compressed to improve space utilization and transmission efficiency. However, the compressed depth image will have distortions such as blurring and blockiness, which will further lead to the distortion of 3D scene rendering.

有损压缩能够用较大的压缩比压缩图像,但有损压缩的图像是不可逆的。所以,图像压缩恢复也是人们一直研究的方向。早些年,很多研究者设计很多种平滑滤波器从空域或者变换域去除块状效应。Luo等人提出在空域和离散余弦变换(Discrete CosineTransform,简称DCT)自适应去除块状效应;Singh等人提出的模型能够实现用不同的滤波器对平滑和不平滑区域进行滤波。形状自适应离散余弦变换(Shape Adaptive DiscreteCosine Transform,简称SA-DCT)可能是目前最受欢迎得去块状效应的方法。通过计算,它能够变换滤波的形状大小来重建图像清晰的边缘。然而,这些滤波器可能会对图像进行过度平滑,造成图像的边缘模糊。Lossy compression can compress images with larger compression ratios, but lossy compressed images are irreversible. Therefore, image compression and recovery is also a research direction that people have been studying. In the early years, many researchers designed various smoothing filters to remove blockiness from the spatial or transform domain. Luo et al. proposed to adaptively remove block effects in the spatial domain and discrete cosine transform (DCT); the model proposed by Singh et al. can achieve smooth and non-smooth regions with different filters. Shape Adaptive Discrete Cosine Transform (SA-DCT for short) is probably the most popular method to get rid of blockiness. Computationally, it can transform the shape and size of the filter to reconstruct the sharp edges of the image. However, these filters may over-smooth the image, resulting in blurred edges.

近年来,卷积神经网络(Convolutional Neural Network,简称CNN)通过训练数据来学习特征检测,以其局部权值共享的特殊结构在语音识别和图像处理方面有着独特的优越性。CNN在图像复原邻域同样表现出卓越的性能。Dong等人提出的(Super-ResolutionConvolutional Neural Network,简称SRCNN)模型说明了端对端的数据通信网络(DataCommunication Network,简称DCN)存在解决图像超分辨的潜能。Deeper SRCNN通过增加层数来使图像恢复更好。但是,他们提出的算法主要是对图像进行超分辨分析的,去块状的效果较差。伪影消除卷积神经网络(Artifacts Reduction Convolutional Neural Network,简称AR-CNN)在SRCNN的基础上,针对的JPEG、JPEG2000、Twitter等压缩后的图像进行恢复。虽说这是一个更加普遍性的模型,但他们的模型用于恢复纹理图像,纹理图像和深度图像存在明显的不同。In recent years, Convolutional Neural Network (CNN) learns feature detection through training data, and its special structure of local weight sharing has unique advantages in speech recognition and image processing. CNN also shows excellent performance in the image restoration neighborhood. The Super-Resolution Convolutional Neural Network (SRCNN) model proposed by Dong et al. illustrates the potential of an end-to-end Data Communication Network (DCN) to solve image super-resolution. Deeper SRCNN makes image restoration better by increasing the number of layers. However, their proposed algorithm mainly performs super-resolution analysis on images, and the effect of deblocking is poor. On the basis of SRCNN, Artifacts Reduction Convolutional Neural Network (AR-CNN) is used to restore compressed images such as JPEG, JPEG2000, and Twitter. Although this is a more general model, their model is used to recover texture images, which are significantly different from depth images.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提供一种深度图像的压缩恢复方法、装置、设备及存储介质,旨在解决由于现有技术无法提供一种有效的深度图像的压缩恢复方法,导致深度图像的压缩恢复质量不好、用户体验不佳的问题。The purpose of the present invention is to provide a method, device, equipment and storage medium for compression and restoration of depth images, aiming to solve the problem that the quality of compression and restoration of depth images is not good due to the inability to provide an effective method for compression and restoration of depth images in the prior art. Good, bad user experience problem.

一方面,本发明提供了一种深度图像的压缩恢复方法,所述方法包括下述步骤:In one aspect, the present invention provides a method for compressing and restoring a depth image, the method comprising the following steps:

接收输入的待恢复深度图像的恢复请求,所述待恢复深度图像关联有对应的纹理图像;receiving an input restoration request for a depth image to be restored, where the depth image to be restored is associated with a corresponding texture image;

对所述纹理图像和所述待恢复深度图像进行预处理,获取所述纹理图像和所述待恢复深度图像的高频信息;Preprocessing the texture image and the depth image to be restored to obtain high-frequency information of the texture image and the depth image to be restored;

将所述纹理图像的高频信息、所述待恢复深度图像的高频信息和所述待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型;Input the high frequency information of the texture image, the high frequency information of the depth image to be restored and the depth image to be restored into the Y branch model, the D branch model and the M branch model of the preset depth image restoration model respectively;

将所述Y分支模型、D分支模型恢复得到的特征图像输入到所述M分支模型,通过所述M分支模型恢复出所述待恢复深度图像对应的深度图像。The feature images recovered by the Y-branch model and the D-branch model are input into the M-branch model, and a depth image corresponding to the depth image to be restored is recovered through the M-branch model.

另一方面,本发明提供了一种深度图像的压缩恢复装置,所述装置包括:In another aspect, the present invention provides an apparatus for compressing and restoring a depth image, the apparatus comprising:

请求接收单元,用于接收输入的待恢复深度图像的恢复请求,所述待恢复深度图像关联有对应的纹理图像;a request receiving unit, configured to receive an input restoration request of a depth image to be restored, where the depth image to be restored is associated with a corresponding texture image;

图像预处理单元,用于对所述纹理图像和所述待恢复深度图像进行预处理,获取所述纹理图像和所述待恢复深度图像的高频信息;an image preprocessing unit, configured to preprocess the texture image and the depth image to be restored, and obtain high-frequency information of the texture image and the depth image to be restored;

对应输入单元,用于将所述纹理图像的高频信息、所述待恢复深度图像的高频信息和所述待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型;以及The corresponding input unit is used to input the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored to the Y branch model and D branch of the preset depth image restoration model respectively. models and M-branch models; and

图像恢复单元,用于将所述Y分支模型、D分支模型恢复得到的特征图像输入到所述M分支模型,通过所述M分支模型恢复出所述待恢复深度图像对应的深度图像。The image restoration unit is configured to input the feature images recovered by the Y branch model and the D branch model into the M branch model, and restore the depth image corresponding to the depth image to be restored through the M branch model.

另一方面,本发明还提供了一种深度图像的压缩恢复设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如所述深度图像的压缩恢复方法的步骤。In another aspect, the present invention also provides a depth image compression and restoration device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor executing the The computer program implements the steps of the method for compressing and restoring the depth image.

另一方面,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如所述深度图像的压缩恢复方法的步骤。On the other hand, the present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, implements the steps of the method for compressing and restoring the depth image .

本发明接收输入的待恢复深度图像的恢复请求,待恢复深度图像关联有对应的纹理图像,对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像,从而提高了深度图像的压缩恢复质量,进而提高了用户体验。The present invention receives an input restoration request of the depth image to be restored, the depth image to be restored is associated with a corresponding texture image, preprocesses the texture image and the depth image to be restored, obtains the high frequency information of the texture image and the depth image to be restored, The high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored are respectively input into the Y branch model, the D branch model and the M branch model of the preset depth image restoration model. The feature image obtained by the model restoration is input into the M-branch model, and the depth image corresponding to the depth image to be restored is restored through the M-branch model, thereby improving the compression and restoration quality of the depth image, thereby improving the user experience.

附图说明Description of drawings

图1是本发明实施例一提供的深度图像的压缩恢复方法的实现流程图;Fig. 1 is the realization flow chart of the method for compressing and restoring a depth image provided by Embodiment 1 of the present invention;

图2是本发明实施例二提供的深度图像的压缩恢复装置的结构示意图;2 is a schematic structural diagram of an apparatus for compressing and restoring a depth image according to Embodiment 2 of the present invention;

图3是本发明实施例二提供的深度图像的压缩恢复装置的优选结构示意图;以及3 is a schematic diagram of a preferred structure of an apparatus for compressing and restoring a depth image according to Embodiment 2 of the present invention; and

图4是本发明实施例三提供的深度图像的压缩恢复设备的结构示意图。FIG. 4 is a schematic structural diagram of a device for compressing and restoring a depth image according to Embodiment 3 of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

以下结合具体实施例对本发明的具体实现进行详细描述:The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:

实施例一:Example 1:

图1示出了本发明实施例一提供的深度图像的压缩恢复方法的实现流程,为了便于说明,仅示出了与本发明实施例相关的部分,详述如下:FIG. 1 shows the implementation process of the method for compressing and restoring a depth image provided by the first embodiment of the present invention. For the convenience of description, only the part related to the embodiment of the present invention is shown, and the details are as follows:

在步骤S101中,接收输入的待恢复深度图像的恢复请求,该待恢复深度图像关联有对应的纹理图像。In step S101, an input restoration request of a depth image to be restored is received, and the depth image to be restored is associated with a corresponding texture image.

本发明实施例适用于压缩后深度图像的恢复系统,以方便进行压缩后的深度图像的恢复。在本发明实施例中,首先接收用户输入的待恢复深度图像的恢复请求,其中,待恢复深度图像关联有对应的纹理图像,以用于辅助进行待恢复深度图像的恢复。The embodiment of the present invention is applicable to a restoration system of a compressed depth image, so as to facilitate restoration of the compressed depth image. In this embodiment of the present invention, a restoration request for a depth image to be restored inputted by a user is first received, wherein the depth image to be restored is associated with a corresponding texture image to assist in restoring the depth image to be restored.

优选地,在接收输入的待恢复深度图像的恢复请求之前,首先构建深度图像恢复模型。具体地,在构建深度图像恢复模型时,首先构建深度图像恢复模型的Y分支模型,构建的Y分支模型包含2个卷积层:

Figure BDA0001338269260000041
然后构建该深度图像恢复模型的D分支模型,构建的D分支模型包含2个卷积层:
Figure BDA0001338269260000051
最后构建该深度图像恢复模型的M分支模型,构建的M分支模型包含5个卷积层:
Figure BDA00013382692600000511
Figure BDA0001338269260000052
Figure BDA0001338269260000053
Preferably, before receiving an input restoration request for a depth image to be restored, a depth image restoration model is first constructed. Specifically, when building a depth image restoration model, firstly build a Y branch model of the depth image restoration model, and the constructed Y branch model contains 2 convolution layers:
Figure BDA0001338269260000041
Then a D-branch model of the deep image restoration model is constructed, and the constructed D-branch model contains 2 convolutional layers:
Figure BDA0001338269260000051
Finally, the M-branch model of the deep image restoration model is constructed, and the constructed M-branch model contains 5 convolutional layers:
Figure BDA00013382692600000511
Figure BDA0001338269260000052
Figure BDA0001338269260000053

其中,

Figure BDA0001338269260000054
“*”表示卷积操作,
Figure BDA0001338269260000055
为滤波器,
Figure BDA0001338269260000056
为偏置向量。in,
Figure BDA0001338269260000054
"*" indicates convolution operation,
Figure BDA0001338269260000055
is the filter,
Figure BDA0001338269260000056
is the bias vector.

进一步优选地,构建深度图像恢复模型的步骤之后,接收输入的待恢复深度图像的恢复请求的步骤之前,首先接收输入的训练集,该训练集包括无压缩的纹理图像、无压缩的深度图像和对应的压缩后深度图像,然后对该训练集中的无压缩的纹理图像、无压缩的深度图像和对应的压缩后深度图像进行预处理,获取无压缩的纹理图像和压缩后深度图像的高频信息,接着将获取的无压缩的纹理图像的高频信息、压缩后深度图像的高频信息和压缩后深度图像分别输入到预先构建的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,对深度图像恢复模型的Y分支模型、D分支模型和M分支模型进行训练,根据训练集中的无压缩深度图像和训练得到的恢复图像计算训练的损失函数,更新深度图像恢复模型的滤波器和偏置向量,当未达到预设的迭代次数时,重复进行训练和更新步骤,直至达到预设的迭代次数时,将训练后的深度图像恢复模型设置为预设的深度图像恢复模型,从而提高压缩后深度图像的恢复准确性。Further preferably, after the step of constructing the depth image restoration model, before the step of receiving the input restoration request of the depth image to be restored, the input training set is first received, and the training set includes uncompressed texture images, uncompressed depth images and The corresponding compressed depth image, and then preprocess the uncompressed texture image, uncompressed depth image and corresponding compressed depth image in the training set to obtain the high-frequency information of the uncompressed texture image and the compressed depth image , and then input the acquired high-frequency information of the uncompressed texture image, the high-frequency information of the compressed depth image and the compressed depth image into the Y branch model, D branch model and M branch model of the pre-built depth image restoration model respectively , train the Y-branch model, D-branch model and M-branch model of the depth image restoration model, calculate the loss function for training according to the uncompressed depth images in the training set and the restored images obtained from training, and update the filters of the depth image restoration model and Bias vector, when the preset number of iterations is not reached, repeat the training and update steps until the preset number of iterations is reached, set the trained depth image restoration model to the preset depth image restoration model, thereby improving Recovery accuracy of compressed depth images.

优选地,在计算训练的损失函数时,使用公式

Figure BDA0001338269260000057
计算训练的损失函数,其中,N为训练集中训练目标的数量,
Figure BDA0001338269260000058
恢复得到的深度图像,
Figure BDA0001338269260000059
Figure BDA00013382692600000510
对应的纹理图像,i表示每一次训练,θ为待优化参数,包括滤波器和偏置向量参数,从而提高训练的准确性和速率。Preferably, when calculating the loss function for training, use the formula
Figure BDA0001338269260000057
Calculate the training loss function, where N is the number of training targets in the training set,
Figure BDA0001338269260000058
restore the resulting depth image,
Figure BDA0001338269260000059
for
Figure BDA00013382692600000510
For the corresponding texture image, i represents each training, and θ is the parameter to be optimized, including filter and bias vector parameters, so as to improve the accuracy and speed of training.

在步骤S102中,对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息。In step S102, the texture image and the depth image to be restored are preprocessed to obtain high frequency information of the texture image and the depth image to be restored.

在本发明实施例中,在待恢复深度图像的恢复请求之后,首先获取对应的纹理图像和待恢复深度图像,然后分别对纹理图像和待恢复深度图像进行预处理,提取到该纹理图像和该待恢复深度图像的高频信息,从而得到该纹理图像和该待恢复深度图像的高频信息。In the embodiment of the present invention, after the restoration request of the depth image to be restored, the corresponding texture image and the depth image to be restored are first obtained, and then the texture image and the depth image to be restored are preprocessed respectively, and the texture image and the depth image to be restored are extracted. The high-frequency information of the depth image to be restored is obtained, thereby obtaining the high-frequency information of the texture image and the depth image to be restored.

优选地,在对纹理图像和待恢复深度图像进行预处理时,根据公式

Figure BDA0001338269260000061
对纹理图像进行预处理,获取纹理图像的高频信息,根据公式
Figure BDA0001338269260000062
对待恢复深度图像进行预处理,获取待恢复深度图像的高频信息,其中,参数Y为纹理图像,参数D为待恢复深度图像,h(Y)表示对纹理图像进行均值池化处理,h(D)表示对待恢复深度图像进行均值池化处理,abs()为取绝对值函数,即首先对需要预处理的纹理图像或者待恢复深度图像做均值池化(9x9),然后用均值池化前的像素值减去均值池化后的像素值,得到均值池化前后的像素值差值,再对该差值取绝对值,这样就得到了对应图像的边缘图像(即图像的高频信息)。均值池化可以使图像变得模糊,即除去了图像的高频信息部分,剩下图像的低频信息,然后用原图像减去只有低频信息的图像,高频信息就可以被保留下来。Preferably, when preprocessing the texture image and the depth image to be restored, according to the formula
Figure BDA0001338269260000061
Preprocess the texture image to obtain the high-frequency information of the texture image, according to the formula
Figure BDA0001338269260000062
Preprocess the depth image to be restored to obtain high-frequency information of the depth image to be restored, where the parameter Y is the texture image, the parameter D is the depth image to be restored, h(Y) represents mean pooling of the texture image, h( D) means that the depth image to be restored is subjected to mean pooling, and abs() is the absolute value function, that is, the texture image that needs to be preprocessed or the depth image to be restored is mean pooled (9x9), and then the mean pooling is used before Subtract the pixel value after mean pooling from the pixel value of the mean pooling, get the pixel value difference before and after mean pooling, and then take the absolute value of the difference, so as to get the edge image of the corresponding image (that is, the high-frequency information of the image) . Mean pooling can blur the image, that is, remove the high-frequency information part of the image, leaving the low-frequency information of the image, and then subtract the image with only low-frequency information from the original image, and the high-frequency information can be retained.

在步骤S103中,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型。In step S103, the high frequency information of the texture image, the high frequency information of the depth image to be restored and the depth image to be restored are respectively input into the Y branch model, the D branch model and the M branch model of the preset depth image restoration model.

在本发明实施例中,得到该纹理图像和该待恢复深度图像的高频信息之后,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型。In the embodiment of the present invention, after obtaining the high-frequency information of the texture image and the depth image to be restored, the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored are respectively input into a preset Y-branch model, D-branch model and M-branch model of depth image restoration model.

在步骤S104中,将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像。In step S104, the feature images recovered by the Y branch model and the D branch model are input into the M branch model, and the depth image corresponding to the depth image to be restored is recovered through the M branch model.

在本发明实施例中,根据公式

Figure BDA0001338269260000063
Figure BDA0001338269260000064
将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,M分支模型根据公式
Figure BDA0001338269260000071
恢复出待恢复深度图像对应的深度图像。In this embodiment of the present invention, according to the formula
Figure BDA0001338269260000063
and
Figure BDA0001338269260000064
The feature images recovered by the Y branch model and the D branch model are input into the M branch model, and the M branch model is based on the formula
Figure BDA0001338269260000071
The depth image corresponding to the depth image to be restored is restored.

在本发明实施例中,接收输入的待恢复深度图像的恢复请求,待恢复深度图像关联有对应的纹理图像,对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像,从而提高了深度图像的压缩恢复质量,进而提高了用户体验。In the embodiment of the present invention, an input restoration request of the depth image to be restored is received, the depth image to be restored is associated with a corresponding texture image, the texture image and the depth image to be restored are preprocessed, and the difference between the texture image and the depth image to be restored is obtained. High-frequency information, the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored are respectively input into the Y branch model, the D branch model and the M branch model of the preset depth image restoration model. The feature images recovered by the branch model and the D-branch model are input to the M-branch model, and the depth image corresponding to the depth image to be restored is restored through the M-branch model, thereby improving the compression and restoration quality of the depth image, thereby improving the user experience.

实施例二:Embodiment 2:

图2示出了本发明实施例二提供的深度图像的压缩恢复装置的结构,为了便于说明,仅示出了与本发明实施例相关的部分,其中包括:FIG. 2 shows the structure of an apparatus for compressing and restoring a depth image provided by the second embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, including:

请求接收单元21,用于接收输入的待恢复深度图像的恢复请求,该待恢复深度图像关联有对应的纹理图像。The request receiving unit 21 is configured to receive an input restoration request of a depth image to be restored, where the depth image to be restored is associated with a corresponding texture image.

在本发明实施例中,请求接收单元21首先接收用户输入的待恢复深度图像的恢复请求,其中,待恢复深度图像关联有对应的纹理图像,以用于辅助进行待恢复深度图像的恢复。In the embodiment of the present invention, the request receiving unit 21 first receives a restoration request of the depth image to be restored input by the user, wherein the depth image to be restored is associated with a corresponding texture image to assist in restoring the depth image to be restored.

优选地,在接收输入的待恢复深度图像的恢复请求之前,首先构建深度图像恢复模型。具体地,在构建深度图像恢复模型时,首先构建深度图像恢复模型的Y分支模型,构建的Y分支模型包含2个卷积层:

Figure BDA0001338269260000072
然后构建该深度图像恢复模型的D分支模型,构建的D分支模型包含2个卷积层:
Figure BDA0001338269260000073
最后构建该深度图像恢复模型的M分支模型,构建的M分支模型包含5个卷积层:
Figure BDA0001338269260000077
Figure BDA0001338269260000074
Figure BDA0001338269260000075
Preferably, before receiving an input restoration request for a depth image to be restored, a depth image restoration model is first constructed. Specifically, when building a depth image restoration model, firstly build a Y branch model of the depth image restoration model, and the constructed Y branch model contains 2 convolution layers:
Figure BDA0001338269260000072
Then a D-branch model of the deep image restoration model is constructed, and the constructed D-branch model contains 2 convolutional layers:
Figure BDA0001338269260000073
Finally, the M-branch model of the deep image restoration model is constructed, and the constructed M-branch model contains 5 convolutional layers:
Figure BDA0001338269260000077
Figure BDA0001338269260000074
Figure BDA0001338269260000075

其中,

Figure BDA0001338269260000076
“*”表示卷积操作,
Figure BDA0001338269260000081
为滤波器,
Figure BDA0001338269260000082
为偏置向量。in,
Figure BDA0001338269260000076
"*" indicates convolution operation,
Figure BDA0001338269260000081
is the filter,
Figure BDA0001338269260000082
is the bias vector.

进一步优选地,构建深度图像恢复模型的步骤之后,接收输入的待恢复深度图像的恢复请求的步骤之前,首先接收输入的训练集,该训练集包括无压缩的纹理图像、无压缩的深度图像和对应的压缩后深度图像,然后对该训练集中的无压缩的纹理图像、无压缩的深度图像和对应的压缩后深度图像进行预处理,获取无压缩的纹理图像和压缩后深度图像的高频信息,接着将获取的无压缩的纹理图像的高频信息、压缩后深度图像的高频信息和压缩后深度图像分别输入到预先构建的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,对深度图像恢复模型的Y分支模型、D分支模型和M分支模型进行训练,根据训练集中的无压缩深度图像和训练得到的恢复图像计算训练的损失函数,更新深度图像恢复模型的滤波器和偏置向量,当未达到预设的迭代次数时,重复进行训练和更新步骤,直至达到预设的迭代次数时,将训练后的深度图像恢复模型设置为预设的深度图像恢复模型,从而提高压缩后深度图像的恢复准确性。Further preferably, after the step of constructing the depth image restoration model, before the step of receiving the input restoration request of the depth image to be restored, the input training set is first received, and the training set includes uncompressed texture images, uncompressed depth images and The corresponding compressed depth image, and then preprocess the uncompressed texture image, uncompressed depth image and corresponding compressed depth image in the training set to obtain the high-frequency information of the uncompressed texture image and the compressed depth image , and then input the acquired high-frequency information of the uncompressed texture image, the high-frequency information of the compressed depth image and the compressed depth image into the Y branch model, D branch model and M branch model of the pre-built depth image restoration model respectively , train the Y-branch model, D-branch model and M-branch model of the depth image restoration model, calculate the loss function for training according to the uncompressed depth images in the training set and the restored images obtained from training, and update the filters of the depth image restoration model and Bias vector, when the preset number of iterations is not reached, repeat the training and update steps until the preset number of iterations is reached, set the trained depth image restoration model to the preset depth image restoration model, thereby improving Recovery accuracy of compressed depth images.

优选地,在计算训练的损失函数时,使用公式

Figure BDA0001338269260000083
计算训练的损失函数,其中,N为训练集中训练目标的数量,
Figure BDA0001338269260000084
恢复得到的深度图像,
Figure BDA0001338269260000085
Figure BDA0001338269260000086
对应的纹理图像,i表示每一次训练,θ为待优化参数,包括滤波器和偏置向量参数,从而提高训练的准确性和速率。Preferably, when calculating the loss function for training, use the formula
Figure BDA0001338269260000083
Calculate the training loss function, where N is the number of training targets in the training set,
Figure BDA0001338269260000084
restore the resulting depth image,
Figure BDA0001338269260000085
for
Figure BDA0001338269260000086
For the corresponding texture image, i represents each training, and θ is the parameter to be optimized, including filter and bias vector parameters, so as to improve the accuracy and speed of training.

图像预处理单元22,用于对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息。The image preprocessing unit 22 is configured to preprocess the texture image and the depth image to be restored, and obtain high-frequency information of the texture image and the depth image to be restored.

在本发明实施例中,在待恢复深度图像的恢复请求之后,图像预处理单元22首先获取对应的纹理图像和待恢复深度图像,然后分别对纹理图像和待恢复深度图像进行预处理,提取到该纹理图像和该待恢复深度图像的高频信息,从而得到该纹理图像和该待恢复深度图像的高频信息。In the embodiment of the present invention, after the restoration request of the depth image to be restored, the image preprocessing unit 22 first obtains the corresponding texture image and the depth image to be restored, and then preprocesses the texture image and the depth image to be restored respectively, and extracts the The high frequency information of the texture image and the depth image to be restored is obtained, thereby obtaining the high frequency information of the texture image and the depth image to be restored.

优选地,在对纹理图像和待恢复深度图像进行预处理时,根据公式

Figure BDA0001338269260000091
对纹理图像进行预处理,获取纹理图像的高频信息,根据公式
Figure BDA0001338269260000092
对待恢复深度图像进行预处理,获取待恢复深度图像的高频信息,其中,参数Y为纹理图像,参数D为待恢复深度图像,h(Y)表示对纹理图像进行均值池化处理,h(D)表示对待恢复深度图像进行均值池化处理,abs()为取绝对值函数,即首先对需要预处理的纹理图像或者待恢复深度图像做均值池化(9x9),然后用均值池化前的像素值减去均值池化后的像素值,得到均值池化前后的像素值差值,再对该差值取绝对值,这样就得到了对应图像的边缘图像。均值池化可以使图像变得模糊,即除去了图像的高频信息部分,剩下图像的低频信息,然后用原图像减去只有低频信息的图像,高频信息就可以被保留下来。Preferably, when preprocessing the texture image and the depth image to be restored, according to the formula
Figure BDA0001338269260000091
Preprocess the texture image to obtain the high-frequency information of the texture image, according to the formula
Figure BDA0001338269260000092
The depth image to be restored is preprocessed to obtain high-frequency information of the depth image to be restored, where the parameter Y is the texture image, the parameter D is the depth image to be restored, h(Y) represents mean pooling of the texture image, h( D) means that the depth image to be restored is subjected to mean pooling, and abs() is the absolute value function, that is, first mean pooling (9x9) is performed on the texture image that needs to be preprocessed or the depth image to be restored (9x9), and then use the mean pooling before The pixel value of , subtracts the pixel value after mean pooling to obtain the pixel value difference before and after mean pooling, and then takes the absolute value of the difference to obtain the edge image of the corresponding image. Mean pooling can blur the image, that is, remove the high-frequency information part of the image, leaving the low-frequency information of the image, and then subtract the image with only low-frequency information from the original image, and the high-frequency information can be preserved.

对应输入单元23,用于将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型。The corresponding input unit 23 is used to input the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored into the Y branch model, the D branch model and the M branch model of the preset depth image restoration model respectively. .

在本发明实施例中,得到该纹理图像和该待恢复深度图像的高频信息之后,对应输入单元23将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型。In the embodiment of the present invention, after obtaining the high frequency information of the texture image and the depth image to be restored, the corresponding input unit 23 inputs the high frequency information of the texture image, the high frequency information of the depth image to be restored, and the depth image to be restored respectively as input to the Y branch model, D branch model and M branch model of the preset depth image restoration model.

图像恢复单元24,用于将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像。The image restoration unit 24 is configured to input the feature images restored by the Y branch model and the D branch model into the M branch model, and restore the depth image corresponding to the depth image to be restored through the M branch model.

在本发明实施例中,图像恢复单元24根据公式

Figure BDA0001338269260000093
Figure BDA0001338269260000094
将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,M分支模型根据公式
Figure BDA0001338269260000095
恢复出待恢复深度图像对应的深度图像。In the embodiment of the present invention, the image restoration unit 24 according to the formula
Figure BDA0001338269260000093
and
Figure BDA0001338269260000094
The feature images recovered by the Y branch model and the D branch model are input into the M branch model, and the M branch model is based on the formula
Figure BDA0001338269260000095
The depth image corresponding to the depth image to be restored is restored.

因此,优选地,如图3所示,该装置还包括:Therefore, preferably, as shown in Figure 3, the device further comprises:

模型构建单元30,用于构建深度图像恢复模型;A model construction unit 30, for constructing a depth image restoration model;

优选地,该模型构建单元30包括:Preferably, the model building unit 30 includes:

第一构建单元301,用于构建深度图像恢复模型的Y分支模型,Y分支模型的卷积层为

Figure BDA0001338269260000101
The first construction unit 301 is used to construct the Y branch model of the depth image restoration model, and the convolution layer of the Y branch model is
Figure BDA0001338269260000101

第二构建单元302,用于构建深度图像恢复模型的D分支模型,D分支模型的卷积层为

Figure BDA0001338269260000102
The second construction unit 302 is used to construct a D-branch model of the depth image restoration model, and the convolutional layer of the D-branch model is
Figure BDA0001338269260000102

第三构建单元303,用于构建深度图像恢复模型的M分支模型,M分支模型的卷积层为F1 M=max(0,W1 M*Dq+B1 M),

Figure BDA0001338269260000103
Figure BDA0001338269260000104
The third construction unit 303 is configured to construct an M-branch model of the depth image restoration model, and the convolutional layer of the M-branch model is F 1 M =max(0, W 1 M *D q +B 1 M ),
Figure BDA0001338269260000103
Figure BDA0001338269260000104

其中,

Figure BDA0001338269260000105
“*”表示卷积操作,
Figure BDA0001338269260000106
为滤波器,
Figure BDA0001338269260000107
为偏置向量;in,
Figure BDA0001338269260000105
"*" indicates convolution operation,
Figure BDA0001338269260000106
is the filter,
Figure BDA0001338269260000107
is the bias vector;

优选地,该图像预处理单元22包括:Preferably, the image preprocessing unit 22 includes:

第一处理单元321,用于根据公式

Figure BDA0001338269260000108
对纹理图像进行预处理,获取纹理图像的高频信息,其中,参数Y为纹理图像,h(Y)表示对纹理图像进行均值池化处理,abs()为取绝对值函数;以及The first processing unit 321 is used for formulating
Figure BDA0001338269260000108
Preprocessing the texture image to obtain high-frequency information of the texture image, wherein the parameter Y is the texture image, h(Y) represents mean pooling processing of the texture image, and abs() is the absolute value function; and

第二处理单元322,用于根据公式

Figure BDA0001338269260000109
对待恢复深度图像进行预处理,获取待恢复深度图像的高频信息,其中,参数D为待恢复深度图像,h(D)表示对待恢复深度图像进行均值池化处理。The second processing unit 322 is used for formulating according to the formula
Figure BDA0001338269260000109
The depth image to be restored is preprocessed to obtain high-frequency information of the depth image to be restored, wherein the parameter D is the depth image to be restored, and h(D) represents mean pooling of the depth image to be restored.

在本发明实施例中,请求接收单元接收输入的待恢复深度图像的恢复请求,待恢复深度图像关联有对应的纹理图像,图像预处理单元对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息,对应输入单元将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,图像恢复单元将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像,从而提高了深度图像的压缩恢复质量,进而提高了用户体验。In the embodiment of the present invention, the request receiving unit receives an input restoration request of the depth image to be restored, the depth image to be restored is associated with a corresponding texture image, and the image preprocessing unit preprocesses the texture image and the depth image to be restored, and obtains the texture The high-frequency information of the image and the depth image to be restored, the corresponding input unit inputs the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored into the Y branch model of the preset depth image restoration model, The D-branch model and the M-branch model, the image restoration unit inputs the feature images recovered by the Y-branch model and the D-branch model into the M-branch model, and restores the depth image corresponding to the depth image to be restored through the M-branch model, thereby improving the depth image. Compression recovery quality, which in turn improves the user experience.

在本发明实施例中,深度图像的压缩恢复装置的各单元可由相应的硬件或软件单元实现,各单元可以为独立的软、硬件单元,也可以集成为一个软、硬件单元,在此不用以限制本发明。In this embodiment of the present invention, each unit of the apparatus for compressing and restoring a depth image may be implemented by a corresponding hardware or software unit, and each unit may be an independent software or hardware unit, or may be integrated into a software and hardware unit. Limit the invention.

实施例三:Embodiment three:

图4示出了本发明实施例四提供的深度图像的压缩恢复设备的结构,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 4 shows the structure of the device for compressing and restoring a depth image provided by Embodiment 4 of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.

本发明实施例的深度图像的压缩恢复设备4包括处理器40、存储器41以及存储在存储器41中并可在处理器40上运行的计算机程序42。该处理器40执行计算机程序42时实现上述深度图像的压缩恢复方法实施例中的步骤,例如图1所示的步骤S101至S104。或者,处理器40执行计算机程序42时实现上述装置实施例中各单元的功能,例如图2所示单元21至24的功能。The apparatus 4 for compressing and restoring a depth image according to the embodiment of the present invention includes a processor 40 , a memory 41 , and a computer program 42 stored in the memory 41 and running on the processor 40 . When the processor 40 executes the computer program 42 , the steps in the above-mentioned embodiment of the method for compressing and restoring a depth image are implemented, for example, steps S101 to S104 shown in FIG. 1 . Alternatively, when the processor 40 executes the computer program 42, the functions of the units in the above-mentioned apparatus embodiments, such as the functions of the units 21 to 24 shown in FIG. 2, are implemented.

在本发明实施例中,该处理器40执行计算机程序42时实现上述各个屏幕唤醒的控制方法实施例中的步骤时,接收输入的待恢复深度图像的恢复请求,待恢复深度图像关联有对应的纹理图像,对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像,从而提高了深度图像的压缩恢复质量。In this embodiment of the present invention, when the processor 40 executes the computer program 42 to implement the steps in each of the above-mentioned control method embodiments for screen wake-up, it receives an input restoration request for the depth image to be restored, and the depth image to be restored is associated with a corresponding depth image. Texture image: Preprocess the texture image and the depth image to be restored, obtain high-frequency information of the texture image and the depth image to be restored, and separate the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored. Input the Y-branch model, D-branch model and M-branch model of the preset depth image restoration model, input the feature images recovered by the Y-branch model and D-branch model into the M-branch model, and restore the depth to be restored through the M-branch model The depth image corresponding to the image, thereby improving the compression and restoration quality of the depth image.

该深度图像的压缩恢复设备4中处理器40在执行计算机程序42时实现的步骤具体可参考实施例一中方法的描述,在此不再赘述。For details of the steps implemented by the processor 40 in the depth image compression and restoration device 4 when the computer program 42 is executed, reference may be made to the description of the method in the first embodiment, which will not be repeated here.

实施例四:Embodiment 4:

在本发明实施例中,提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述深度图像的压缩恢复方法实施例中的步骤,例如,图1所示的步骤S101至S104。或者,该计算机程序被处理器执行时实现上述装置实施例中各单元的功能,例如图2所示单元21至24的功能。In an embodiment of the present invention, a computer-readable storage medium is provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above-mentioned embodiments of the method for compressing and restoring a depth image are implemented, For example, steps S101 to S104 shown in FIG. 1 . Alternatively, when the computer program is executed by the processor, the functions of each unit in the above-mentioned apparatus embodiment, for example, the functions of units 21 to 24 shown in FIG. 2 , are implemented.

在本发明实施例中,接收输入的待恢复深度图像的恢复请求,待恢复深度图像关联有对应的纹理图像,对纹理图像和待恢复深度图像进行预处理,获取纹理图像和待恢复深度图像的高频信息,将纹理图像的高频信息、待恢复深度图像的高频信息和待恢复深度图像分别输入到预设的深度图像恢复模型的Y分支模型、D分支模型和M分支模型,将Y分支模型、D分支模型恢复得到的特征图像输入到M分支模型,通过M分支模型恢复出待恢复深度图像对应的深度图像,从而提高了深度图像的压缩恢复质量。该计算机程序被处理器执行时实现的深度图像的压缩恢复方法进一步可参考前述方法实施例中步骤的描述,在此不再赘述。In the embodiment of the present invention, an input restoration request of the depth image to be restored is received, the depth image to be restored is associated with a corresponding texture image, the texture image and the depth image to be restored are preprocessed, and the difference between the texture image and the depth image to be restored is obtained. High-frequency information, the high-frequency information of the texture image, the high-frequency information of the depth image to be restored, and the depth image to be restored are respectively input into the Y branch model, the D branch model and the M branch model of the preset depth image restoration model. The feature images recovered by the branch model and the D-branch model are input to the M-branch model, and the depth image corresponding to the depth image to be restored is restored through the M-branch model, thereby improving the compression and restoration quality of the depth image. The method for compressing and restoring a depth image when the computer program is executed by the processor may further refer to the description of the steps in the foregoing method embodiments, which will not be repeated here.

本发明实施例的计算机可读存储介质可以包括能够携带计算机程序代码的任何实体或装置、记录介质,例如,ROM/RAM、磁盘、光盘、闪存等存储器。The computer-readable storage medium of the embodiments of the present invention may include any entity or device capable of carrying computer program codes, recording medium, for example, memory such as ROM/RAM, magnetic disk, optical disk, flash memory, and the like.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

1. A method for compression restoration of a depth image, the method comprising the steps of:
receiving an input restoration request of a depth image to be restored, wherein the depth image to be restored is associated with a corresponding texture image;
preprocessing the texture image and the depth image to be restored to obtain high-frequency information of the texture image and the depth image to be restored;
respectively inputting the high-frequency information of the texture image, the high-frequency information of the depth image to be restored and the depth image to be restored into a Y-branch model, a D-branch model and an M-branch model of a preset depth image restoration model;
inputting the characteristic images obtained by recovering the Y branch model and the D branch model into the M branch model, and recovering the depth image corresponding to the depth image to be recovered through the M branch model;
constructing the depth image recovery model;
the step of constructing the depth image restoration model includes:
the Y-branch model of the depth image restoration model is constructed, and the convolution layer of the Y-branch model is
Figure FDA0002547816750000011
Constructing the D-branch model of the depth image restoration model, the convolution layer of the D-branch model being
Figure FDA0002547816750000012
Constructing the M-branch model of the depth image restoration model, the convolution layer of the M-branch model being
Figure FDA0002547816750000013
Figure FDA0002547816750000014
The above-mentioned
Figure FDA0002547816750000015
The above-mentioned
Figure FDA0002547816750000016
Said ". mark" denotes a convolution operation, said Wj Y、Wj D
Figure FDA0002547816750000017
Being a filter, said parameter DqFor the depth image to be restored, the
Figure FDA0002547816750000018
Is a bias vector.
2. The method of claim 1, wherein after the step of constructing the depth image restoration model and before the step of receiving an input restoration request for the depth image to be restored, the method further comprises:
receiving an input training set, wherein the training set comprises an uncompressed texture image, an uncompressed depth image and a compressed depth image;
preprocessing the uncompressed texture image, the uncompressed depth image and the compressed depth image in the training set to obtain high-frequency information of the uncompressed texture image and the compressed depth image;
inputting the high-frequency information of the uncompressed texture image, the high-frequency information of the compressed depth image and the compressed depth image into the Y-branch model, the D-branch model and the M-branch model of the depth image recovery model which are constructed in advance respectively, training the Y-branch model, the D-branch model and the M-branch model of the depth image recovery model, calculating a loss function of the training, and updating the filter and the offset vector of the depth image recovery model;
and when the preset iteration times are not reached, repeating the training and updating steps until the iteration times are reached, and setting the trained depth image recovery model as the preset depth image recovery model.
3. The method of claim 2, wherein the step of calculating the trained loss function comprises:
using the formula
Figure FDA0002547816750000021
Calculating a loss function of the training, wherein N is the number of training targets in the training set, and
Figure FDA0002547816750000022
to restore the resulting depth image, the
Figure FDA0002547816750000023
Is composed of
Figure FDA0002547816750000024
And corresponding texture images, wherein i represents each training, and theta is a parameter to be optimized and comprises the filter and the bias vector.
4. The method of claim 1, wherein the step of preprocessing the texture image and the depth image to be restored to obtain high-frequency information of the texture image and the depth image to be restored comprises:
according to the formula
Figure FDA0002547816750000025
Preprocessing the texture image to obtain high-frequency information of the texture image, wherein the parameter Y is the texture image, the h (Y) represents that the texture image is subjected to mean pooling, and abs () is an absolute value taking function;
according to the formula
Figure FDA0002547816750000031
Preprocessing the depth image to be recovered to obtain high-frequency information of the depth image to be recovered, wherein h (D)q) And representing that the depth image to be restored is subjected to mean pooling.
5. An apparatus for compression restoration of a depth image, the apparatus comprising:
the device comprises a request receiving unit, a processing unit and a processing unit, wherein the request receiving unit is used for receiving an input recovery request of a depth image to be recovered, and the depth image to be recovered is associated with a corresponding texture image;
the image preprocessing unit is used for preprocessing the texture image and the depth image to be restored to obtain high-frequency information of the texture image and the depth image to be restored;
the corresponding input unit is used for respectively inputting the high-frequency information of the texture image, the high-frequency information of the depth image to be restored and the depth image to be restored into a Y-branch model, a D-branch model and an M-branch model of a preset depth image restoration model; and
the image recovery unit is used for inputting the characteristic images obtained by recovering the Y branch model and the D branch model into the M branch model and recovering the depth image corresponding to the depth image to be recovered through the M branch model;
the device further comprises:
a model construction unit for constructing the depth image restoration model;
the model building unit includes:
a first constructing unit for constructing the Y-branch model of the depth image restoration model, wherein the convolution layer of the Y-branch model is
Figure FDA0002547816750000032
A second construction unit for constructing the D-branch model of the depth image restoration model, the convolution layer of the D-branch model being
Figure FDA0002547816750000033
And
a third constructing unit, configured to construct the M-branch model of the depth image restoration model, where a convolution layer of the M-branch model is
Figure FDA0002547816750000034
Figure FDA0002547816750000035
The above-mentioned
Figure FDA0002547816750000041
The above-mentioned
Figure FDA0002547816750000042
Said ". mark" denotes a convolution operation, said Wj Y、Wj D
Figure FDA0002547816750000043
Being a filter, said parameter DqFor the depth image to be restored, the
Figure FDA0002547816750000044
Is a bias vector.
6. The apparatus of claim 5, wherein the image pre-processing unit comprises:
a first processing unit for processing the data according to a formula
Figure FDA0002547816750000045
Preprocessing the texture image to obtain high-frequency information of the texture image, wherein the parameter Y is the texture image, the h (Y) represents that the texture image is subjected to mean pooling, and abs () is an absolute value taking function; and
a second processing unit for processing the data according to the formula
Figure FDA0002547816750000046
Preprocessing the depth image to be recovered to obtain high-frequency information of the depth image to be recovered, wherein h (D)q) And representing that the depth image to be restored is subjected to mean pooling.
7. An apparatus for compression restoration of a depth image, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 4 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 4.
CN201710524546.0A 2017-06-30 2017-06-30 Depth image compression recovery method, device, device and storage medium Active CN107301662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524546.0A CN107301662B (en) 2017-06-30 2017-06-30 Depth image compression recovery method, device, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524546.0A CN107301662B (en) 2017-06-30 2017-06-30 Depth image compression recovery method, device, device and storage medium

Publications (2)

Publication Number Publication Date
CN107301662A CN107301662A (en) 2017-10-27
CN107301662B true CN107301662B (en) 2020-09-08

Family

ID=60135428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524546.0A Active CN107301662B (en) 2017-06-30 2017-06-30 Depth image compression recovery method, device, device and storage medium

Country Status (1)

Country Link
CN (1) CN107301662B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108288255B (en) * 2018-01-26 2022-02-18 中国科学院广州生物医药与健康研究院 Phase recovery method, device and system
CN108564546B (en) * 2018-04-18 2020-08-04 厦门美图之家科技有限公司 Model training method and device and photographing terminal
CN109345449B (en) 2018-07-17 2020-11-10 西安交通大学 An image super-resolution and non-uniform blurring method based on fusion network
CN109410318B (en) 2018-09-30 2020-09-08 先临三维科技股份有限公司 Three-dimensional model generation method, device, equipment and storage medium
WO2021232195A1 (en) * 2020-05-18 2021-11-25 Shanghai United Imaging Healthcare Co., Ltd. Systems and methods for image optimization
CN112437311A (en) * 2020-11-23 2021-03-02 黄晓红 Video sequence compression coding method and device
CN114240746A (en) * 2021-11-10 2022-03-25 山东师范大学 A HF-NET depth image super-resolution method and system based on high-frequency information guidance

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581687A (en) * 2013-09-11 2014-02-12 北京交通大学长三角研究院 Self-adaptive depth image coding method based on compressed sensing
EP2230855B1 (en) * 2009-03-17 2014-10-15 Mitsubishi Electric Corporation Synthesizing virtual images from texture and depth images

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120003147A (en) * 2010-07-02 2012-01-10 삼성전자주식회사 Depth Image Coding Device and Decoding Device Using Loop Filter
CN105447840B (en) * 2015-12-09 2019-01-29 西安电子科技大学 The image super-resolution method returned based on active sampling with Gaussian process
CN106791927A (en) * 2016-12-23 2017-05-31 福建帝视信息科技有限公司 A kind of video source modeling and transmission method based on deep learning
CN106709875B (en) * 2016-12-30 2020-02-18 北京工业大学 A Compressed Low-Resolution Image Restoration Method Based on Joint Deep Network
CN106683067B (en) * 2017-01-20 2020-06-23 福建帝视信息科技有限公司 Deep learning super-resolution reconstruction method based on residual sub-images

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2230855B1 (en) * 2009-03-17 2014-10-15 Mitsubishi Electric Corporation Synthesizing virtual images from texture and depth images
CN103581687A (en) * 2013-09-11 2014-02-12 北京交通大学长三角研究院 Self-adaptive depth image coding method based on compressed sensing

Also Published As

Publication number Publication date
CN107301662A (en) 2017-10-27

Similar Documents

Publication Publication Date Title
CN107301662B (en) Depth image compression recovery method, device, device and storage medium
Zhang et al. Image restoration using joint statistical modeling in a space-transform domain
WO2022267641A1 (en) Image defogging method and system based on cyclic generative adversarial network
Li et al. An efficient deep convolutional neural networks model for compressed image deblocking
CN107392852B (en) Super-resolution reconstruction method, device, device and storage medium of depth image
CN111539884A (en) A neural network video deblurring method based on fusion of multi-attention mechanisms
CN109102461B (en) Image reconstruction method, device, equipment and medium for low-sampling block compressed sensing
Yue et al. CID: Combined image denoising in spatial and frequency domains using Web images
CN107251053B (en) A kind of method and device for the compression artefacts reducing lossy compression image
CN110610526A (en) A Method of Segmentation and Depth Rendering of Monocular Portrait Based on WNET
CN113378980B (en) Mask Occluded Face Restoration Method Based on Adaptive Context Attention Mechanism
CN113888405B (en) Denoising and Demosaicing Method Based on Clustering Adaptive Dilated Convolutional Neural Network
CN111539246A (en) A cross-spectral face recognition method, device, electronic device and storage medium thereof
CN115222889A (en) 3D reconstruction method and device based on multi-view image and related equipment
CN108765330A (en) Image de-noising method and device based on the joint constraint of global and local priori
CN117425073A (en) Real-time full-frame video stabilization method, system and equipment
CN108257098A (en) Video denoising method based on maximum posteriori decoding and three-dimensional bits matched filtering
CN109360157A (en) Spatially Varied Blurred Image Restoration Method Based on TV and Wavelet Regularization
CN103903228A (en) Non-local image denoising method based on HWD conversion
CN110415169B (en) A depth map super-resolution reconstruction method, system and electronic equipment
WO2024174645A1 (en) Deep learning-based distorted image reconstruction method and related apparatus
CN106651789A (en) Self-adaptive deblocking effect method orienting compressed face image
CN120495542B (en) Point cloud reconstruction method and system based on perception and dynamic initialization
CN113066023A (en) SAR image speckle removing method based on self-calibration convolutional neural network
CN113362338A (en) Rail segmentation method, device, computer equipment and rail segmentation processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant