CN114708180A - Bit depth quantization and enhancement method for pre-distorted image with dynamic range preservation - Google Patents

Bit depth quantization and enhancement method for pre-distorted image with dynamic range preservation Download PDF

Info

Publication number
CN114708180A
CN114708180A CN202210398259.0A CN202210398259A CN114708180A CN 114708180 A CN114708180 A CN 114708180A CN 202210398259 A CN202210398259 A CN 202210398259A CN 114708180 A CN114708180 A CN 114708180A
Authority
CN
China
Prior art keywords
image
bit
quantization
bit image
predistorted
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
CN202210398259.0A
Other languages
Chinese (zh)
Other versions
CN114708180B (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.)
University of Electronic Science and Technology of China
Original Assignee
University of Electronic Science and Technology of China
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 University of Electronic Science and Technology of China filed Critical University of Electronic Science and Technology of China
Priority to CN202210398259.0A priority Critical patent/CN114708180B/en
Publication of CN114708180A publication Critical patent/CN114708180A/en
Application granted granted Critical
Publication of CN114708180B publication Critical patent/CN114708180B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10028Range image; Depth image; 3D point clouds
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Evolutionary Computation (AREA)
  • General Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Image Processing (AREA)

Abstract

The invention discloses a bit depth quantization and enhancement method for a pre-distorted image with dynamic range maintenance, and belongs to the technical field of image processing. Firstly, normalizing an input high-bit image, then calculating a predistortion template image and adjusting the resolution of the predistortion template image to obtain a predistortion image, then adding the normalized high-bit image and the predistortion image pixel by pixel, then calculating a quantization function with a dynamic range retention characteristic according to the bit depth of the low-bit image to quantize the predistortion high-bit image, finally taking the low-bit image as an input image of a network, and performing bit depth enhancement on the low-bit image through a convolutional neural network to obtain the high-bit image. The quantization method with dynamic range preservation can inhibit the blurring of over-bright or over-dark areas in the reconstructed image and improve the image reconstruction quality.

Description

具有动态范围保持的预失真图像比特深度量化和增强方法Bit-depth quantization and enhancement method for predistorted images with dynamic range preservation

技术领域technical field

本发明属于图像处理技术领域,尤其涉及一种具有动态范围保持的预失真图像的比特深度增强方法。The invention belongs to the technical field of image processing, and in particular relates to a bit depth enhancement method of predistorted images with dynamic range preservation.

背景技术Background technique

图像作为现代主流的信息载体,给日常生活带来便利的同时也给存储与传输设备带来较大的挑战。并且在一些像无线传感网络这类具有非对称系统复杂性的应用场景,即在数据接收端计算资源不受限,在数据传输端计算资源受限,故降低图像传输端的数据量是十分有必要的。通过将高比特图像(即高比特深度图像,图像的比特深度是描述像素每个通道所能表达的灰度范围,例如位深度为n的图像能够表示2n种灰度,颜色表示也更细腻,图像在视觉上的体验也更好)量化为低比特图像能够实现对图像的简单压缩,然而,降低图像的比特深度会带来颜色失真和伪轮廓的问题,这将严重影响观看体验。增大量化步长可以提升压缩效率,但是会引入更严重的伪轮廓和颜色失真,使得即使是性能最好的神经网络方法也无法保证对这两种伪迹的有效抑制。为此,联合重构方法在低比特图像生成时,通过施加预失真获得具有较少伪迹的低比特图像,有利于重构高质量的高比特图像。然而,现有的量化方法由于动态范围损失,使得基于深度学习的联合重构方法生成的高比特图像的过明和过暗区域的边界出现明显的模糊,影响主观视觉体验。As a modern mainstream information carrier, images bring convenience to daily life, but also bring great challenges to storage and transmission equipment. And in some application scenarios with asymmetric system complexity such as wireless sensor networks, that is, the computing resources on the data receiving end are not limited, and the computing resources on the data transmitting end are limited, so it is very important to reduce the amount of data on the image transmitting end. necessary. By converting a high-bit image (that is, a high-bit-depth image, the bit depth of the image is the grayscale range that can be expressed by each channel of the pixel, for example, an image with a bit depth of n can represent 2n grayscales, and the color representation is also more delicate, The visual experience of the image is also better) Quantization to a low-bit image can achieve simple compression of the image, however, reducing the bit-depth of the image will bring about the problems of color distortion and false contours, which will seriously affect the viewing experience. Increasing the quantization step size can improve the compression efficiency, but it will introduce more serious false contours and color distortions, so that even the best performing neural network methods cannot guarantee effective suppression of these two artifacts. For this reason, the joint reconstruction method obtains a low-bit image with less artifacts by applying predistortion when generating a low-bit image, which is conducive to reconstructing a high-quality high-bit image. However, due to the loss of dynamic range in the existing quantization methods, the boundaries of the over-bright and over-dark regions of the high-bit image generated by the joint reconstruction method based on deep learning are obviously blurred, which affects the subjective visual experience.

