WO2020113827A1 - Image compression method - Google Patents

Image compression method Download PDF

Info

Publication number
WO2020113827A1
WO2020113827A1 PCT/CN2019/075630 CN2019075630W WO2020113827A1 WO 2020113827 A1 WO2020113827 A1 WO 2020113827A1 CN 2019075630 W CN2019075630 W CN 2019075630W WO 2020113827 A1 WO2020113827 A1 WO 2020113827A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
window
area
compression method
quantization step
Prior art date
Application number
PCT/CN2019/075630
Other languages
French (fr)
Chinese (zh)
Inventor
程琳
金羽锋
周明忠
Original Assignee
深圳市华星光电半导体显示技术有限公司
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 深圳市华星光电半导体显示技术有限公司 filed Critical 深圳市华星光电半导体显示技术有限公司
Publication of WO2020113827A1 publication Critical patent/WO2020113827A1/en

Links

Images

Classifications

    • 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/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression

Definitions

  • the invention relates to the field of image processing, in particular to an image compression method.
  • Data compression is a relatively mature technology for reducing data size. It is applied to the data stored in the memory subsystem of the computer system to increase the storage capacity. Data compression is also used when data is transferred between different subsystems within a computer system, or generally when the transfer is performed between two points in a data communication system that includes a communication network.
  • Data compression requires two basic operations: 1. Compression (also called encoding). Compression is to take uncompressed data as input and pass the corresponding codeword (also called encoding, word code or code in the literature) Replace data values to convert uncompressed data into compressed data: 2. Decompression (also called decoding). Decompression uses compressed data as input and replaces the codeword with the corresponding data value. The compressed data is converted to uncompressed. Data compression can be lossless or lossy, depending on whether the actual data value after decompression is exactly the same as the original data value before compression (lossless), or whether the data value after decompression is different The original data value and the original value cannot be obtained (lossy type). Compression and decompression can be implemented in software, or hardware, or a combination of software and hardware to implement corresponding methods, devices, and systems.
  • the data volume of a 24-bit true color image with a resolution of 256*256 is 200kb
  • the data volume of a patient is about 20M at a time
  • the number of patients per day is 100
  • the data volume of a hospital is 2G per day
  • the data volume per year is 700G
  • Medical images with such a huge amount of data occupy a lot of system storage resources, have high requirements on computer processing capabilities, and have a great pressure on transmission capabilities on communication channels.
  • the object of the present invention is to provide an image compression method, which does not affect important information in the original image, and reduces the pressure of storage and channel transmission, and reduces the requirements of computer processing capabilities.
  • the present invention provides an image compression method, including the following steps:
  • Step S1 Perform image segmentation on the original image to obtain a segmented image
  • Step S3 Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula
  • Step S4 quantize the windows corresponding to the quantization step size according to the quantization step size of each window to obtain a quantized image, and compress the quantized image using an encoding algorithm.
  • the multiple windows are all the same size.
  • Each window has a square shape.
  • the original image is a medical image.
  • the Otsu algorithm is used to perform image segmentation on the original image.
  • the divided image is a black and white image.
  • the target area is a white area in a black and white image.
  • the percentage of the area of the target area in each window to the area of the window is 0-100%.
  • the standard deviation is 3, and the quantization step size is 9.
  • Step S1 Perform image segmentation on the original image to obtain a segmented image
  • Step S3 Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula
  • Step S4 quantize the windows corresponding to the quantization step separately according to the quantization step of each window to obtain a quantized image, and use the encoding algorithm to compress the quantized image;
  • the multiple windows are all the same size
  • the original image is a medical image.
  • the image compression method of the present invention traverses the segmented image by using multiple windows without overlapping, calculates the percentage of the area of the target area in each window to the area of the window, and obtains each window according to the adaptive model formula
  • the area of the target area in the percentage of the area of the window corresponds to the quantization step, and then the window corresponding to the quantization step is quantized according to the quantization step of each window to obtain a quantized image, and the encoding algorithm is used to perform the quantization image.
  • the present invention provides an image compression method, including the following steps:
  • Step S1 Perform image segmentation on the original image to obtain a segmented image
  • Step S2 traversing the segmented image by using multiple windows without overlapping, and calculating the percentage of the area of the target area in each window to the area of the window;
  • Step S4 quantize the windows corresponding to the quantization step size according to the quantization step size of each window to obtain a quantized image, and compress the quantized image using an encoding algorithm.
  • the present invention traverses the segmented image by using multiple windows without overlapping, calculates the percentage of the area of the target area in each window to the area of the window, and obtains each window according to the adaptive model formula
  • the area of the target area in the percentage of the area of the window corresponds to the quantization step, and then the window corresponding to the quantization step is quantized according to the quantization step of each window to obtain a quantized image, and the encoding algorithm is used to perform the quantization image.
  • the multiple windows have the same size.
  • each window is N*N, that is, the shape of each window is a square.
  • the original image is a medical image.
  • step S1 the Otsu algorithm is used to perform image segmentation on the original image.
  • the divided image is a black and white image.
  • the target area is a white area in a black-and-white image, that is, a white area is an important diagnostic information part in a medical image.
  • the adaptive model formula is: Where Q step is the quantization step corresponding to the area of the target area in each window as a percentage of the area of the window, ⁇ is the standard deviation, x is the area of the target area in each window as a percentage of the area of the window, A To quantify the step size, e is a natural constant.
  • the percentage of the area of the target area in each window to the area of the window is 0-100%, that is, 0 ⁇ x ⁇ 1.
  • the standard deviation and the quantization step size can be set to different values according to the image type and image compression rate.
  • the standard deviation is preferably set to 3
  • the quantization step size is preferably set to 9.
  • the image compression method of the present invention traverses the segmented image by using multiple windows without overlapping, calculates the percentage of the area of the target area in each window to the area of the window, and obtains each window according to the adaptive model formula
  • the compression ratio does not affect the important information in the original image, thereby reducing the pressure of storage and channel transmission, reducing the computer processing power requirements, reducing the occupation of memory space, saving system hardware resources, and reducing costs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Provided by the present invention is an image compression method. The image compression method comprises: using multiple windows to traverse a segmented image without overlapping; calculating the percentage of the surface area of each window occupied by the surface area of target regions in the window; obtaining a quantization step corresponding to the percentage of the surface area of the window occupied by the surface area of the target regions in each window according to an adaptive model, and then quantizing the window corresponding to the quantization step to obtain a quantized image according to the quantization step of each window; and compressing the quantized image using a coding algorithm, so that windows having a lot of target regions which contain important information can be compressed by using a relatively small quantization step, while windows having more secondary information can be compressed by using a relatively high quantization step size as much as possible, so as to increase the compression ratio and not affect the important information in an original image, thereby reducing the pressure on storage and channel transmission, reducing the requirements of computer processing capabilities, reducing the occupation of memory space, and reducing costs.

