[go: up one dir, main page]

CN116228517A - Depth image processing method, system, equipment and storage medium - Google Patents

Depth image processing method, system, equipment and storage medium Download PDF

Info

Publication number
CN116228517A
CN116228517A CN202310142918.9A CN202310142918A CN116228517A CN 116228517 A CN116228517 A CN 116228517A CN 202310142918 A CN202310142918 A CN 202310142918A CN 116228517 A CN116228517 A CN 116228517A
Authority
CN
China
Prior art keywords
pixel
distance
information
pixel point
block
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.)
Pending
Application number
CN202310142918.9A
Other languages
Chinese (zh)
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.)
Inspur Jinan data Technology Co ltd
Original Assignee
Inspur Jinan data Technology Co ltd
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 Inspur Jinan data Technology Co ltd filed Critical Inspur Jinan data Technology Co ltd
Priority to CN202310142918.9A priority Critical patent/CN116228517A/en
Publication of CN116228517A publication Critical patent/CN116228517A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a depth image processing method, which comprises the following steps: acquiring a depth image and dividing the depth image into a plurality of pixel blocks; determining a reference pixel point in each pixel block; calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point; information of each pixel block, information of a reference pixel point, and relative depth distance information are stored. The invention also discloses a system, computer equipment and a readable storage medium. According to the scheme provided by the invention, the depth image is divided into blocks according to the characteristic of representing the distance by the data value in each pixel point of the depth image and the characteristic of spatial continuity by combining the characteristic of spatial continuity with the distance value, and each block is represented by the reference distance occupying a larger data bit and the relative distance occupying a smaller data bit, so that the data bit occupied by the whole depth image is reduced, and the occupied storage space is reduced.

Description

一种深度图像处理方法、系统、设备以及存储介质A deep image processing method, system, device and storage medium

技术领域technical field

本发明涉及图像处理领域,具体涉及一种深度图像处理方法、系统、设备以及存储介质。The present invention relates to the field of image processing, in particular to a depth image processing method, system, device and storage medium.

背景技术Background technique

随着3D技术、无人驾驶技术的发展,深度图像发挥着越来越重要的作用。由普通相机得到的彩色图像只能反映物体之间的平面位置信息,不能提供物体间纵向深度信息,无法为地图建模、路径规划等技术提供有力数据支持。Kinect深度相机和飞行时间(TOF)相机等低成本3D扫描设备的诞生,为计算机视觉、图形、人机交互和虚拟现实等不同研究领域的新应用打开了大门。利用深度相机得到的不仅仅是当前场景下的彩色图像信息,还包含场景中各个物体与深度相机之间的深度图像信息,深度图像中记录了彩色图像中相应像素点与深度相机之间的三维空间距离,通常以毫米为单位。With the development of 3D technology and unmanned driving technology, depth images play an increasingly important role. The color images obtained by ordinary cameras can only reflect the plane position information between objects, but cannot provide longitudinal depth information between objects, and cannot provide strong data support for map modeling, path planning and other technologies. The birth of low-cost 3D scanning devices such as Kinect depth cameras and time-of-flight (TOF) cameras has opened the door to new applications in different research fields such as computer vision, graphics, human-computer interaction, and virtual reality. Using the depth camera to obtain not only the color image information in the current scene, but also the depth image information between each object in the scene and the depth camera, the depth image records the three-dimensional relationship between the corresponding pixel in the color image and the depth camera Spatial distance, usually in millimeters.

图像深度是指存储每个像素所用的位数。彩色图像中用图像深度来度量图像的色彩分辨率,深度图像用图像深度来表征具体的距离。例如通常使用16位来记录深度图的信息,2的16次方,也就是位于0-65535的值,即最远可以记录距离深度相机65535毫米的深度信息,部分精度要求高的场景需要使用32位数据记录深度信息。在深度图像在存储和读取的过程中,通常将各个像素的距离值压缩到0-255范围内,将深度图像转化为灰度图以达到高效存储和展示效果,但是这种压缩后的深度信息会出现大幅度的精度缺失,不满足于进一步的科学研究和应用需要。针对深度图像这种新的数据承载形式,数据存储端一方面要实现较小的空间占用,另一方面要保证数据二次读取后不影响使用。Image depth refers to the number of bits used to store each pixel. In color images, image depth is used to measure the color resolution of images, and in depth images, image depth is used to represent specific distances. For example, 16 bits are usually used to record the information of the depth map, 2 to the 16th power, that is, the value between 0-65535, that is, the depth information can be recorded at a distance of 65535 mm from the depth camera, and some scenes with high precision requirements need to use 32 Bit data records depth information. In the process of storing and reading the depth image, the distance value of each pixel is usually compressed to the range of 0-255, and the depth image is converted into a grayscale image to achieve efficient storage and display. However, the compressed depth There will be a large lack of precision in the information, which does not meet the needs of further scientific research and application. For the new data carrying form of depth image, on the one hand, the data storage terminal must realize a smaller space occupation, and on the other hand, it must ensure that the data will not be affected after the second reading.