发明内容SUMMARY OF THE INVENTION

本发明的目的在于提出一种具有动态范围保持的比特深度量化方法,能够进一步提升比特深度增强性能,实现对重构高比特图像在过明和过暗区域明显模糊的抑制,使得重构高比特图像达到最佳的主客观质量。The purpose of the present invention is to propose a bit depth quantization method with dynamic range preservation, which can further improve the bit depth enhancement performance, realize the suppression of the obvious blurring of the reconstructed high-bit image in the areas that are too bright and too dark, and make the reconstructed high-bit image To achieve the best subjective and objective quality.

本发明采用的技术方案为:The technical scheme adopted in the present invention is:

具有动态范围保持的预失真图像比特深度量化和增强方法,包括以下步骤:A predistorted image bit depth quantization and enhancement method with dynamic range preservation, comprising the following steps:

步骤S1:对高比特图像进行量化处理:Step S1: Quantize the high-bit image:

步骤S101:对输入的高比特图像进行归一化处理:将每个像素的灰度值除以所述高比特图像的最大灰度值;Step S101: normalize the input high-bit image: divide the gray value of each pixel by the maximum gray value of the high-bit image;

基于量化目标的比特深度l计算得到量化步长Q=1/(2l-1),即高比特图像经量化处理后将得到比特深度为l的低比特图像;Calculated based on the bit depth 1 of the quantization target, the quantization step size Q= 1 /(21-1), that is, the high-bit image will obtain a low-bit image with a bit depth of 1 after being quantized;

步骤S102:根据量化步长Q计算得到预失真函数(Planned Sensor Distortion,PSD)模板图像;Step S102: Calculate and obtain a predistortion function (Planned Sensor Distortion, PSD) template image according to the quantization step size Q;

步骤S102:对得到的模板图像进行无重叠平铺处理,得到图像分辨率与所述高比特图像一致的预失真图像;Step S102: performing non-overlapping tiling processing on the obtained template image to obtain a predistorted image with an image resolution consistent with the high-bit image;

步骤S103:将预失真图像与归一化处理后的高比特图像进行逐像素相加,得到预失真高比特图像;Step S103: adding the predistorted image and the normalized high-bit image pixel by pixel to obtain a pre-distorted high-bit image;

步骤S104:根据量化步长Q设置具有动态范围保持的量化方式,对预失真高比特图像进行量化,得到低比特图像;Step S104: according to the quantization step size Q, a quantization mode with dynamic range retention is set, and the predistorted high-bit image is quantized to obtain a low-bit image;

步骤S2:通过卷积神经网络建立低比特图像到高比特图像间的映射关系,得到图像比特深度增强网络;以步骤S1得到的低比特图像作为所述图像比特深度增强网络的输入,基于其输出得到增强后的图像,即重构后的高比特图像。Step S2: establishing a mapping relationship between low-bit images and high-bit images through a convolutional neural network to obtain an image bit depth enhancement network; using the low-bit image obtained in step S1 as the input of the image bit depth enhancement network, based on its output An enhanced image is obtained, that is, a reconstructed high-bit image.

进一步的,所述步骤S104中,具有动态范围保持的量化方式具体为:Further, in the step S104, the quantization method with dynamic range preservation is specifically:

若当前像素的灰度值小于或等于Q/2,则当前像素的灰度值被量化为0;If the gray value of the current pixel is less than or equal to Q/2, the gray value of the current pixel is quantized to 0;

若当前像素的灰度值大于1-Q/2,则当前像素的灰度值被量化为1;If the gray value of the current pixel is greater than 1-Q/2, the gray value of the current pixel is quantized to 1;

若当前像素的灰度值位于[Q/2,1-Q/2],将取值范围[Q/2,1-Q/2]均匀划分为多个子区间,对每个子区间,基于其中点得到当前子区间的量化值。If the gray value of the current pixel is located in [Q/2,1-Q/2], divide the value range [Q/2,1-Q/2] into multiple sub-intervals, and for each sub-interval, based on the midpoint Get the quantized value of the current subinterval.

进一步的,所述步骤S104中,对于取值范围为[Q/2,1-Q/2]的灰度值,量化时的新量化步长Δ=(1-Q)/(2l-2),每个子区间的量化值为[Q+(2k+1)Δ]/2,其中,k=0,1,…2l-3。Further, in the step S104, for grayscale values whose value range is [Q/2, 1-Q/2], the new quantization step size Δ=(1-Q)/(2 l -2 during quantization ), the quantization value of each sub-interval is [Q+(2k+1)Δ]/2, where k=0, 1, . . . 2 l -3.