Description

图像压缩方法Image compression method 技术领域Technical field
本发明涉及图像处理领域,尤其涉及一种图像压缩方法。The invention relates to the field of image processing, in particular to an image compression method.
背景技术Background technique
数据压缩是用于减小数据大小的一种较为成熟的技术。其应用于保存在计算机系统的存储器子系统中的数据以,增加存储能力。当数据在计算机系统内的不同子系统之间传输时,或者通常当在包括通信网络的数据通信系统中的两个点之间进行所述传输时,数据压缩也被使用。Data compression is a relatively mature technology for reducing data size. It is applied to the data stored in the memory subsystem of the computer system to increase the storage capacity. Data compression is also used when data is transferred between different subsystems within a computer system, or generally when the transfer is performed between two points in a data communication system that includes a communication network.
数据压缩需要两个基本的操作:1、压缩(也称为编码),压缩是将未压缩的数据作为输入,并通过用相应的码字(在文献中也称为编码、字码或代码)替换数据值来将未压缩的数据转换为经压缩的数据:2、解压缩(也称为解码),解压缩是将经压缩的数据作为输入并通过用相应的数据值替换码字来将该经压缩的数据转换为未压缩的。数据压缩可以是无损式的或者有损式的,这取决于是否解压缩后的实际数据值与压缩前的原始数据值完全相同(无损式),或者取决于是否解压缩后的数据值不同于原始数据值且原始值无法取得(有损式)。可以用软件、或硬件、或软件和硬件的组合来实施压缩和解压缩,以实现相应的方法、设备和系统。Data compression requires two basic operations: 1. Compression (also called encoding). Compression is to take uncompressed data as input and pass the corresponding codeword (also called encoding, word code or code in the literature) Replace data values to convert uncompressed data into compressed data: 2. Decompression (also called decoding). Decompression uses compressed data as input and replaces the codeword with the corresponding data value. The compressed data is converted to uncompressed. Data compression can be lossless or lossy, depending on whether the actual data value after decompression is exactly the same as the original data value before compression (lossless), or whether the data value after decompression is different The original data value and the original value cannot be obtained (lossy type). Compression and decompression can be implemented in software, or hardware, or a combination of software and hardware to implement corresponding methods, devices, and systems.
目前在医院每天产生的医学图像及附属信息可以从技术几十Mb到几十Gb,其中90%以上都是图像数据,如此巨大的数据量使得存储空间的管理、图像存储速度和数据可靠性成为重点考虑的问题,因此对医学图像进行压缩处理是解决存储空间问题的一个重要方法。现有技术中的医学图像压缩算法为保证诊断信息的正确性,通常采用无损压缩算法,无损压缩算法对计算机的存储和处理能力以及当前通信信道的传输能力造成压力,单纯靠增加存储器容量,提高信道带宽以及计算机的处理速度来解决问题不现实,需要对图像进行压缩,而分辨率更高的图像,其数据量会更大。例如一幅256*256分辨率的24位真彩色图像的数据量为200kb,一个患者一次检查数据量约20M,一天的患者为100人,一个医院一天数据量为2G,一年数据量在700G以上:如此巨大数据量的医学图像占用大量系统存储资源,对计算机处理能力要求较高,在通信信道上传输能力压力很大。At present, the medical images and auxiliary information generated in the hospital every day can range from tens of Mb to tens of Gb, and more than 90% of them are image data. Such huge data volume makes storage space management, image storage speed and data reliability become Focus on the issues considered, so compression of medical images is an important method to solve the problem of storage space. In order to ensure the accuracy of diagnostic information, the medical image compression algorithm in the prior art usually uses a lossless compression algorithm. The lossless compression algorithm puts pressure on the storage and processing capabilities of the computer and the transmission capacity of the current communication channel. Simply by increasing the memory capacity, the improvement The channel bandwidth and the processing speed of the computer are unrealistic to solve the problem, and the image needs to be compressed, and the image with higher resolution will have a larger amount of data. For example, the data volume of a 24-bit true color image with a resolution of 256*256 is 200kb, the data volume of a patient is about 20M at a time, the number of patients per day is 100, the data volume of a hospital is 2G per day, and the data volume per year is 700G Above: Medical images with such a huge amount of data occupy a lot of system storage resources, have high requirements on computer processing capabilities, and have a great pressure on transmission capabilities on communication channels.
发明内容Summary of the invention
本发明的目的在于提供一种图像压缩方法,可以不影响原始图像中的重要信息,且减弱存储和信道传输的压力,降低计算机处理能力的要求。The object of the present invention is to provide an image compression method, which does not affect important information in the original image, and reduces the pressure of storage and channel transmission, and reduces the requirements of computer processing capabilities.
为实现上述目的,本发明提供了一种图像压缩方法,包括如下步骤:To achieve the above object, the present invention provides an image compression method, including the following steps:
步骤S1、将原始图像进行图像分割,得到分割图像;Step S1: Perform image segmentation on the original image to obtain a segmented image;
步骤S2、采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比;Step S2, traversing the segmented image by using multiple windows without overlapping, and calculating the percentage of the area of the target area in each window to the area of the window;
步骤S3、根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长;Step S3: Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula;
步骤S4、根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩。Step S4: quantize the windows corresponding to the quantization step size according to the quantization step size of each window to obtain a quantized image, and compress the quantized image using an encoding algorithm.
所述多个窗口的大小均相同。The multiple windows are all the same size.
每一窗口的形状为正方形。Each window has a square shape.
所述原始图像为医学图像。The original image is a medical image.
所述步骤S1中采用Otsu算法对原始图像进行图像分割。In the step S1, the Otsu algorithm is used to perform image segmentation on the original image.
所述分割图像为黑白图像。The divided image is a black and white image.
所述目标区域为黑白图像中的白色区域。The target area is a white area in a black and white image.
所述自适应模型公式为:
Figure PCTCN2019075630-appb-000001
其中,Qstep为每一窗口中的目标区域的面积占窗口的面积的百分比对应的量化步长,σ为标准差,x为每一窗口中的目标区域的面积占窗口的面积的百分比,A为量化步长幅值,e为自然常数。
The adaptive model formula is:
Figure PCTCN2019075630-appb-000001
Where Qstep is the quantization step corresponding to the area of the target area in each window as a percentage of the area of the window, σ is the standard deviation, x is the area of the target area in each window as a percentage of the area of the window, and A is Quantize the step size, e is a natural constant.
每一窗口中的目标区域的面积占窗口的面积的百分比为0-100%。The percentage of the area of the target area in each window to the area of the window is 0-100%.
所述标准差为3,所述量化步长幅值为9。The standard deviation is 3, and the quantization step size is 9.
本发明还提供了一种图像压缩方法,包括如下步骤:The invention also provides an image compression method, including the following steps:
步骤S1、将原始图像进行图像分割,得到分割图像;Step S1: Perform image segmentation on the original image to obtain a segmented image;
步骤S2、采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比;Step S2, traversing the segmented image by using multiple windows without overlapping, and calculating the percentage of the area of the target area in each window to the area of the window;
步骤S3、根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长;Step S3: Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula;
步骤S4、根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩;Step S4: quantize the windows corresponding to the quantization step separately according to the quantization step of each window to obtain a quantized image, and use the encoding algorithm to compress the quantized image;
所述多个窗口的大小均相同;The multiple windows are all the same size;
所述原始图像为医学图像。The original image is a medical image.
本发明的有益效果:本发明的图像压缩方法通过采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比,根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长,再根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩,从而可以对包含重要信息的目标区域较多的窗口采用较小的量化步长进行压缩,而包含其他次要信息较多的窗口可以尽可能采用较高的量化步长进行压缩,从而增大压缩比,且不影响原始图像中的重要信息,进而减弱存储和信道传输的压力,降低计算机处理能力的要求,减少对内存空间的占用,节省系统的硬件资源,降低成本。Beneficial effect of the present invention: The image compression method of the present invention traverses the segmented image by using multiple windows without overlapping, calculates the percentage of the area of the target area in each window to the area of the window, and obtains each window according to the adaptive model formula The area of the target area in the percentage of the area of the window corresponds to the quantization step, and then the window corresponding to the quantization step is quantized according to the quantization step of each window to obtain a quantized image, and the encoding algorithm is used to perform the quantization image. Compression, so that windows with more target areas containing important information can be compressed with a smaller quantization step, while windows with more secondary information can be compressed with a higher quantization step as much as possible, thereby increasing Large compression ratio does not affect the important information in the original image, thereby reducing the pressure of storage and channel transmission, reducing the requirements of computer processing power, reducing the occupation of memory space, saving system hardware resources, and reducing costs.
附图说明BRIEF DESCRIPTION
为了能更进一步了解本发明的特征以及技术内容,请参阅以下有关本发明的详细说明与附图,然而附图仅提供参考与说明用,并非用来对本发明加以限制。In order to further understand the features and technical content of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings are provided for reference and explanation only, and are not intended to limit the present invention.
附图中,In the drawings,
图1为本发明的图像压缩方法的流程图;1 is a flowchart of the image compression method of the present invention;
图2为本发明的图像压缩方法的逻辑图。FIG. 2 is a logic diagram of the image compression method of the present invention.
具体实施方式detailed description
为更进一步阐述本发明所采取的技术手段及其效果,以下结合本发明的优选实施例及其附图进行详细描述。In order to further elaborate on the technical means adopted by the present invention and its effects, the following will be described in detail with reference to the preferred embodiments of the present invention and the accompanying drawings.
请参阅图1,本发明提供一种图像压缩方法,包括如下步骤:Referring to FIG. 1, the present invention provides an image compression method, including the following steps:
步骤S1、将原始图像进行图像分割,得到分割图像;Step S1: Perform image segmentation on the original image to obtain a segmented image;
步骤S2、采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比;Step S2, traversing the segmented image by using multiple windows without overlapping, and calculating the percentage of the area of the target area in each window to the area of the window;
步骤S3、根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长;Step S3: Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula;
步骤S4、根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩。Step S4: quantize the windows corresponding to the quantization step size according to the quantization step size of each window to obtain a quantized image, and compress the quantized image using an encoding algorithm.
需要说明的是,请参阅图2,本发明通过采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比,根据 自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长,再根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩,从而可以对包含重要信息的目标区域较多的窗口采用较小的量化步长进行压缩,而包含其他次要信息较多的窗口可以尽可能采用较高的量化步长进行压缩,从而增大压缩比,且不影响原始图像中的重要信息,进而减弱存储和信道传输的压力,降低计算机处理能力的要求,减少对内存空间的占用,节省系统的硬件资源,降低成本。It should be noted that, referring to FIG. 2, the present invention traverses the segmented image by using multiple windows without overlapping, calculates the percentage of the area of the target area in each window to the area of the window, and obtains each window according to the adaptive model formula The area of the target area in the percentage of the area of the window corresponds to the quantization step, and then the window corresponding to the quantization step is quantized according to the quantization step of each window to obtain a quantized image, and the encoding algorithm is used to perform the quantization image. Compression, so that windows with more target areas containing important information can be compressed with a smaller quantization step, while windows with more secondary information can be compressed with a higher quantization step as much as possible, thereby increasing Large compression ratio does not affect the important information in the original image, thereby reducing the pressure of storage and channel transmission, reducing the requirements of computer processing power, reducing the occupation of memory space, saving system hardware resources, and reducing costs.
具体的,所述多个窗口的大小均相同。Specifically, the multiple windows have the same size.
进一步的,每一窗口的大小为N*N,即每一窗口的形状为正方形。Further, the size of each window is N*N, that is, the shape of each window is a square.
具体的,所述原始图像为医学图像。Specifically, the original image is a medical image.
具体的,所述步骤S1中采用Otsu算法对原始图像进行图像分割。Specifically, in step S1, the Otsu algorithm is used to perform image segmentation on the original image.
进一步的,所述分割图像为黑白图像。Further, the divided image is a black and white image.
具体的,所述目标区域为黑白图像中的白色区域,即白色区域为医学图像中重要的诊断信息部分。Specifically, the target area is a white area in a black-and-white image, that is, a white area is an important diagnostic information part in a medical image.
具体的,所述自适应模型公式为:
Figure PCTCN2019075630-appb-000002
其中,Q step为每一窗口中的目标区域的面积占窗口的面积的百分比对应的量化步长,σ为标准差,x为每一窗口中的目标区域的面积占窗口的面积的百分比,A为量化步长幅值,e为自然常数。
Specifically, the adaptive model formula is:
Figure PCTCN2019075630-appb-000002
Where Q step is the quantization step corresponding to the area of the target area in each window as a percentage of the area of the window, σ is the standard deviation, x is the area of the target area in each window as a percentage of the area of the window, A To quantify the step size, e is a natural constant.
进一步的,每一窗口中的目标区域的面积占窗口的面积的百分比为0-100%,即0≤x≤1。Further, the percentage of the area of the target area in each window to the area of the window is 0-100%, that is, 0≤x≤1.
具体的,标准差和量化步长幅值可以根据图像类型以及图像压缩率的不同而设置不同的值,本发明将标准差优选设置为3,将量化步长幅值优选设置为9。Specifically, the standard deviation and the quantization step size can be set to different values according to the image type and image compression rate. In the present invention, the standard deviation is preferably set to 3, and the quantization step size is preferably set to 9.
综上所述,本发明的图像压缩方法通过采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比,根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长,再根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩,从而可以对包含重要信息的目标区域较多的窗口采用较小的量化步长进行压缩,而包含其他次要信息较多的窗口可以尽可能采用较高的量化步长进行压缩, 从而增大压缩比,且不影响原始图像中的重要信息,进而减弱存储和信道传输的压力,降低计算机处理能力的要求,减少对内存空间的占用,节省系统的硬件资源,降低成本。In summary, the image compression method of the present invention traverses the segmented image by using multiple windows without overlapping, calculates the percentage of the area of the target area in each window to the area of the window, and obtains each window according to the adaptive model formula The quantization step corresponding to the area of the target area as a percentage of the area of the window, and then quantizing the window corresponding to the quantization step according to the quantization step of each window respectively to obtain a quantized image, and compress the quantized image using an encoding algorithm , So that windows with more target areas containing important information can be compressed with a smaller quantization step, while windows with more secondary information can be compressed with a higher quantization step as much as possible, thereby increasing The compression ratio does not affect the important information in the original image, thereby reducing the pressure of storage and channel transmission, reducing the computer processing power requirements, reducing the occupation of memory space, saving system hardware resources, and reducing costs.
以上所述,对于本领域的普通技术人员来说,可以根据本发明的技术方案和技术构思作出其他各种相应的改变和变形,而所有这些改变和变形都应属于本发明权利要求的保护范围。As mentioned above, those of ordinary skill in the art can make various other corresponding changes and modifications according to the technical solutions and technical concepts of the present invention, and all such changes and modifications should fall within the protection scope of the claims of the present invention. .