发明内容Contents of the invention

有鉴于此,为了克服上述问题的至少一个方面,本发明实施例提出一种深度图像处理方法,包括以下步骤:In view of this, in order to overcome at least one aspect of the above problems, an embodiment of the present invention proposes a depth image processing method, including the following steps:

获取深度图像并分成多个像素块;Get the depth image and divide it into multiple pixel blocks;

确定每一个所述像素块中的基准像素点;determining a reference pixel point in each of the pixel blocks;

计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;calculating the relative depth distance between other pixel points in each of the pixel blocks and the reference pixel point;

存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。Store information of each pixel block, reference pixel information and relative depth distance information.

在一些实施例中,确定每一个所述像素块中的基准像素点,进一步还包括:In some embodiments, determining the reference pixel in each pixel block further includes:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离,进一步包括:In some embodiments, calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point further includes:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括:In some embodiments, also include:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

基于同一发明构思,根据本发明的另一个方面,本发明的实施例还提供了一种深度图像处理系统,包括:Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a depth image processing system, including:

获取模块,配置为获取深度图像并分成多个像素块;an acquisition module configured to acquire a depth image and divide it into a plurality of pixel blocks;

确定模块,配置为确定每一个所述像素块中的基准像素点;A determination module configured to determine a reference pixel point in each of the pixel blocks;

计算模块,配置为计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;A calculation module configured to calculate the relative depth distance between other pixel points in each of the pixel blocks and the reference pixel point;

存储模块,配置为存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。The storage module is configured to store the information of each pixel block, the information of the reference pixel point and the relative depth distance information.

在一些实施例中,确定模块还配置为:In some embodiments, the determining module is further configured to:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算模块还配置为:In some embodiments, the computing module is further configured to:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括读取模块,配置为:In some embodiments, it also includes a reading module configured to:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

基于同一发明构思,根据本发明的另一个方面,本发明的实施例还提供了一种计算机设备,包括:Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a computer device, including:

至少一个处理器;以及at least one processor; and

存储器,所述存储器存储有可在所述处理器上运行的计算机程序,所述处理器执行所述程序时执行以下步骤:memory, the memory stores a computer program that can run on the processor, and the processor performs the following steps when executing the program:

获取深度图像并分成多个像素块;Get the depth image and divide it into multiple pixel blocks;

确定每一个所述像素块中的基准像素点;determining a reference pixel point in each of the pixel blocks;

计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;calculating the relative depth distance between other pixel points in each of the pixel blocks and the reference pixel point;

存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。Store information of each pixel block, reference pixel information and relative depth distance information.

在一些实施例中,确定每一个所述像素块中的基准像素点,进一步还包括:In some embodiments, determining the reference pixel in each pixel block further includes:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离,进一步包括:In some embodiments, calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point further includes:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括:In some embodiments, also include:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

基于同一发明构思,根据本发明的另一个方面,本发明的实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时执行以下步骤:Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor Perform the following steps:

获取深度图像并分成多个像素块;Get the depth image and divide it into multiple pixel blocks;

确定每一个所述像素块中的基准像素点;determining a reference pixel point in each of the pixel blocks;

计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;calculating the relative depth distance between other pixel points in each of the pixel blocks and the reference pixel point;

存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。Store information of each pixel block, reference pixel information and relative depth distance information.

在一些实施例中,确定每一个所述像素块中的基准像素点,进一步还包括:In some embodiments, determining the reference pixel in each pixel block further includes:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离,进一步包括:In some embodiments, calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point further includes:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括:In some embodiments, also include:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

本发明具有以下有益技术效果之一:本发明提出的方案根据深度图像各像素点中的数据值表征距离的特性,结合距离值具有空间连续性的特点,将深度图像划分成块,每一块以占用较大数据位的基准距离和占用较小数据位的相对距离表示,从而降低整张深度图像占用的数据位,降低了所占用的存储空间。The present invention has one of the following beneficial technical effects: the scheme proposed by the present invention divides the depth image into blocks according to the characteristics of the distance represented by the data value in each pixel of the depth image, and combines the distance value with the feature of spatial continuity, and each block is represented by The reference distance occupying larger data bits and the relative distance occupying smaller data bits are represented, thereby reducing the data bits occupied by the entire depth image and reducing the occupied storage space.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的实施例。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and those skilled in the art can obtain other embodiments according to these drawings without any creative effort.

图1为本发明的实施例提供的深度图像处理方法的流程示意图;FIG. 1 is a schematic flowchart of a depth image processing method provided by an embodiment of the present invention;

图2为本发明的实施例提供的深度图像处理过程示意图;FIG. 2 is a schematic diagram of a depth image processing process provided by an embodiment of the present invention;

图3为本发明的实施例提供的深度图像处理系统的结构示意图;FIG. 3 is a schematic structural diagram of a depth image processing system provided by an embodiment of the present invention;

图4为本发明的实施例提供的计算机设备的结构示意图;FIG. 4 is a schematic structural diagram of a computer device provided by an embodiment of the present invention;