进一步的,S102中,模板图像为3×3,且在任意3×3邻域中为{Q(1-L)/2L,Q(3-L)/2L,…,Q(L-1)/2L}的完整集合,其中L=(2n+1)2,n=1。Further, in S102, the template image is 3×3, and in any 3×3 neighborhood, it is {Q(1-L)/2L, Q(3-L)/2L,...,Q(L-1) /2L}, where L=(2n+1) 2 , n=1.

即本发明中,所采用的具有动态范围保持的量化方式属于一种非均匀量化方法,由于经过预失真模板图像处理的高比特图像的灰度值范围会出现小于0和大于1的情况,分别超出规定范围[0,1]外Q/2,故新的值域修改为[-Q/2,1+Q/2]。当对图像进行l bit量化,则共有2l个量化区间,当预失真高比特图像处于小于等于Q/2的范围内时,灰度值被量化为0,当预失真高比特图像处于大于1-Q/2的灰度范围时被量化为1,当预失真高比特图像在中间范围[Q/2,1-Q/2]时,首先将该范围进行均匀量化,得到新的量化步长Δ=(1-Q)/(2n-2),每个区间都取其中点作为量化值,即[Q+(2k+1)Δ]/2。对预失真高比特图像用该方式进行量化,从而得到低比特图像,该过程可以用函数表示如下:That is, in the present invention, the adopted quantization method with dynamic range preservation belongs to a non-uniform quantization method, because the gray value range of the high-bit image processed by the predistorted template image may be less than 0 and greater than 1, respectively. Q/2 outside the specified range [0,1], so the new value range is modified to [-Q/2,1+Q/2]. When the image is quantized by 1 bit, there are 21 quantization intervals. When the predistorted high-bit image is in the range of less than or equal to Q/2, the gray value is quantized to 0. When the predistorted high-bit image is greater than 1 -Q/2 grayscale range is quantized to 1. When the predistorted high-bit image is in the middle range [Q/2, 1-Q/2], the range is first uniformly quantized to obtain a new quantization step size Δ=(1-Q)/(2 n -2), the midpoint of each interval is taken as the quantized value, that is, [Q+(2k+1)Δ]/2. The predistorted high-bit image is quantized in this way to obtain a low-bit image. This process can be expressed as a function as follows:

Figure BDA0003598448580000031
Figure BDA0003598448580000031

其中,IL表示量化后的低比特图像,IPSD表示预失真高比特图像。Among them, IL represents the quantized low-bit image, and I PSD represents the predistorted high-bit image.

本发明提供的技术方案至少带来如下有益效果:The technical scheme provided by the present invention brings at least the following beneficial effects:

对预失真高比特图像进行传统的例如四舍五入和向下取整的均匀量化方法会带来动态范围损失的问题,改进后的量化方法对最亮和最暗区间采取非均匀量化,对中间区域采取均匀量化,达到动态范围保持的目的,从而抑制重建高比特图像在过明和过暗区域的模糊问题。The traditional uniform quantization method such as rounding and rounding down on the predistorted high-bit image will bring about the loss of dynamic range. Uniform quantization achieves the purpose of maintaining the dynamic range, thereby suppressing the blurring of the reconstructed high-bit image in over-bright and over-dark areas.

附图说明Description of drawings

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

图1是本发明实施例提供的一种具有动态范围保持的预失真图像比特深度量化和增强方法的处理过程示意图;1 is a schematic diagram of a processing process of a predistorted image bit depth quantization and enhancement method with dynamic range preservation provided by an embodiment of the present invention;

图2是本发明实施例中的预失真模板图像示意图;2 is a schematic diagram of a predistorted template image in an embodiment of the present invention;

图3是本发明实施例中的量化处理示意图。FIG. 3 is a schematic diagram of quantization processing in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

本发明实施例提供了一种具有动态范围保持的预失真图像比特深度量化和增强方法,基于PSD的比特深度增强算法属于联合重构类算法,同时考虑低比特图像的生成过程和高比特图像的重构过程,在量化前对图像进行预失真处理以构建信号的有效多观测,有利于后续阶段卷积神经网络对比特深度进行重建,提高图像重构质量。当应用在图像传输处理时,可通过本发明实施例提供的量化处理,对将高比特图像进行压缩处理,然后进行图像传输处理,在接收端,基于本发明实施例提供的增强方式进行低比特到高比特的图像增强,以实现在接收端重构出质量较高的高比特图像,从而实现对接收的低比特图像在高比特显示器中的显示转换处理。The embodiment of the present invention provides a predistorted image bit depth quantization and enhancement method with dynamic range preservation. The PSD-based bit depth enhancement algorithm belongs to the joint reconstruction algorithm, and considers the generation process of the low-bit image and the high-bit image at the same time. In the reconstruction process, the image is pre-distorted before quantization to construct effective multi-observation of the signal, which is conducive to the reconstruction of the bit depth by the convolutional neural network in the subsequent stage and improves the quality of image reconstruction. When applied to image transmission processing, the quantization processing provided by the embodiment of the present invention can be used to compress the high-bit image, and then perform image transmission processing. The high-bit image is enhanced to achieve high-quality high-bit image reconstruction at the receiving end, so as to realize the display conversion processing of the received low-bit image in the high-bit display.

