CN114554175A - Point cloud lossless compression method based on classification rearrangement - Google Patents

Point cloud lossless compression method based on classification rearrangement Download PDF

Info

Publication number
CN114554175A
CN114554175A CN202111628747.8A CN202111628747A CN114554175A CN 114554175 A CN114554175 A CN 114554175A CN 202111628747 A CN202111628747 A CN 202111628747A CN 114554175 A CN114554175 A CN 114554175A
Authority
CN
China
Prior art keywords
pixels
block
pixel
sequence
mask map
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.)
Granted
Application number
CN202111628747.8A
Other languages
Chinese (zh)
Other versions
CN114554175B (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.)
Fuzhou University
Mindu Innovation Laboratory
Original Assignee
Fuzhou University
Mindu Innovation Laboratory
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 Fuzhou University, Mindu Innovation Laboratory filed Critical Fuzhou University
Priority to CN202111628747.8A priority Critical patent/CN114554175B/en
Publication of CN114554175A publication Critical patent/CN114554175A/en
Application granted granted Critical
Publication of CN114554175B publication Critical patent/CN114554175B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/161Encoding, multiplexing or demultiplexing different image signal components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention relates to a point cloud lossless compression method based on classification rearrangement. First, a threshold value is determined: dividing pixels in an image into a plurality of categories so that the gray values of the pixels in the same category are close to each other; according to the determined threshold, C1, C2 and a pixel mask map Mp are obtained through classification; mp is a binary pixel mask map with size SxS; mp records the category information of all pixels, but the bit number occupied by the Mp is large, and further blocks the pixels are combined to obtain a block mask map Mb; traversing the block mask graph and the pixels according to the sequence of a third-order Hilbert curve, namely arranging all the pixels of the whole image into a one-dimensional sequence D, wherein the D sequence is divided into two subsequences D1 and D2 which respectively correspond to high and low gray values; the data streams D1 and D2 and the block mask diagram Mb are coded by JPEG-LS, and then two coded bit streams are formed and finally output. The invention can meet the dual requirements of data lossless and high compression ratio.

Description