Claims (15)

  1. 一种图像压缩方法,包括如下步骤:An image compression method includes the following steps:
    步骤S1、将原始图像进行图像分割,得到分割图像;Step S1: Perform image segmentation on the original image to obtain a segmented image;
    步骤S2、采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比;Step S2, traversing the segmented image by using multiple windows without overlapping, and calculating the percentage of the area of the target area in each window to the area of the window;
    步骤S3、根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长;Step S3: Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula;
    步骤S4、根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩。Step S4: quantize the windows corresponding to the quantization step size according to the quantization step size of each window to obtain a quantized image, and compress the quantized image using an encoding algorithm.
  2. 如权利要求1所述的图像压缩方法,其中,所述多个窗口的大小均相同。The image compression method according to claim 1, wherein the plurality of windows are all the same size.
  3. 如权利要求2所述的图像压缩方法,其中,每一窗口的形状为正方形。The image compression method according to claim 2, wherein each window has a square shape.
  4. 如权利要求1所述的图像压缩方法,其中,所述原始图像为医学图像。The image compression method according to claim 1, wherein the original image is a medical image.
  5. 如权利要求1所述的图像压缩方法,其中,所述步骤S1中采用Otsu算法对原始图像进行图像分割。The image compression method according to claim 1, wherein in step S1, the Otsu algorithm is used to perform image segmentation on the original image.
  6. 如权利要求1所述的图像压缩方法,其中,所述分割图像为黑白图像。The image compression method according to claim 1, wherein the divided image is a black and white image.
  7. 如权利要求6所述的图像压缩方法,其中,所述目标区域为黑白图像中的白色区域。The image compression method according to claim 6, wherein the target area is a white area in a black and white image.
  8. 如权利要求1所述的图像压缩方法,其中,所述自适应模型公式为:
    Figure PCTCN2019075630-appb-100001
    其中,Q step为每一窗口中的目标区域的面积占窗口的面积的百分比对应的量化步长,σ为标准差,x为每一窗口中的目标区域的面积占窗口的面积的百分比,A为量化步长幅值,e为自然常数。
    The image compression method according to claim 1, wherein the adaptive model formula is:
    Figure PCTCN2019075630-appb-100001
    Where Q step is the quantization step corresponding to the area of the target area in each window as a percentage of the area of the window, σ is the standard deviation, x is the area of the target area in each window as a percentage of the area of the window, A To quantify the step size, e is a natural constant.
  9. 如权利要求8所述的图像压缩方法,其中,每一窗口中的目标区域的面积占窗口的面积的百分比为0-100%。The image compression method according to claim 8, wherein the percentage of the area of the target area in each window to the area of the window is 0-100%.
  10. 如权利要求8所述的图像压缩方法,其中,所述标准差为3,所述量化步长幅值为9。The image compression method according to claim 8, wherein the standard deviation is 3 and the quantization step size is 9.
  11. 一种图像压缩方法,包括如下步骤:An image compression method includes the following steps:
    步骤S1、将原始图像进行图像分割,得到分割图像;Step S1: Perform image segmentation on the original image to obtain a segmented image;
    步骤S2、采用多个窗口不重叠遍历该分割图像,计算每一窗口中的目标区域的面积占窗口的面积的百分比;Step S2, traversing the segmented image by using multiple windows without overlapping, and calculating the percentage of the area of the target area in each window to the area of the window;
    步骤S3、根据自适应模型公式得到每一窗口中目标区域的面积占窗口的面积的百分比对应的量化步长;Step S3: Obtain the quantization step corresponding to the area of the target area in each window in the area of the window according to the adaptive model formula;
    步骤S4、根据每一窗口的量化步长分别对与该量化步长对应的窗口进行量化,得到量化图像,采用编码算法对量化图像进行压缩;Step S4: quantize the windows corresponding to the quantization step separately according to the quantization step of each window to obtain a quantized image, and use the encoding algorithm to compress the quantized image;
    其中,所述多个窗口的大小均相同;Wherein, the multiple windows are all the same size;
    其中,所述原始图像为医学图像。Wherein, the original image is a medical image.
  12. 如权利要求11所述的图像压缩方法,其中,每一窗口的形状为正方形。The image compression method according to claim 11, wherein each window has a square shape.
  13. 如权利要求11所述的图像压缩方法,其中,所述步骤S1中采用Otsu算法对原始图像进行图像分割。The image compression method according to claim 11, wherein in step S1, the Otsu algorithm is used to perform image segmentation on the original image.
  14. 如权利要求11所述的图像压缩方法,其中,所述分割图像为黑白图像。The image compression method according to claim 11, wherein the divided image is a black and white image.
  15. 如权利要求14所述的图像压缩方法,其中,所述目标区域为黑白图像中的白色区域。The image compression method according to claim 14, wherein the target area is a white area in a black and white image.