如图1所示,本发明实施例提供的具有动态范围保持的预失真图像比特深度量化和增强方法的具体实施过程包括:高比特图像的归一化处理、预失真函数模板图像(预失真模板图像)的计算、预失真图像的获取、量化函数的计算、对预失真图像进行量化、基于神经网络的比特深度重建。As shown in FIG. 1 , the specific implementation process of the predistorted image bit depth quantization and enhancement method with dynamic range preservation provided by the embodiment of the present invention includes: normalization processing of high-bit images, predistortion function template image (predistortion template image) image) calculation, acquisition of predistorted image, calculation of quantization function, quantization of predistorted image, bit depth reconstruction based on neural network.

步骤1:对高比特图像IH(即具有第一图像数据格式的图像)进行归一化处理,根据低比特图像(具有第二图像数据格式的图像,其中第二图像数据格式的图像比特深度低于第一图像数据格式)IL的比特深度计算得到量化步长,本实施例中,假设高比特图像的比特深度为16,低比特图像的比特深度为2,则16bit位深所能表示的最大灰度值为216-1,归一化后为I'H=IH/(216-1),量化步长为Q=1/22=0.25;Step 1: Normalize the high-bit image I H (that is, the image with the first image data format), according to the low-bit image (the image with the second image data format, wherein the image bit depth of the second image data format) The quantization step size is obtained by calculating the bit depth lower than the first image data format) IL . In this embodiment, assuming that the bit depth of the high-bit image is 16 and the bit depth of the low-bit image is 2, then the 16-bit bit depth can represent The maximum gray value of 2 16 -1, after normalization, is I' H =I H /(2 16 -1), and the quantization step size is Q=1/2 2 =0.25;

步骤2:根据量化步长Q=0.25计算得到预失真模板图像,预失真模板图像在任意3×3邻域中是{-4/9Q,-3/9Q,-2/9Q,-1/9Q,0,1/9Q,2/9Q,3/9Q,4/9Q}的完整集合,即在3×3的模板中对该9个像素值进行随机排布。作为一种优选的方式则是如图2所示的排布,即预失真模板图像的中心点的灰度值为0,中心点的邻接像素点的灰度值关于中心点呈中心对称分布,且对称的两个像素点的取值相反;Step 2: Calculate the predistorted template image according to the quantization step size Q=0.25. The predistorted template image is {-4/9Q, -3/9Q, -2/9Q, -1/9Q in any 3×3 neighborhood ,0,1/9Q,2/9Q,3/9Q,4/9Q}, that is, the 9 pixel values are randomly arranged in a 3×3 template. As a preferred way, it is the arrangement shown in Figure 2, that is, the gray value of the center point of the predistorted template image is 0, and the gray value of the adjacent pixel points of the center point is distributed symmetrically about the center point, And the values of the two symmetrical pixels are opposite;

步骤3:假设高比特图像分辨率为M×N,在高比特图像量化为低比特图像前,将步骤2计算得到的预失真模板图像从左到右从上到下进行无重叠无遗漏的平铺,以获取分辨率大小为M×N的预失真图像,将其设为δpsd,将其与高比特图像IH进行逐像素相加,表示为IPSD=IHpsdStep 3: Assuming that the resolution of the high-bit image is M×N, before the high-bit image is quantized into a low-bit image, the pre-distorted template image calculated in step 2 is flattened from left to right and from top to bottom without overlap and omission. to obtain a predistorted image with a resolution size of M×N, set it as δ psd , and add it pixel-by-pixel with the high-bit image I H , which is expressed as I PSD =I Hpsd ;

作为一种可能的实现方式,本步骤中,在获取预失真图像时,可首先将预失真模板图像从左到右从上到下进行无重叠无遗漏的平铺,平铺后的图像尺寸大于或等于M×N,若平铺后的图像尺寸超过M×N,则将多余的部分裁剪掉,从而得到M×N的预失真图像。As a possible implementation, in this step, when acquiring the predistorted image, the predistorted template image can be tiled from left to right and top to bottom without overlapping and omission, and the size of the tiled image is larger than Or equal to M×N. If the size of the tiled image exceeds M×N, the redundant part is cropped to obtain an M×N predistorted image.