图5为本发明的实施例提供的计算机可读存储介质的结构示意图。FIG. 5 is a schematic structural diagram of a computer-readable storage medium provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the object, technical solution and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are to distinguish two entities with the same name but different parameters or parameters that are not the same, see "first" and "second" It is only for the convenience of expression, and should not be construed as a limitation on the embodiments of the present invention, which will not be described one by one in the subsequent embodiments.

根据本发明的一个方面,本发明的实施例提出一种深度图像处理方法,如图1所示,其可以包括步骤:According to one aspect of the present invention, an embodiment of the present invention proposes a depth image processing method, as shown in FIG. 1 , which may include steps:

S1,获取深度图像并分成多个像素块;S1, acquiring a depth image and dividing it into multiple pixel blocks;

S2,确定每一个所述像素块中的基准像素点;S2. Determine a reference pixel point in each pixel block;

S3,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;S3. Calculate the relative depth distance between other pixel points in each pixel block and the reference pixel point;

S4,存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。S4, storing the information of each pixel block, the information of the reference pixel point and the relative depth distance information.

本发明提出的方案根据深度图像各像素点中的数据值表征距离的特性,结合距离值具有空间连续性的特点,将深度图像划分成块,每一块以占用较大数据位的基准距离和占用较小数据位的相对距离表示,从而降低整张深度图像占用的数据位,降低了所占用的存储空间。The solution proposed by the invention divides the depth image into blocks according to the characteristics of the distance represented by the data value in each pixel of the depth image, and combines the characteristics of the distance value with spatial continuity. The relative distance representation of smaller data bits reduces the data bits occupied by the entire depth image and reduces the occupied storage space.

在一些实施例中,确定每一个所述像素块中的基准像素点,进一步还包括:In some embodiments, determining the reference pixel in each pixel block further includes:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离,进一步包括:In some embodiments, calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point further includes:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括:In some embodiments, also include:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

具体的,如图2所示,根据设定的图像块大小,将深度图像根据像素尺寸划分为m*n的像素块,并记录设定的图像块大小信息。Specifically, as shown in FIG. 2 , according to the set image block size, the depth image is divided into m*n pixel blocks according to the pixel size, and the set image block size information is recorded.

依次对各个块进行基准选定,将各个像素块中固定位置的像素点作为基准像素点,以左上方像素点为例,将当前块基准像素点中存储的深度距离值作为当前块的基准距离。Each block is selected as a reference in turn, and the pixel at a fixed position in each pixel block is used as the reference pixel. Taking the upper left pixel as an example, the depth distance value stored in the reference pixel of the current block is used as the reference distance of the current block .

计算各个块中其余像素点中存储的深度距离值与当前块基准距离的差值,以基准距离为被减数,结果作为相应像素点的相对距离。各个基准像素点的基准距离数据较大且需保存完整,需要占用原始较大的数据位表示,如16位数据。各个块其余像素点的相对距离,数值范围较小,可以使用相对较小的数据位完成精确表示,如8位或10位数据。Calculate the difference between the depth distance value stored in the remaining pixels in each block and the reference distance of the current block, take the reference distance as the subtrahend, and the result as the relative distance of the corresponding pixel. The reference distance data of each reference pixel point is large and needs to be preserved completely, and needs to occupy the original large data bit representation, such as 16-bit data. The relative distances of other pixels in each block have a small range of values, and can be accurately expressed using relatively small data bits, such as 8-bit or 10-bit data.

对图像块大小信息、各个块的基准距离信息、相对距离信息进行存储。这样存储当前块的基准距离和像素点的相对距离,即可实现对深度图像块的存储,依次存储深度图像划分成的各个块,将划分块的大小信息附加到数据头部,实现对整张深度图像的存储。Store image block size information, reference distance information and relative distance information of each block. In this way, storing the reference distance of the current block and the relative distance of the pixel points can realize the storage of the depth image block, store the blocks divided into the depth image in turn, and attach the size information of the divided block to the data header to realize the entire image. Storage of depth images.

在对深度图像数据的读取阶段,首先读取当前深度图像所划分的块大小信息,然后根据读取的每个块的基准距离和相对距离,计算解析出当前块的原始数据,依次对每个块进行解析,完成对当前整个深度图像数据的读取。In the stage of reading the depth image data, first read the block size information divided by the current depth image, and then calculate and analyze the original data of the current block according to the reference distance and relative distance of each block read, and sequentially analyze each Blocks are analyzed to complete the reading of the current entire depth image data.