Point cloud lossless compression method based on classification rearrangement
Technical Field
The invention relates to an image compression coding technology, in particular to a point cloud lossless compression method based on classification rearrangement.
Background
With the development of 3D sensing and capturing technologies, 3D lidar point cloud technologies have demonstrated their utility in digital perception of real world environments, such as virtual/augmented/mixed reality (AR/VR/MR), moving maps, historical cultural relic scanning, smart cities, robots, and autopilots. The point cloud data has a data volume, which is a great challenge for the storage and transmission of computer equipment information at present, and the effective compression thereof is one of the indispensable steps.
Image coding can be classified into lossy compression coding and lossless compression coding according to whether there is a loss of information in the coding process. Although lossy compression encoding can compress data to a great extent, due to information loss, a decoding end cannot restore and recover an original image. Lossy coding is undesirable when there is a need for data integrity. Lossless compression coding is a method in which there is no loss of information and the original image can be recovered without error at the decoding end. However, the current lossless compression coding generally has the problem that the compression rate is not high enough.
The point cloud data are rearranged according to the sequence of Hilbert curves, similar pixel values are gathered in a certain sense, spatial correlation is increased, the capacity of an image compression method is fully exerted, and a JPEG-LS data encoding method is utilized, so that lossless compression of an image can be realized, and the compression ratio can be ensured to be high enough.
Disclosure of Invention
The invention aims to provide a point cloud lossless compression method based on classification rearrangement, and aims to improve the compression efficiency of point cloud image coding and meet the application requirement of efficiently and accurately coding a point cloud image.
In order to achieve the purpose, the technical scheme of the invention is as follows: a point cloud lossless compression method based on classification rearrangement comprises the following encoding processes:
step S1, determining a threshold: dividing pixels in an image into a plurality of categories so that the gray values of the pixels in the same category are close to each other; firstly, adaptively determining a threshold value according to a histogram of an image to enable the quantity of two types of pixels to be close; let the histogram of the original image be: h ═ c (g) e [0, S2]And c (g) e Z, g 0, 1.., 65536 }; the threshold G should be chosen to be G-argminT{|∑g<TC(g)-∑h≥TC (h) | }, wherein G, T and h are values of the histogram, and finding T to minimize the formula is the determined threshold value G;
step S2, obtaining C1, C2 and a pixel mask map Mp by gray classification according to the determined threshold: if the pixel value I (I, j) is larger than or equal to G, I (I, j) belongs to C1, and Mp (I, j) is 1; if the pixel value I (I, j) < G, I (I, j) ∈ C2 and Mp (I, j) > 0, C1 and C2 respectively represent the sets of pixels in the two categories, I (I, j) < G;
step S3, obtaining a block mask map Mb by merging mps: mp is a binary pixel mask map, size SxS; mp records the category information of all pixels, but the Mp itself has a large number of bits, and further combines the blocks, each block having a size MxM (M2M, M2, 3.) to obtain a block mask map Mb; when M is 1, Mp is equal to Mb; when the excessive pixel value of the area pixel value of 1 in the Mp corresponding to the pixel in Mb is 0, setting the pixel in Mb to be 1, otherwise setting the pixel to be 0;
step S4, inter-block rearrangement: traversing the block mask diagram Mb according to the sequence of the third-order Hilbert curves, and arranging all blocks into a one-dimensional sequence;
step S5, intra block rearrangement: each block also contains MxM pixels, so that the pixels are rearranged in the block by using Hilbert, all the blocks are performed in the same way, all the pixels of the whole image can be arranged into a one-dimensional sequence D, and the D sequence is divided into two subsequences D1 and D2 which respectively correspond to high and low gray values;
step S6, directly adopting JPEG-LS to encode the subsequences D1 and D2;
step S7, as each pixel of the block mask map Mb only contains a binary value, firstly combining 8 continuous pixels into a byte, and then carrying out JPEG-LS coding on the obtained byte stream;
the two encoded bitstreams are formed through steps S6 and S7 and finally output.
In an example of the present invention, the method further includes a decoding process of:
m1, recovering D1, D2 and Mb by using a JPEG-LS decoding algorithm;
step M2, traversing Mb according to the sequence of inter-block Hilbert curves, and taking M multiplied by M pixels from D1 or D2 according to the Mb value of the current point each time;
m3, filling pixels on the current block of the original image according to the sequence of Hilbert curves in the block; once the traversal is completed, the original image is obtained.
Compared with the prior art, the invention has the following beneficial effects: the invention rearranges the data of the two-dimensional point cloud distance image on the basis that the three-dimensional point cloud is converted into the two-dimensional distance image. The point cloud data are divided into high gray value and low gray value through threshold judgment, the pixel mask map is favorably reduced in occupied space by the inter-block rearrangement and the intra-block rearrangement, the point cloud data are rearranged according to the sequence of Hilbert curves, similar pixel values are gathered in a certain sense, the spatial correlation is increased, and the capacity of the image compression method is fully exerted, so that the double advantages of data loss and high compression ratio can be realized.
Drawings
FIG. 1 is a flow chart of the encoding of the present invention.
FIG. 2 is a decoding flow chart of the present invention.
Fig. 3 is a Hilbert graph.
Detailed Description
The technical scheme of the invention is specifically explained below with reference to the accompanying drawings.
As shown in fig. 1-3, the invention relates to a point cloud depth image lossless compression method based on classification rearrangement, which comprises the following steps:
1) the encoding process is shown in the encoding flow chart of fig. 1:
and step S1, determining a threshold value. Pixels in an image are divided into several categories such that the pixel grayscale values in the same category are close. Firstly, a threshold value is determined according to the histogram adaptation of the image, so that the number of the two types of pixels is close. Let the histogram of the original image be: h ═ c (g) e [0, S2]And c (g) ∈ Z, g ═ 0, 1, ·, 65536 }; . The threshold G should be chosen to be G-argminT{|∑g<TC(g)-∑h≥TC (h) | }, where G, T, and h are values of the histogram, and finding a suitable T to minimize the equation, i.e., the threshold G.
Step S2, gray level classification is carried out to obtain C1, C2 and a pixel mask map Mp. If the pixel value I (I, j) is larger than or equal to G, I (I, j) belongs to C1, and Mp (I, j) is 1; if the pixel value I (I, j) < G, I (I, j) ∈ C2 and Mp (I, j) > 0, C1, C2 respectively represent the sets of pixels in the two categories of high grayscale and low grayscale;
step S3, a block mask map Mb is obtained by merging mps. Mp is a binary pixel mask map, size SxS. Mp records the category information of all pixels, but the Mp itself occupies a large number of bits, and we further merge the blocks, each block having a size MxM (M2M, M2, 3.) to obtain a block mask map Mb. When M is 1, Mp is equal to Mb. When the area pixel value in Mp corresponding to the pixel in Mb is more than 0 pixel value of 1, setting the pixel in Mb as 1, otherwise setting the pixel as 0;
and step S4, inter-block rearrangement. Traversing the block mask map Mb according to the sequence of the third-order Hilbert curves (shown in FIG. 3), and arranging all blocks into a one-dimensional sequence;
step S5, block rearrangement, each block also contains MxM pixels, so the block rearrangement is carried out by Hilbert, all the blocks are carried out in the same mode, all the pixels of the whole image can be arranged into a one-dimensional sequence D, the D sequence is divided into two subsequences D1 and D2, and the subsequences are respectively corresponding to high gray values and low gray values;
step S6, directly coding the data streams D1 and D2 by JPEG-LS;
step S7, as each pixel of the block mask map Mb only contains a binary value, firstly combining 8 continuous pixels into a byte, and then carrying out JPEG-LS coding on the obtained byte stream;
the two encoded bitstreams are formed through steps S6 and S7 and finally output.
2) The decoding process is shown in the decoding flow chart of fig. 2:
m1, recovering D1, D2 and Mb by using a JPEG-LS decoding algorithm;
step M2, traversing Mb according to the sequence of inter-block Hilbert curves, and taking M multiplied by M pixels from D1 or D2 according to the Mb value of the current point each time;
step M3, filling pixels onto the current block of the original image in the order of the Hilbert curves within the block. Once the traversal is complete, the original image is obtained.
Although the present invention has been described with reference to the preferred embodiments, it is not intended to limit the present invention, and those skilled in the art can make variations and modifications of the present invention without departing from the spirit and scope of the present invention by using the methods and technical contents disclosed above. The above description is only a preferred embodiment of the present invention, and all equivalent changes and modifications made in accordance with the claims of the present invention should be covered by the present invention.