作为一种可能的实现方式,还可采用滑窗的方式来获取M×N的预失真图像,滑窗窗口大小与预失真模板图像相同,步长为预失真模板图像的边长,在M×N的图像范围内,每滑动一次,则将预失真模板图像的像素逐像素点填充,当每次滑动到最末端时,对超出图像范围的窗口则跳过,即不进行像素填充,从而得到M×N的预失真图像。As a possible implementation, a sliding window can also be used to obtain an M×N predistorted image. The size of the sliding window is the same as that of the predistorted template image, and the step size is the side length of the predistorted template image. Within the image range of N, the pixels of the predistorted template image are filled pixel by pixel each time they slide once, and when they slide to the very end each time, the window beyond the image range is skipped, that is, no pixel filling is performed, thus obtaining MxN predistorted image.

步骤4:根据量化步长Q=0.25设计具有动态范围保持的量化函数如下所示:Step 4: Design a quantization function with dynamic range preservation according to the quantization step size Q=0.25 as follows:

Figure BDA0003598448580000051
Figure BDA0003598448580000051

其中,IL表示量化后的图像。这是一种非均匀量化方法,对于两端和中间区域采用不同的量化方式,由于经过预失真模板图像处理的高比特图像其灰度值范围会出现小于0和大于1的情况,分别超出规定范围[0,1]外0.125,故新的值域修改为[-0.125,1.125]。2bit量化将整个区间划分为4段,对预失真高比特图像用该方式进行量化,得到低比特图像IL,量化示意图如图3所示。Among them, IL represents the quantized image. This is a non-uniform quantization method. Different quantization methods are used for the two ends and the middle area. Since the gray value range of the high-bit image processed by the predistorted template image will be less than 0 and greater than 1, respectively exceeding the specified It is 0.125 outside the range [0,1], so the new value range is modified to [-0.125,1.125]. The 2-bit quantization divides the entire interval into 4 segments, and quantizes the predistorted high-bit image in this way to obtain the low-bit image IL . The schematic diagram of quantization is shown in FIG. 3 .

步骤5:在图像接收端,通过卷积神经网络建立2bit的预失真低比特图像到16bit的高比特图像间的非线性映射关系。Step 5: At the image receiving end, a non-linear mapping relationship between a 2-bit predistorted low-bit image and a 16-bit high-bit image is established through a convolutional neural network.

其中卷积神经网络可以采用本领域任一惯用的网络结构,本发明实施例不做具体限定,例如选用如EBDA-CNN这类简单且高效的神经网络,从低比特图像中重构出主客观质量都较好的高比特图像,其中对于图像质量的评价方式主要有峰值信噪比(PSNR)和结构相似性指数(SSIM),计算公式如下所示。The convolutional neural network may adopt any conventional network structure in the field, which is not specifically limited in the embodiment of the present invention. For high-bit images with good quality, the evaluation methods for image quality mainly include peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM). The calculation formula is as follows.

Figure BDA0003598448580000052
Figure BDA0003598448580000052

Figure BDA0003598448580000053
Figure BDA0003598448580000053

其中,IH表示原始16bit图像,

Figure BDA0003598448580000054
表示通过网络重构得到的16bit图像。PSNR越大,表示比特深度重建图像质量越好,反之则越差。Among them, I H represents the original 16bit image,
Figure BDA0003598448580000054
Represents a 16-bit image reconstructed by the network. The larger the PSNR, the better the bit-depth reconstructed image quality, and vice versa.

Figure BDA0003598448580000055
Figure BDA0003598448580000055

其中,μx表示原始高比特图像IH的均值,μy表示比特深度重建后高比特图像

Figure BDA0003598448580000056
的均值,
Figure BDA0003598448580000057
Figure BDA0003598448580000058
分别代表原始图像和恢复图像之间的方差,σxy代表IH
Figure BDA0003598448580000059
的协方差,C1和C2为常数。根据公式可知,若比特深度重建算法得到的高比特图像与原始高比特图像间差别越小,输出图像质量越好,证明算法效果也越好。Among them, μ x represents the mean value of the original high-bit image I H , μ y represents the high-bit image after bit depth reconstruction
Figure BDA0003598448580000056
the mean of ,
Figure BDA0003598448580000057
and
Figure BDA0003598448580000058
represent the variance between the original image and the restored image, respectively, σ xy represent I H and
Figure BDA0003598448580000059
The covariance of , C 1 and C 2 are constants. According to the formula, if the difference between the high-bit image obtained by the bit depth reconstruction algorithm and the original high-bit image is smaller, the quality of the output image will be better, which proves that the effect of the algorithm is also better.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