本发明提出的方案首先将深度图像划分为所设定的块大小,选定块中固定位置的距离值作为当前块的基准距离,计算块中其余像素点与当前块基准距离的位置差作为相对距离,相对距离往往远小于原始距离,可以以较少的数据位表示,以此实现数据压缩节省空间的目的。以此类推,遍历整个深度图像,存储各个块的基准距离值和相对距离值代替对整个深度图像的存储,达到在保证数据精度不变的同时降低数据存储空间的目的。The scheme proposed by the present invention first divides the depth image into the set block size, selects the distance value of the fixed position in the block as the reference distance of the current block, and calculates the position difference between the rest of the pixels in the block and the reference distance of the current block as the relative distance. The distance, the relative distance is often much smaller than the original distance, and can be represented by fewer data bits, so as to achieve the purpose of data compression and space saving. By analogy, the entire depth image is traversed, and the reference distance value and relative distance value of each block are stored instead of storing the entire depth image, so as to achieve the purpose of reducing the data storage space while ensuring the data accuracy remains unchanged.

基于同一发明构思,根据本发明的另一个方面,本发明的实施例还提供了一种深度图像处理系统400,如图3所示,包括:Based on the same inventive concept, according to another aspect of the present invention, an embodiment of the present invention also provides a depth image processing system 400, as shown in FIG. 3 , including:

获取模块401,配置为获取深度图像并分成多个像素块;An acquisition module 401 configured to acquire a depth image and divide it into multiple pixel blocks;

确定模块402,配置为确定每一个所述像素块中的基准像素点;A determination module 402, configured to determine a reference pixel point in each of the pixel blocks;

计算模块403,配置为计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;Calculation module 403, configured to calculate the relative depth distance between other pixel points in each pixel block and the reference pixel point;

存储模块404,配置为存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。The storage module 404 is configured to store the information of each pixel block, the information of the reference pixel point and the relative depth distance information.

在一些实施例中,确定模块402还配置为:In some embodiments, the determination module 402 is further configured to:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算模块403还配置为:In some embodiments, the computing module 403 is further configured to:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括读取模块,配置为:In some embodiments, it also includes a reading module configured to:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

本发明提出的方案首先将深度图像划分为所设定的块大小,选定块中固定位置的距离值作为当前块的基准距离,计算块中其余像素点与当前块基准距离的位置差作为相对距离,相对距离往往远小于原始距离,可以以较少的数据位表示,以此实现数据压缩节省空间的目的。以此类推,遍历整个深度图像,存储各个块的基准距离值和相对距离值代替对整个深度图像的存储,达到在保证数据精度不变的同时降低数据存储空间的目的。The scheme proposed by the present invention first divides the depth image into the set block size, selects the distance value of the fixed position in the block as the reference distance of the current block, and calculates the position difference between the rest of the pixels in the block and the reference distance of the current block as the relative distance. The distance, the relative distance is often much smaller than the original distance, and can be represented by fewer data bits, so as to achieve the purpose of data compression and space saving. By analogy, the entire depth image is traversed, and the reference distance value and relative distance value of each block are stored instead of storing the entire depth image, so as to achieve the purpose of reducing the data storage space while ensuring the data accuracy remains unchanged.

基于同一发明构思,根据本发明的另一个方面,如图4所示,本发明的实施例还提供了一种计算机设备501,包括:Based on the same inventive concept, according to another aspect of the present invention, as shown in FIG. 4 , an embodiment of the present invention also provides a computer device 501, including:

至少一个处理器520;以及at least one processor 520; and

存储器510,存储器510存储有可在处理器上运行的计算机程序511,处理器520执行程序时执行以下步骤:Memory 510, the memory 510 stores a computer program 511 that can run on the processor, and the processor 520 performs the following steps when executing the program:

S1,获取深度图像并分成多个像素块;S1, acquiring a depth image and dividing it into multiple pixel blocks;

S2,确定每一个所述像素块中的基准像素点;S2. Determine a reference pixel point in each pixel block;

S3,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;S3. Calculate the relative depth distance between other pixel points in each pixel block and the reference pixel point;

S4,存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。S4, storing the information of each pixel block, the information of the reference pixel point and the relative depth distance information.

本发明提出的方案根据深度图像各像素点中的数据值表征距离的特性,结合距离值具有空间连续性的特点,将深度图像划分成块,每一块以占用较大数据位的基准距离和占用较小数据位的相对距离表示,从而降低整张深度图像占用的数据位,降低了所占用的存储空间。The solution proposed by the invention divides the depth image into blocks according to the characteristics of the distance represented by the data value in each pixel of the depth image, and combines the characteristics of the distance value with spatial continuity. The relative distance representation of smaller data bits reduces the data bits occupied by the entire depth image and reduces the occupied storage space.

在一些实施例中,确定每一个所述像素块中的基准像素点,进一步还包括:In some embodiments, determining the reference pixel in each pixel block further includes:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离,进一步包括:In some embodiments, calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point further includes:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括:In some embodiments, also include:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

具体的,如图2所示,根据设定的图像块大小,将深度图像根据像素尺寸划分为m*n的像素块,并记录设定的图像块大小信息。Specifically, as shown in FIG. 2 , according to the set image block size, the depth image is divided into m*n pixel blocks according to the pixel size, and the set image block size information is recorded.