Claims (2)

1. A point cloud lossless compression method based on classification rearrangement is characterized by comprising the following encoding processes:
step S1, determining a threshold: scribing pixels in an imageDividing the image into a plurality of categories to enable the gray values of pixels in the same category to be close; firstly, adaptively determining a threshold value according to a histogram of an image to enable the quantity of two types of pixels to be close; let the histogram of the original image be: h ═ c (g) e [0, S2]And c (g) e Z, g 0, 1.., 65536 }; the threshold G should be chosen to be G-argminT{|∑g<TC(g)-∑h≥TC (h) | }, wherein G, T and h are values of the histogram, and finding T to minimize the formula is the determined threshold value G;
step S2, obtaining C1, C2 and a pixel mask map Mp by gray classification according to the determined threshold: if the pixel value I (I, j) ≧ G, I (I, j) belongs to C1 and Mp (I, j) equals 1; if the pixel value I (I, j) < G, I (I, j) ∈ C2 and Mp (I, j) > 0, C1 and C2 respectively represent the sets of pixels in the two categories, I (I, j) < G;
step S3, obtaining a block mask map Mb by merging mps: mp is a binary pixel mask map, size SxS; mp records the category information of all pixels, but the Mp itself occupies a large number of bits, and further merges the blocks, each block having a size MxM (M2M, M2, 3.) to obtain a block mask map Mb; when M is 1, Mp is equal to Mb; when the excessive pixel value of the area pixel value of 1 in Mp corresponding to the pixel in Mb is 0, setting the pixel in Mb to be 1, otherwise setting the pixel to be 0;
step S4, inter-block rearrangement: traversing the block mask diagram Mb according to the sequence of the third-order Hilbert curves, and arranging all blocks into a one-dimensional sequence;
step S5, intra block rearrangement: each block also contains MxM pixels, so that the pixels are rearranged in the block by using Hilbert, all the blocks are performed in the same way, all the pixels of the whole image can be arranged into a one-dimensional sequence D, and the D sequence is divided into two subsequences D1 and D2 which respectively correspond to high and low gray values;
step S6, directly adopting JPEG-LS to encode the subsequences D1 and D2;
step S7, as each pixel of the block mask map Mb only contains a binary value, firstly combining 8 continuous pixels into a byte, and then carrying out JPEG-LS coding on the obtained byte stream;
the two encoded bitstreams are formed through steps S6 and S7 and finally output.
2. The method of claim 1, further comprising a decoding process of:
step M1, recovering D1, D2 and Mb by using a JPEG-LS decoding algorithm;
step M2, traversing Mb according to the sequence of inter-block Hilbert curves, and taking M multiplied by M pixels from D1 or D2 according to the Mb value of the current point each time;
m3, filling pixels on the current block of the original image according to the sequence of Hilbert curves in the block; once the traversal is completed, the original image is obtained.
CN202111628747.8A 2021-12-28 2021-12-28 Classification rearrangement-based lossless compression method for two-dimensional point cloud distance images Active CN114554175B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111628747.8A CN114554175B (en) 2021-12-28 2021-12-28 Classification rearrangement-based lossless compression method for two-dimensional point cloud distance images

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111628747.8A CN114554175B (en) 2021-12-28 2021-12-28 Classification rearrangement-based lossless compression method for two-dimensional point cloud distance images