以上所述的仅是本发明的一些实施方式。对于本领域的普通技术人员来说,在不脱离本发明创造构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。The foregoing are merely some of the embodiments of the present invention. For those of ordinary skill in the art, without departing from the inventive concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention.

Claims (4)

1.具有动态范围保持的预失真图像比特深度量化和增强方法,其特征在于,包括以下步骤:1. a predistorted image bit depth quantization and enhancement method with dynamic range retention, is characterized in that, comprises the following steps: 步骤S1:对高比特图像进行量化处理:Step S1: Quantize the high-bit image: 步骤S101:对输入的高比特图像进行归一化处理:将每个像素的灰度值除以所述高比特图像的最大灰度值;Step S101: normalize the input high-bit image: divide the gray value of each pixel by the maximum gray value of the high-bit image; 基于量化目标的比特深度l计算得到量化步长Q=1/(2l-1);Calculated based on the bit depth l of the quantization target, the quantization step size Q=1/(2 l -1); 步骤S102:根据量化步长Q计算得到预失真函数模板图像;Step S102: Calculate and obtain a predistortion function template image according to the quantization step size Q; 步骤S102:对得到的模板图像进行无重叠平铺处理,得到图像分辨率与所述高比特图像一致的预失真图像;Step S102: performing non-overlapping tiling processing on the obtained template image to obtain a predistorted image with an image resolution consistent with the high-bit image; 步骤S103:将预失真图像与归一化处理后的高比特图像进行逐像素相加,得到预失真高比特图像;Step S103: adding the predistorted image and the normalized high-bit image pixel by pixel to obtain a pre-distorted high-bit image; 步骤S104:根据量化步长Q设置具有动态范围保持的量化方式,对预失真高比特图像进行量化,得到低比特图像;Step S104: according to the quantization step size Q, a quantization mode with dynamic range retention is set, and the predistorted high-bit image is quantized to obtain a low-bit image; 步骤S2:通过卷积神经网络建立低比特图像到高比特图像间的映射关系,得到图像增强网络;以步骤S1得到的低比特图像作为所述图像增强网络的输入,基于其输出得到增强后的图像。Step S2: establishing the mapping relationship between the low-bit image and the high-bit image through the convolutional neural network to obtain an image enhancement network; using the low-bit image obtained in step S1 as the input of the image enhancement network, and obtaining the enhanced image based on its output. image. 2.如权利要求1所述的方法,其特征在于,所述步骤S104中,具有动态范围保持的量化方式具体为:2. The method of claim 1, wherein, in the step S104, the quantization method with dynamic range preservation is specifically: 若当前像素的灰度值小于或等于Q/2,则当前像素的灰度值被量化为0;If the gray value of the current pixel is less than or equal to Q/2, the gray value of the current pixel is quantized to 0; 若当前像素的灰度值大于1-Q/2,则当前像素的灰度值被量化为1;If the gray value of the current pixel is greater than 1-Q/2, the gray value of the current pixel is quantized to 1; 若当前像素的灰度值位于[Q/2,1-Q/2],将取值范围[Q/2,1-Q/2]均匀划分为多个子区间,对每个子区间,基于其中点得到当前子区间的量化值。If the gray value of the current pixel is located in [Q/2,1-Q/2], divide the value range [Q/2,1-Q/2] into multiple sub-intervals, and for each sub-interval, based on the midpoint Get the quantized value of the current subinterval. 3.如权利要求2所述的方法,其特征在于,所述步骤S104中,对于取值范围为[Q/2,1-Q/2]的灰度值,量化时的新量化步长Δ=(1-Q)/(2l-2),每个子区间的量化值为[Q+(2k+1)Δ]/2,其中,k=0,1,…2l-3。3 . The method according to claim 2 , wherein, in the step S104 , for grayscale values whose value range is [Q/2, 1-Q/2], the new quantization step size Δ during quantization is Δ =(1-Q)/(2 l -2), the quantization value of each sub-interval is [Q+(2k+1)Δ]/2, where k=0, 1, . . . 2 l -3. 4.如权利要求1至3任一项所述的方法,其特征在于,所述步骤S102中,模板图像为3×3,且在任意3×3邻域中为{Q(1-L)/2L,Q(3-L)/2L,…,Q(L-1)/2L}的完整集合,其中L=9。4. The method according to any one of claims 1 to 3, wherein in the step S102, the template image is 3×3, and in any 3×3 neighborhood, it is {Q(1-L) The complete set of /2L,Q(3-L)/2L,...,Q(L-1)/2L}, where L=9.
CN202210398259.0A 2022-04-15 2022-04-15 Bit-depth quantization and enhancement method for predistorted images with dynamic range preservation Expired - Fee Related CN114708180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210398259.0A CN114708180B (en) 2022-04-15 2022-04-15 Bit-depth quantization and enhancement method for predistorted images with dynamic range preservation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210398259.0A CN114708180B (en) 2022-04-15 2022-04-15 Bit-depth quantization and enhancement method for predistorted images with dynamic range preservation