依次对各个块进行基准选定,将各个像素块中固定位置的像素点作为基准像素点,以左上方像素点为例,将当前块基准像素点中存储的深度距离值作为当前块的基准距离。Each block is selected as a reference in turn, and the pixel at a fixed position in each pixel block is used as the reference pixel. Taking the upper left pixel as an example, the depth distance value stored in the reference pixel of the current block is used as the reference distance of the current block .

计算各个块中其余像素点中存储的深度距离值与当前块基准距离的差值,以基准距离为被减数,结果作为相应像素点的相对距离。各个基准像素点的基准距离数据较大且需保存完整,需要占用原始较大的数据位表示,如16位数据。各个块其余像素点的相对距离,数值范围较小,可以使用相对较小的数据位完成精确表示,如8位或10位数据。Calculate the difference between the depth distance value stored in the remaining pixels in each block and the reference distance of the current block, take the reference distance as the subtrahend, and the result as the relative distance of the corresponding pixel. The reference distance data of each reference pixel point is large and needs to be preserved completely, and needs to occupy the original large data bit representation, such as 16-bit data. The relative distances of other pixels in each block have a small range of values, and can be accurately expressed using relatively small data bits, such as 8-bit or 10-bit data.

对图像块大小信息、各个块的基准距离信息、相对距离信息进行存储。这样存储当前块的基准距离和像素点的相对距离,即可实现对深度图像块的存储,依次存储深度图像划分成的各个块,将划分块的大小信息附加到数据头部,实现对整张深度图像的存储。Store image block size information, reference distance information and relative distance information of each block. In this way, storing the reference distance of the current block and the relative distance of the pixel points can realize the storage of the depth image block, store the blocks divided into the depth image in turn, and attach the size information of the divided block to the data header to realize the entire image. Storage of depth images.

在对深度图像数据的读取阶段,首先读取当前深度图像所划分的块大小信息,然后根据读取的每个块的基准距离和相对距离,计算解析出当前块的原始数据,依次对每个块进行解析,完成对当前整个深度图像数据的读取。In the stage of reading the depth image data, first read the block size information divided by the current depth image, and then calculate and analyze the original data of the current block according to the reference distance and relative distance of each block read, and sequentially analyze each Blocks are analyzed to complete the reading of the current entire depth image data.

本发明提出的方案首先将深度图像划分为所设定的块大小,选定块中固定位置的距离值作为当前块的基准距离,计算块中其余像素点与当前块基准距离的位置差作为相对距离,相对距离往往远小于原始距离,可以以较少的数据位表示,以此实现数据压缩节省空间的目的。以此类推,遍历整个深度图像,存储各个块的基准距离值和相对距离值代替对整个深度图像的存储,达到在保证数据精度不变的同时降低数据存储空间的目的。The scheme proposed by the present invention first divides the depth image into the set block size, selects the distance value of the fixed position in the block as the reference distance of the current block, and calculates the position difference between the rest of the pixels in the block and the reference distance of the current block as the relative distance. The distance, the relative distance is often much smaller than the original distance, and can be represented by fewer data bits, so as to achieve the purpose of data compression and space saving. By analogy, the entire depth image is traversed, and the reference distance value and relative distance value of each block are stored instead of storing the entire depth image, so as to achieve the purpose of reducing the data storage space while ensuring the data accuracy remains unchanged.

基于同一发明构思,根据本发明的另一个方面,如图5所示,本发明的实施例还提供了一种计算机可读存储介质601,计算机可读存储介质601存储有计算机程序610,计算机程序610被处理器执行时执行以下步骤:Based on the same inventive concept, according to another aspect of the present invention, as shown in FIG. 5 , the embodiment of the present invention also provides a computer-readable storage medium 601, the computer-readable storage medium 601 stores a computer program 610, and the computer program When 610 is executed by the processor, the following steps are performed:

S1,获取深度图像并分成多个像素块;S1, acquiring a depth image and dividing it into multiple pixel blocks;

S2,确定每一个所述像素块中的基准像素点;S2. Determine a reference pixel point in each pixel block;

S3,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离;S3. Calculate the relative depth distance between other pixel points in each pixel block and the reference pixel point;

S4,存储每一个像素块的信息、基准像素点的信息以及相对深度距离信息。S4, storing the information of each pixel block, the information of the reference pixel point and the relative depth distance information.

本发明提出的方案根据深度图像各像素点中的数据值表征距离的特性,结合距离值具有空间连续性的特点,将深度图像划分成块,每一块以占用较大数据位的基准距离和占用较小数据位的相对距离表示,从而降低整张深度图像占用的数据位,降低了所占用的存储空间。The solution proposed by the invention divides the depth image into blocks according to the characteristics of the distance represented by the data value in each pixel of the depth image, and combines the characteristics of the distance value with spatial continuity. The relative distance representation of smaller data bits reduces the data bits occupied by the entire depth image and reduces the occupied storage space.

在一些实施例中,确定每一个所述像素块中的基准像素点,进一步还包括:In some embodiments, determining the reference pixel in each pixel block further includes:

将每一个所述像素块中预设固定位置的像素点作为基准像素点,并将所述基准像素点中存储的深度距离值作为基准距离。A pixel point at a preset fixed position in each pixel block is used as a reference pixel point, and a depth distance value stored in the reference pixel point is used as a reference distance.

在一些实施例中,计算每一个所述像素块中其他像素点与所述基准像素点之间的相对深度距离,进一步包括:In some embodiments, calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point further includes:

计算每一个所述像素块中其余像素点中存储的深度距离值与对应的基准像素点存储的基准距离的差值,其中所述对应的基准像素点存储的基准距离为被减数,结果作为相应像素点的相对深度距离。Calculate the difference between the depth distance value stored in the remaining pixels in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtrahend, and the result is obtained as The relative depth distance of the corresponding pixel.

在一些实施例中,还包括:In some embodiments, also include:

响应于接收到读取所述深度图像的指令,读取当前深度图像所划分的像素块的信息、每个像素块的基准像素点的信息以及相对深度距离信息;In response to receiving the instruction to read the depth image, read the information of the pixel blocks divided by the current depth image, the information of the reference pixel of each pixel block and the relative depth distance information;

根据每个像素块的基准像素点的信息以及相对深度距离信息计算解析出像素块的原始数据,进而完成对整个深度图像数据的读取。According to the reference pixel information of each pixel block and the relative depth distance information, the original data of the pixel block is calculated and analyzed, and then the reading of the entire depth image data is completed.

具体的,如图2所示,根据设定的图像块大小,将深度图像根据像素尺寸划分为m*n的像素块,并记录设定的图像块大小信息。Specifically, as shown in FIG. 2 , according to the set image block size, the depth image is divided into m*n pixel blocks according to the pixel size, and the set image block size information is recorded.

依次对各个块进行基准选定,将各个像素块中固定位置的像素点作为基准像素点,以左上方像素点为例,将当前块基准像素点中存储的深度距离值作为当前块的基准距离。Each block is selected as a reference in turn, and the pixel at a fixed position in each pixel block is used as the reference pixel. Taking the upper left pixel as an example, the depth distance value stored in the reference pixel of the current block is used as the reference distance of the current block .

计算各个块中其余像素点中存储的深度距离值与当前块基准距离的差值,以基准距离为被减数,结果作为相应像素点的相对距离。各个基准像素点的基准距离数据较大且需保存完整,需要占用原始较大的数据位表示,如16位数据。各个块其余像素点的相对距离,数值范围较小,可以使用相对较小的数据位完成精确表示,如8位或10位数据。Calculate the difference between the depth distance value stored in the remaining pixels in each block and the reference distance of the current block, take the reference distance as the subtrahend, and the result as the relative distance of the corresponding pixel. The reference distance data of each reference pixel point is large and needs to be preserved completely, and needs to occupy the original large data bit representation, such as 16-bit data. The relative distances of other pixels in each block have a small range of values, and can be accurately expressed using relatively small data bits, such as 8-bit or 10-bit data.

对图像块大小信息、各个块的基准距离信息、相对距离信息进行存储。这样存储当前块的基准距离和像素点的相对距离,即可实现对深度图像块的存储,依次存储深度图像划分成的各个块,将划分块的大小信息附加到数据头部,实现对整张深度图像的存储。Store image block size information, reference distance information and relative distance information of each block. In this way, storing the reference distance of the current block and the relative distance of the pixel points can realize the storage of the depth image block, store the blocks divided into the depth image in turn, and attach the size information of the divided block to the data header to realize the whole image Storage of depth images.

在对深度图像数据的读取阶段,首先读取当前深度图像所划分的块大小信息,然后根据读取的每个块的基准距离和相对距离,计算解析出当前块的原始数据,依次对每个块进行解析,完成对当前整个深度图像数据的读取。In the stage of reading the depth image data, first read the block size information divided by the current depth image, and then calculate and analyze the original data of the current block according to the reference distance and relative distance of each block read, and sequentially analyze each Blocks are analyzed to complete the reading of the current entire depth image data.

本发明提出的方案首先将深度图像划分为所设定的块大小,选定块中固定位置的距离值作为当前块的基准距离,计算块中其余像素点与当前块基准距离的位置差作为相对距离,相对距离往往远小于原始距离,可以以较少的数据位表示,以此实现数据压缩节省空间的目的。以此类推,遍历整个深度图像,存储各个块的基准距离值和相对距离值代替对整个深度图像的存储,达到在保证数据精度不变的同时降低数据存储空间的目的。The scheme proposed by the present invention first divides the depth image into the set block size, selects the distance value of the fixed position in the block as the reference distance of the current block, and calculates the position difference between the rest of the pixels in the block and the reference distance of the current block as the relative distance. The distance, the relative distance is often much smaller than the original distance, and can be represented by fewer data bits, so as to achieve the purpose of data compression and space saving. By analogy, the entire depth image is traversed, and the reference distance value and relative distance value of each block are stored instead of storing the entire depth image, so as to achieve the purpose of reducing the data storage space while ensuring the data accuracy remains unchanged.