PCT/CN2019/075630 2018-12-04 2019-02-21 Image compression method WO2020113827A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811475459.1 2018-12-04
CN201811475459.1A CN109474824B (en) 2018-12-04 2018-12-04 Image compression method

Publications (1)

Publication Number Publication Date
WO2020113827A1 true WO2020113827A1 (en) 2020-06-11

Family

ID=65675563

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075630 WO2020113827A1 (en) 2018-12-04 2019-02-21 Image compression method

Country Status (2)

Country Link
CN (1) CN109474824B (en)
WO (1) WO2020113827A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474824B (en) * 2018-12-04 2020-04-10 深圳市华星光电半导体显示技术有限公司 Image compression method
CN110287993A (en) * 2019-05-22 2019-09-27 广东精点数据科技股份有限公司 A kind of data preprocessing method and system based on characteristics of image refinement
CN113489644A (en) * 2021-06-25 2021-10-08 南京诺源医疗器械有限公司 Data information transmission method for medical optical imaging system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330631A (en) * 2008-07-18 2008-12-24 浙江大学 Method for encoding depth image of three-dimensional television system
JP2009212749A (en) * 2008-03-04 2009-09-17 Mega Chips Corp Encoder
CN101867799A (en) * 2009-04-17 2010-10-20 北京大学 Video frame processing method and video encoder
JP2011130050A (en) * 2009-12-16 2011-06-30 Canon Inc Image encoding apparatus
CN107770525A (en) * 2016-08-15 2018-03-06 华为技术有限公司 A kind of method and device of Image Coding
CN109474824A (en) * 2018-12-04 2019-03-15 深圳市华星光电半导体显示技术有限公司 Method for compressing image

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494785B (en) * 2008-12-19 2012-05-09 无锡云视界科技有限公司 Method for encoding H.264 interesting region
JP5375590B2 (en) * 2009-12-24 2013-12-25 富士通セミコンダクター株式会社 Quantization control circuit, quantization parameter changing method, and encoding apparatus
GB2503766B (en) * 2012-04-05 2019-02-20 British Broadcasting Corp Video coding and decoding
CN103002280B (en) * 2012-10-08 2016-09-28 中国矿业大学 Distributed decoding method based on HVS&ROI and system
JP5396559B1 (en) * 2013-04-17 2014-01-22 学校法人 埼玉医科大学 Image encoding apparatus, image encoding method, image encoding program, and recording medium
CN104270638A (en) * 2014-07-29 2015-01-07 武汉飞脉科技有限责任公司 Compression and quality evaluation method for region of interest (ROI) of CT (Computed Tomography) image
CN105407352A (en) * 2015-11-23 2016-03-16 小米科技有限责任公司 Image compression method and device, and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009212749A (en) * 2008-03-04 2009-09-17 Mega Chips Corp Encoder
CN101330631A (en) * 2008-07-18 2008-12-24 浙江大学 Method for encoding depth image of three-dimensional television system
CN101867799A (en) * 2009-04-17 2010-10-20 北京大学 Video frame processing method and video encoder
JP2011130050A (en) * 2009-12-16 2011-06-30 Canon Inc Image encoding apparatus
CN107770525A (en) * 2016-08-15 2018-03-06 华为技术有限公司 A kind of method and device of Image Coding
CN109474824A (en) * 2018-12-04 2019-03-15 深圳市华星光电半导体显示技术有限公司 Method for compressing image