Publications (2)

Publication Number Publication Date
CN114554175A true CN114554175A (en) 2022-05-27
CN114554175B CN114554175B (en) 2024-02-13

Family

ID=81669617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111628747.8A Active CN114554175B (en) 2021-12-28 2021-12-28 Classification rearrangement-based lossless compression method for two-dimensional point cloud distance images

Country Status (1)

Country Link
CN (1) CN114554175B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5243446A (en) * 1990-02-22 1993-09-07 Pollich Richard E Adaptive clumped dithering with clump plane separation
US20020176631A1 (en) * 2001-03-30 2002-11-28 Sharp Laboratories Of America, Inc. High performance lossless compression of grayscale documents
CN104463872A (en) * 2014-12-10 2015-03-25 武汉大学 Classification method based on vehicle-mounted LiDAR point cloud data
US10024664B1 (en) * 2014-09-30 2018-07-17 The United States Of America As Represented By The Administrator Of The National Aeronautics And Space Administration Range and intensity image-based terrain and vehicle relative pose estimation system
EP3614672A1 (en) * 2018-08-23 2020-02-26 InterDigital VC Holdings, Inc. A method and apparatus for encoding/decoding a point cloud representing a 3d object
CN111277831A (en) * 2020-01-15 2020-06-12 广东工业大学 Image compression method and system based on classified coding
CN113034627A (en) * 2021-03-30 2021-06-25 太原科技大学 Virtual structured light 3D point cloud compression method based on geometric rearrangement
CN113518226A (en) * 2021-06-29 2021-10-19 福州大学 G-PCC point cloud coding improvement method based on ground segmentation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5243446A (en) * 1990-02-22 1993-09-07 Pollich Richard E Adaptive clumped dithering with clump plane separation
US20020176631A1 (en) * 2001-03-30 2002-11-28 Sharp Laboratories Of America, Inc. High performance lossless compression of grayscale documents
US10024664B1 (en) * 2014-09-30 2018-07-17 The United States Of America As Represented By The Administrator Of The National Aeronautics And Space Administration Range and intensity image-based terrain and vehicle relative pose estimation system
CN104463872A (en) * 2014-12-10 2015-03-25 武汉大学 Classification method based on vehicle-mounted LiDAR point cloud data
EP3614672A1 (en) * 2018-08-23 2020-02-26 InterDigital VC Holdings, Inc. A method and apparatus for encoding/decoding a point cloud representing a 3d object
CN111277831A (en) * 2020-01-15 2020-06-12 广东工业大学 Image compression method and system based on classified coding
CN113034627A (en) * 2021-03-30 2021-06-25 太原科技大学 Virtual structured light 3D point cloud compression method based on geometric rearrangement
CN113518226A (en) * 2021-06-29 2021-10-19 福州大学 G-PCC point cloud coding improvement method based on ground segmentation

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
XUEBIN SUN 等: "A Novel Point Cloud Compression Algorithm Based on Clustering", IEEE ROBOTICS AND AUTOMATION LETTERS, vol. 4, no. 2, XP011713472, DOI: 10.1109/LRA.2019.2900747 *
谢耀华;汤晓安;孙茂印;张永亮;: "基于分类重排LZW的图像无损压缩算法", 中国图象图形学报, no. 02 *
陈元相 等: "非一致性稀疏采样的LiDAR 点云压缩方法", 《福州大学学报》, vol. 49, no. 3 *