最后需要说明的是,本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关硬件来完成,程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。Finally, it should be noted that those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing related hardware through computer programs, and the programs can be stored in a computer-readable storage medium. When the program is executed, it may include the processes of the embodiments of the above-mentioned methods.

此外,应该明白的是,本文的计算机可读存储介质(例如,存储器)可以是易失性存储器或非易失性存储器,或者可以包括易失性存储器和非易失性存储器两者。In addition, it should be appreciated that a computer-readable storage medium (eg, memory) herein can be either volatile memory or nonvolatile memory, or can include both volatile memory and nonvolatile memory.

本领域技术人员还将明白的是,结合这里的公开所描述的各种示例性逻辑块、模块、电路和算法步骤可以被实现为电子硬件、计算机软件或两者的组合。为了清楚地说明硬件和软件的这种可互换性,已经就各种示意性组件、方块、模块、电路和步骤的功能对其进行了一般性的描述。这种功能是被实现为软件还是被实现为硬件取决于具体应用以及施加给整个系统的设计约束。本领域技术人员可以针对每种具体应用以各种方式来实现的功能,但是这种实现决定不应被解释为导致脱离本发明实施例公开的范围。Those of skill would also appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described generally in terms of their functionality. Whether such functionality is implemented as software or as hardware depends upon the particular application and design constraints imposed on the overall system. Those skilled in the art may implement the functions in various ways for each specific application, but such implementation decisions should not be interpreted as causing a departure from the scope disclosed in the embodiments of the present invention.

以上是本发明公开的示例性实施例,但是应当注意,在不背离权利要求限定的本发明实施例公开的范围的前提下,可以进行多种改变和修改。根据这里描述的公开实施例的方法权利要求的功能、步骤和/或动作不需以任何特定顺序执行。此外,尽管本发明实施例公开的元素可以以个体形式描述或要求,但除非明确限制为单数,也可以理解为多个。The above are the exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications can be made without departing from the scope of the disclosed embodiments of the present invention defined in the claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in an individual form, they may also be understood as a plurality unless explicitly limited to a singular number.

应当理解的是,在本文中使用的,除非上下文清楚地支持例外情况,单数形式“一个”旨在也包括复数形式。还应当理解的是,在本文中使用的“和/或”是指包括一个或者一个以上相关联地列出的项目的任意和所有可能组合。It should be understood that as used herein, the singular form "a" and "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.

上述本发明实施例公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments disclosed in the above-mentioned embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above-mentioned embodiments can be completed by hardware, or can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium may be a read-only memory, a magnetic disk or an optical disk, and the like.

所属领域的普通技术人员应当理解:以上任何实施例的讨论仅为示例性的,并非旨在暗示本发明实施例公开的范围(包括权利要求)被限于这些例子;在本发明实施例的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,并存在如上的本发明实施例的不同方面的许多其它变化,为了简明它们没有在细节中提供。因此,凡在本发明实施例的精神和原则之内,所做的任何省略、修改、等同替换、改进等,均应包含在本发明实施例的保护范围之内。Those of ordinary skill in the art should understand that: the discussion of any of the above embodiments is exemplary only, and is not intended to imply that the scope (including claims) disclosed by the embodiments of the present invention is limited to these examples; under the idea of the embodiments of the present invention , the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the above embodiments of the present invention, which are not provided in details for the sake of brevity. Therefore, within the spirit and principle of the embodiments of the present invention, any omissions, modifications, equivalent replacements, improvements, etc., shall be included in the protection scope of the embodiments of the present invention.

Claims (10)