Also Published As

Publication number Publication date
CN109474824B (en) 2020-04-10
CN109474824A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
US20200327701A1 (en) Image encoding method and apparatus and image decoding method and apparatus
WO2020113827A1 (en) Image compression method
US11490084B2 (en) Method and apparatus for adjusting quantization parameter for adaptive quantization
US10154288B2 (en) Apparatus and method to improve image or video quality or encoding performance by enhancing discrete cosine transform coefficients
US6934418B2 (en) Image data coding apparatus and image data server
JP2530090B2 (en) Video signal encoder
CN111131828B (en) Image compression method and device, electronic equipment and storage medium
US20220174329A1 (en) Image encoding method and apparatus, image decoding method and apparatus, and chip
US11330264B2 (en) Training method, image encoding method, image decoding method and apparatuses thereof
WO2020113766A1 (en) Compensation table compression method
WO2022133753A1 (en) Point cloud encoding and decoding methods and systems, point cloud encoder, and point cloud decoder
CN112565793B (en) Image lossless compression method based on prediction difference value classification entropy coding
WO2022062369A1 (en) Point cloud encoding and decoding method and system, and point cloud encoder and point cloud decoder
CN101919248A (en) Byte representation for enhanced image compression
US10904542B2 (en) Image transcoding method and apparatus
WO2023093377A1 (en) Encoding method, decoding method and electronic device
WO2021211140A1 (en) Generating quantization tables for image compression
Khmelevskiy et al. Model of Transformation of the Alphabet of the Encoded Data as a Tool to Provide the Necessary Level of Video Image Qualityi in Aeromonitoring Systems.
CN116325732A (en) Decoding and encoding method, decoder, encoder and encoding and decoding system of point cloud
WO2024007843A1 (en) Encoding method and apparatus, decoding method and apparatus, and computer device
Corsini et al. Image sets compression via patch redundancy
KR20210113681A (en) Compression for multiple images
WO2023088141A1 (en) Syntax element coding method and apparatus, syntax element decoding method and apparatus, and electronic device and storage medium
WO2022217472A1 (en) Point cloud encoding and decoding methods, encoder, decoder, and computer readable storage medium
WO2022120829A1 (en) Image encoding and decoding methods and apparatuses, and image processing apparatus and mobile platform

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19892861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19892861

Country of ref document: EP

Kind code of ref document: A1