Publications (2)

Publication Number Publication Date
CN114708180A true CN114708180A (en) 2022-07-05
CN114708180B CN114708180B (en) 2023-05-30

Family

ID=82174881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210398259.0A Expired - Fee Related CN114708180B (en) 2022-04-15 2022-04-15 Bit-depth quantization and enhancement method for predistorted images with dynamic range preservation

Country Status (1)

Country Link
CN (1) CN114708180B (en)

Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854714A (en) * 2010-05-13 2010-10-06 清华大学 A Method of Obtaining Rough Synchronization of Wireless Communication Timing Using 1bit Quantized Hard Decision
CN103295208A (en) * 2013-05-09 2013-09-11 浙江大学 Geologic body data visualization oriented feature-preservation quantifying method
CN103499819A (en) * 2013-09-22 2014-01-08 中国科学院光电技术研究所 Device and method for measuring angular offset and distance of target line of sight
CN103828232A (en) * 2011-09-22 2014-05-28 伊尔索芙特有限公司 Dynamic range control
US20160226554A1 (en) * 2015-01-30 2016-08-04 Trellisware Technologies, Inc. Methods and systems for interference estimation via quantization in spread-spectrum systems
CN107688855A (en) * 2016-08-12 2018-02-13 北京深鉴科技有限公司 It is directed to the layered quantization method and apparatus of Complex Neural Network
CN108769677A (en) * 2018-05-31 2018-11-06 宁波大学 A kind of high dynamic range video dynamic range scalable encoding based on perception
WO2018209932A1 (en) * 2017-05-17 2018-11-22 清华大学 Multi-quantization depth binary feature learning method and device
US20190072662A1 (en) * 2015-10-09 2019-03-07 Zte Corporation Method for transmitting a quantized value in a communication system
CN109495415A (en) * 2018-10-12 2019-03-19 武汉邮电科学研究院有限公司 Transmission method and link before digital mobile based on number cosine converting and segment quantization
RU2691588C1 (en) * 2018-09-27 2019-06-14 Федеральное государственное бюджетное образовательное учреждение высшего образования "Поволжский государственный технологический университет" Analogue-to-digital and digital-to-analogue conversion method with non-uniform amplitude quantisation
US20190206034A1 (en) * 2018-01-04 2019-07-04 Boe Technology Group Co., Ltd. Image enhancement method and device
CN110796622A (en) * 2019-10-30 2020-02-14 天津大学 An Image Bit Enhancement Method Based on Multilayer Features of Concatenated Neural Networks
CN110852964A (en) * 2019-10-30 2020-02-28 天津大学 Image bit enhancement method based on deep learning
CN110865728A (en) * 2018-08-27 2020-03-06 苹果公司 Force or touch sensing on mobile devices using capacitance or pressure sensing
CN110874625A (en) * 2018-08-31 2020-03-10 杭州海康威视数字技术股份有限公司 Deep neural network quantification method and device
US20200090601A1 (en) * 2017-10-10 2020-03-19 HKC Corporation Limited Driving method and apparatus for display apparatus
CN111340692A (en) * 2018-12-18 2020-06-26 北京长峰科威光电技术有限公司 Infrared image dynamic range compression and contrast enhancement algorithm
US20210133278A1 (en) * 2019-11-01 2021-05-06 Samsung Electronics Co., Ltd. Piecewise quantization for neural networks
CN113408704A (en) * 2021-06-29 2021-09-17 深圳市商汤科技有限公司 Data processing method, device, equipment and computer readable storage medium
CN113780301A (en) * 2021-07-26 2021-12-10 天津大学 Self-adaptive denoising machine learning application method for defending against attack