1. A depth image processing method, comprising the steps of:
acquiring a depth image and dividing the depth image into a plurality of pixel blocks;
determining a reference pixel point in each pixel block;
calculating the relative depth distance between other pixel points in each pixel block and the reference pixel point;
information of each pixel block, information of a reference pixel point, and relative depth distance information are stored.
2. The method of claim 1, wherein determining a reference pixel point in each of the pixel blocks further comprises:
and taking the pixel point of a preset fixed position in each pixel block as a reference pixel point, and taking the depth distance value stored in the reference pixel point as a reference distance.
3. The method of claim 2, wherein calculating the relative depth distances between other pixel points in each of the pixel blocks and the reference pixel point further comprises:
and calculating the difference value between the depth distance value stored in the rest pixel points in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtracted number, and the result is taken as the relative depth distance of the corresponding pixel point.
4. The method as recited in claim 1, further comprising:
in response to receiving an instruction for reading the depth image, reading information of pixel blocks divided by the current depth image, information of reference pixel points of each pixel block and relative depth distance information;
and calculating and analyzing the original data of the pixel blocks according to the information of the reference pixel point of each pixel block and the relative depth distance information, and further finishing the reading of the whole depth image data.
5. A depth image processing system, comprising:
an acquisition module configured to acquire a depth image and to divide the depth image into a plurality of pixel blocks;
a determining module configured to determine a reference pixel point in each of the pixel blocks;
the calculating module is configured to calculate the relative depth distance between other pixel points in each pixel block and the reference pixel point;
and a storage module configured to store information of each pixel block, information of the reference pixel point, and relative depth distance information.
6. The system of claim 5, wherein the determination module is further configured to:
and taking the pixel point of a preset fixed position in each pixel block as a reference pixel point, and taking the depth distance value stored in the reference pixel point as a reference distance.
7. The system of claim 6, wherein the computing module is further configured to:
and calculating the difference value between the depth distance value stored in the rest pixel points in each pixel block and the reference distance stored in the corresponding reference pixel point, wherein the reference distance stored in the corresponding reference pixel point is the subtracted number, and the result is taken as the relative depth distance of the corresponding pixel point.
8. The system of claim 5, further comprising a reading module configured to:
in response to receiving an instruction for reading the depth image, reading information of pixel blocks divided by the current depth image, information of reference pixel points of each pixel block and relative depth distance information;
and calculating and analyzing the original data of the pixel blocks according to the information of the reference pixel point of each pixel block and the relative depth distance information, and further finishing the reading of the whole depth image data.
9. A computer device, comprising:
at least one processor; and
a memory storing a computer program executable on the processor, wherein the processor performs the steps of the method of any of claims 1-4 when the program is executed.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor performs the steps of the method according to any of claims 1-4.
CN202310142918.9A 2023-02-17 2023-02-17 Depth image processing method, system, equipment and storage medium Pending CN116228517A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310142918.9A CN116228517A (en) 2023-02-17 2023-02-17 Depth image processing method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310142918.9A CN116228517A (en) 2023-02-17 2023-02-17 Depth image processing method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116228517A true CN116228517A (en) 2023-06-06

Family

ID=86578205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310142918.9A Pending CN116228517A (en) 2023-02-17 2023-02-17 Depth image processing method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116228517A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116957911A (en) * 2023-09-19 2023-10-27 苏州元脑智能科技有限公司 Depth image storage method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682781A (en) * 2008-01-18 2010-03-24 松下电器产业株式会社 Image encoding method and image decoding method
CN103067715A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN103067716A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN109640067A (en) * 2018-12-10 2019-04-16 Oppo广东移动通信有限公司 Image transmission method and device, system, electronic equipment and readable storage medium
CN114531598A (en) * 2020-11-06 2022-05-24 深圳Tcl数字技术有限公司 Image compression method and device, intelligent terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682781A (en) * 2008-01-18 2010-03-24 松下电器产业株式会社 Image encoding method and image decoding method
CN103067715A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN103067716A (en) * 2013-01-10 2013-04-24 华为技术有限公司 Encoding and decoding methods and encoding and decoding device of range image
CN109640067A (en) * 2018-12-10 2019-04-16 Oppo广东移动通信有限公司 Image transmission method and device, system, electronic equipment and readable storage medium
CN114531598A (en) * 2020-11-06 2022-05-24 深圳Tcl数字技术有限公司 Image compression method and device, intelligent terminal and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116957911A (en) * 2023-09-19 2023-10-27 苏州元脑智能科技有限公司 Depth image storage method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109727303B (en) Video display method, system, computer equipment, storage medium and terminal
US10176592B2 (en) Multi-directional structured image array capture on a 2D graph
US9699380B2 (en) Fusion of panoramic background images using color and depth data
US11153553B2 (en) Synthesis of transformed image views
US8902229B2 (en) Method and system for rendering three dimensional views of a scene
CN106875437B (en) RGBD three-dimensional reconstruction-oriented key frame extraction method
CN112241933A (en) Face image processing method and device, storage medium and electronic equipment
CN112862877B (en) Method and apparatus for training an image processing network and image processing
CN115294275A (en) Three-dimensional model reconstruction method, device and computer-readable storage medium
CN109977952B (en) Candidate target detection method based on local maximum
CN111080776B (en) Human body action three-dimensional data acquisition and reproduction processing method and system
CN111179408B (en) Three-dimensional modeling method and equipment
CN114529946A (en) Pedestrian re-identification method, device, equipment and storage medium based on self-supervision learning
CN104205826A (en) Apparatus and method for reconstructing high density three-dimensional image
WO2022021287A1 (en) Data enhancement method and training method for instance segmentation model, and related apparatus
CN109934873B (en) Method, device and equipment for acquiring marked image
CN108960012B (en) Feature point detection method and device and electronic equipment
CN109377552B (en) Image occlusion calculating method, device, calculating equipment and storage medium
US11367251B2 (en) Device using local depth information to generate an augmented reality image
CN116228517A (en) Depth image processing method, system, equipment and storage medium
CN117956130A (en) Video processing method, device, equipment, system and readable storage medium
CN113205011B (en) Image mask determining method and device, storage medium and electronic equipment
CN114299105A (en) Image processing method, image processing device, computer equipment and storage medium
CN109816791B (en) Method and apparatus for generating information
CN110288691B (en) Method, apparatus, electronic device and computer-readable storage medium for rendering image

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