Also Published As

Publication number Publication date
CN114554175B (en) 2024-02-13

Similar Documents

Publication Publication Date Title
CN1681330B (en) Adaptive 2n-ary tree generating method, and method and apparatus for encoding and decoding 3d volume data using it
JP7431742B2 (en) Method and apparatus for encoding/decoding a point cloud representing a three-dimensional object
CN111684802B (en) Method and apparatus for hierarchical encoding and decoding of byte streams
CN104378644B (en) Image compression method and device for fixed-width variable-length pixel sample string matching enhancement
CN109842803B (en) Image compression method and device
CN107301194B (en) Compressed storage and release method of tile type grid map
JP7389751B2 (en) Method and apparatus for encoding/decoding a point cloud representing a three-dimensional object
CN1309258C (en) A method of lossless image compression applied to real time transmission
CN104780379A (en) Compression method for screen image set
CN1187717C (en) Deformation data encoding method and device for 3D objects
WO2021196029A1 (en) Method and device for encoding and decoding point cloud
CN107018419A (en) A kind of image compression encoding method based on AMBTC
CN113518226A (en) G-PCC point cloud coding improvement method based on ground segmentation
CN1201562C (en) Lossless image compression with tree coding
CN107682699A (en) A kind of nearly Lossless Image Compression method
CN115474044B (en) Bayer domain image lossy compression method
CN117014618A (en) Image compression-based blocking method and system and electronic equipment
EP3614672A1 (en) A method and apparatus for encoding/decoding a point cloud representing a 3d object
CN114554175B (en) Classification rearrangement-based lossless compression method for two-dimensional point cloud distance images
CN115102934A (en) Point cloud data decoding method, encoding method, device, equipment and storage medium
CN113422965A (en) Image compression method and device based on generation countermeasure network
CN1396769A (en) Compression method and system for moving image information
WO2024065406A1 (en) Encoding and decoding methods, bit stream, encoder, decoder, and storage medium
EP3614673A1 (en) A method and apparatus for encoding/decoding a point cloud representing a 3d object
WO2023024842A1 (en) Point cloud encoding/decoding method, apparatus and device, and storage medium

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