Patent Citations (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854714A (en) * 2010-05-13 2010-10-06 清华大学 A Method of Obtaining Rough Synchronization of Wireless Communication Timing Using 1bit Quantized Hard Decision
CN103828232A (en) * 2011-09-22 2014-05-28 伊尔索芙特有限公司 Dynamic range control
CN103295208A (en) * 2013-05-09 2013-09-11 浙江大学 Geologic body data visualization oriented feature-preservation quantifying method
CN103499819A (en) * 2013-09-22 2014-01-08 中国科学院光电技术研究所 Device and method for measuring angular offset and distance of target line of sight
US20160226554A1 (en) * 2015-01-30 2016-08-04 Trellisware Technologies, Inc. Methods and systems for interference estimation via quantization in spread-spectrum systems
US20190072662A1 (en) * 2015-10-09 2019-03-07 Zte Corporation Method for transmitting a quantized value in a communication system
CN107688855A (en) * 2016-08-12 2018-02-13 北京深鉴科技有限公司 It is directed to the layered quantization method and apparatus of Complex Neural Network
WO2018209932A1 (en) * 2017-05-17 2018-11-22 清华大学 Multi-quantization depth binary feature learning method and device
US20200090601A1 (en) * 2017-10-10 2020-03-19 HKC Corporation Limited Driving method and apparatus for display apparatus
US20190206034A1 (en) * 2018-01-04 2019-07-04 Boe Technology Group Co., Ltd. Image enhancement method and device
CN108769677A (en) * 2018-05-31 2018-11-06 宁波大学 A kind of high dynamic range video dynamic range scalable encoding based on perception
CN110865728A (en) * 2018-08-27 2020-03-06 苹果公司 Force or touch sensing on mobile devices using capacitance or pressure sensing
CN110874625A (en) * 2018-08-31 2020-03-10 杭州海康威视数字技术股份有限公司 Deep neural network quantification method and device
RU2691588C1 (en) * 2018-09-27 2019-06-14 Федеральное государственное бюджетное образовательное учреждение высшего образования "Поволжский государственный технологический университет" Analogue-to-digital and digital-to-analogue conversion method with non-uniform amplitude quantisation
CN109495415A (en) * 2018-10-12 2019-03-19 武汉邮电科学研究院有限公司 Transmission method and link before digital mobile based on number cosine converting and segment quantization
CN111340692A (en) * 2018-12-18 2020-06-26 北京长峰科威光电技术有限公司 Infrared image dynamic range compression and contrast enhancement algorithm
CN110852964A (en) * 2019-10-30 2020-02-28 天津大学 Image bit enhancement method based on deep learning
CN110796622A (en) * 2019-10-30 2020-02-14 天津大学 An Image Bit Enhancement Method Based on Multilayer Features of Concatenated Neural Networks
US20210133278A1 (en) * 2019-11-01 2021-05-06 Samsung Electronics Co., Ltd. Piecewise quantization for neural networks
CN113408704A (en) * 2021-06-29 2021-09-17 深圳市商汤科技有限公司 Data processing method, device, equipment and computer readable storage medium
CN113780301A (en) * 2021-07-26 2021-12-10 天津大学 Self-adaptive denoising machine learning application method for defending against attack

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
WAN P等: ""High bit-depth image acquisition framework using embedded quantization bias"" *
WAN P等: ""High bit-precision image acquisition and reconstruction by planned sensor distortion"" *
徐悦等: ""关于机器人导航目标点搜索路径模糊控制"" *
欧阳慧明等: ""红外图像动态范围压缩算法研究综述"" *

Also Published As

Publication number Publication date
CN114708180B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US7076114B2 (en) Block boundary artifact reduction for block-based image compression
CN101322403B (en) Autoregressive method and filtering for image and video denoising
CN108337516A (en) A kind of HDR video dynamic range scalable encodings of facing multiple users
CN117640942A (en) Coding method and device for video image
WO2023005699A1 (en) Video enhancement network training method and device, and video enhancement method and device
CN116797462B (en) Real-time video super-resolution reconstruction method based on deep learning
US20210366157A1 (en) Data compression device and compression method
CN112801922A (en) Color image-gray image-color image conversion method
CN112040231B (en) A Video Coding Method Based on Perceptual Noise Channel Model
CN115802038A (en) Quantization parameter determination method and device, and video encoding method and device
CN112509071A (en) Chroma information compression and reconstruction method assisted by luminance information
CN111738951A (en) Image processing method and device
CN114708180B (en) Bit-depth quantization and enhancement method for predistorted images with dynamic range preservation
CN110689498A (en) High-definition video optimization method based on classification fuzzy of non-focus part
AU2021101814A4 (en) A novel image denoising method with hybrid dual tree complex wavelet transform
Yuan et al. Gradient-guided residual learning for inverse halftoning and image expanding
CN118611824A (en) Joint source channel coding image wireless transmission method based on regulated autoencoder
CN101668204A (en) Immune clone image compression method
US20210321142A1 (en) No-Reference Banding Artefact Predictor
Mackin et al. A subjective study on videos at various bit depths
CN1741617A (en) Handle the equipment and the method for the shoot artifacts of picture signal
CN112819707A (en) End-to-end anti-blocking effect low-illumination image enhancement method
Araujo et al. Effects of Color Quantization on JPEG Compression
CN113132736B (en) HEVC compression noise level estimation denoising method based on DCT domain
KR100885441B1 (en) Filtering method for block boundary region

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20230530