[go: up one dir, main page]

CN118828005A - A CT detector data compression method based on register redundancy - Google Patents

A CT detector data compression method based on register redundancy Download PDF

Info

Publication number
CN118828005A
CN118828005A CN202410784576.5A CN202410784576A CN118828005A CN 118828005 A CN118828005 A CN 118828005A CN 202410784576 A CN202410784576 A CN 202410784576A CN 118828005 A CN118828005 A CN 118828005A
Authority
CN
China
Prior art keywords
data
register
initial value
difference coefficient
compression method
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410784576.5A
Other languages
Chinese (zh)
Inventor
周博超
王鑫
徐昊
邢占峰
于淼
牛志杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Futong Kangying Technology Co ltd
Original Assignee
Beijing Futong Kangying Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Futong Kangying Technology Co ltd filed Critical Beijing Futong Kangying Technology Co ltd
Priority to CN202410784576.5A priority Critical patent/CN118828005A/en
Publication of CN118828005A publication Critical patent/CN118828005A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

The invention discloses a register redundancy-based CT detector data compression method, which comprises the following steps: s1, data preprocessing: decomposing the original data into an initial value and a difference coefficient; s2, data compression: the method is characterized in that a single register is used for storing a plurality of difference coefficients by adopting a register disassembling mode; s3, data transmission: transmitting the compressed data through a slip ring; s4, data decompression: restoring the original data by using the transmitted initial value and the difference coefficient; s5, image reconstruction: and realizing image reconstruction by using the decompressed data. According to the invention, the original data is decomposed into the initial value and the difference coefficient in a data preprocessing mode, and the dynamic range of the difference coefficient is smaller, so that the large register redundancy is realized, the effective utilization of the register redundancy is realized in a register disassembling mode, the hardware resources are fully utilized, the compression efficiency is effectively improved, the pressure of the transmission bandwidth and the storage space is relieved, and the transmission reliability is improved.

Description

一种基于寄存器冗余的CT探测器数据压缩方法A CT detector data compression method based on register redundancy

技术领域Technical Field

本发明属于一种医用X射线影像技术领域,具体是一种基于寄存器冗余的CT探测器数据压缩方法。The invention belongs to the technical field of medical X-ray imaging, and in particular is a CT detector data compression method based on register redundancy.

背景技术Background Art

CT检查自诞生以来,一直是医疗检查中最重要的一环之一,据不完全统计,早在2016年间,我国CT检查总人次达到了惊人的2.9亿人次,占放射诊疗总人次的26.88%,并在过去的十年间保持11.7%的年增长率。然而,大多数CT由于扫描排数等原因导致的分辨率不足严重影响了医师的诊断,尤其是早期癌症、孤立性肺结节等病症的诊断。Since its birth, CT examination has been one of the most important parts of medical examination. According to incomplete statistics, as early as 2016, the total number of CT examinations in my country reached an astonishing 290 million, accounting for 26.88% of the total number of radiological diagnosis and treatment, and maintained an annual growth rate of 11.7% in the past decade. However, the insufficient resolution of most CT scans due to reasons such as the number of scanning rows seriously affects the diagnosis of doctors, especially the diagnosis of early cancer, solitary pulmonary nodules and other diseases.

现有的高分辨率CT却面临着数据量规模与传输带宽严重不匹配的难题。以320排CT为例,现有的320排CT转速约为0.23s每圈,每排的像素数约为900,每个像素的数据为16位二进制数据,一圈的采样率约为4096,则所需的传输带宽至少为320*900*16*4096/0.23/(1024*1024*1024)=76.42Gbps,更为先进的光子计数CT所需的传输带宽更是达到了350Gbps以上,然而即使是采用最先进的多路并行光纤传输,最高传输带宽也仅为40Gbps,此外,单次扫描数据所需的存储空间更是达到了上百G,大规模的数据传输更是会增加数据丢失以及错误传输的风险。Existing high-resolution CT faces the problem of serious mismatch between data volume and transmission bandwidth. Taking 320-row CT as an example, the existing 320-row CT has a rotation speed of about 0.23s per revolution, the number of pixels in each row is about 900, the data of each pixel is 16-bit binary data, and the sampling rate of one revolution is about 4096. The required transmission bandwidth is at least 320*900*16*4096/0.23/(1024*1024*1024)=76.42Gbps. The transmission bandwidth required for more advanced photon counting CT is more than 350Gbps. However, even with the most advanced multi-channel parallel optical fiber transmission, the maximum transmission bandwidth is only 40Gbps. In addition, the storage space required for a single scan data is hundreds of G. Large-scale data transmission will increase the risk of data loss and erroneous transmission.

此外,CT数据大多采用16位二进制数据进行传输和存储,这意味着单个数据需要16位寄存器进行存储和传输,但实际使用中,往往CT原始数据的动态范围与16位寄存器所能表示的最大动态范围存在较大差异,造成寄存器冗余。以CT数据为5000为例,其在16位寄存器中的表现形式为0001 00111000 1000,此时,高3位寄存器值为0,并没有任何实际意义,由此造成高3位寄存器冗余。当数据规模较大时,会造成大量的寄存器冗余,浪费硬件资源。In addition, CT data is mostly transmitted and stored in 16-bit binary data, which means that a single data needs a 16-bit register for storage and transmission. However, in actual use, the dynamic range of the CT raw data is often quite different from the maximum dynamic range that can be represented by the 16-bit register, resulting in register redundancy. Taking the CT data of 5000 as an example, its representation in the 16-bit register is 0001 00111000 1000. At this time, the value of the upper 3-bit register is 0, which has no practical meaning, resulting in the redundancy of the upper 3-bit register. When the data scale is large, a large number of registers will be redundant, wasting hardware resources.

随着CT技术的不断发展,CT设备的扫描速度、层数、图像分辨率也日益增加,因此CT数据的规模也日益增大,这也导致传输带宽远远不能满足CT数据传输的需求。With the continuous development of CT technology, the scanning speed, number of layers, and image resolution of CT equipment are also increasing, so the scale of CT data is also increasing, which also leads to the transmission bandwidth being far from meeting the needs of CT data transmission.

针对上述问题,US 7916830 B2专利提出了一种边缘检测压缩的方法,该方法首先检测投影数据中的边缘,之后将检测到的边缘与预设的正负阈值进行比较,以此确定边界。最后在边界之间压缩投影样本或差分样本。To address the above issues, US 7916830 B2 proposes an edge detection compression method, which first detects the edges in the projection data, then compares the detected edges with preset positive and negative thresholds to determine the boundaries, and finally compresses the projection samples or differential samples between the boundaries.

JP2003290216A专利提出了一种通过预设阈值对投影数据进行分类的方法,该方法首先将投影数据分为空气信息区域和主题信息区域,之后删除空气信息区域。JP2003290216A patent proposes a method for classifying projection data by using a preset threshold value. The method first divides the projection data into an air information area and a subject information area, and then deletes the air information area.

CN 104825183A专利提出了一种用于CT数据的封装传输方法,该方法首先对探测器数据进行拼接封装获得单个角度的CT数据,之后对单个角度的CT数据进行预处理,之后通过利用当前角度的CT数据与上一角度的CT数据之间的差异进行压缩。Patent CN 104825183A proposes a packaging and transmission method for CT data. The method first splices and packages the detector data to obtain CT data of a single angle, then preprocesses the CT data of a single angle, and then compresses the CT data by utilizing the difference between the CT data of the current angle and the CT data of the previous angle.

CN117201800A专利提出了一种基于空间冗余的压缩方法,该方法首先将投影数据划分为若干个连通域,之后对所有连通域进行重要程度判断,之后采用游程编码的方式进行压缩。Patent CN117201800A proposes a compression method based on spatial redundancy. The method first divides the projection data into several connected domains, then determines the importance of all connected domains, and then compresses them using run-length encoding.

从检索到的相关文献可以看出,现有压缩技术往往采用区域压缩、变换编码等方式,此类方法并没有改变CT数据不能占有全部寄存器的本质,因此现有压缩技术,在数据量规模较大时,存在大量的寄存器冗余,导致硬件资源的浪费;现有的传输带宽并不能满足日益增长的CT数据传输的需求,此外,由于实际CT数据的动态范围远远小于寄存器所能表示的最大动态范围,当CT数据规模较大时,会存在大量的寄存器冗余,造成硬件资源的浪费。It can be seen from the retrieved relevant literature that existing compression technologies often use regional compression, transform coding and other methods. Such methods do not change the essence that CT data cannot occupy all registers. Therefore, when the data volume is large, the existing compression technology has a large amount of register redundancy, resulting in a waste of hardware resources; the existing transmission bandwidth cannot meet the growing demand for CT data transmission. In addition, since the dynamic range of actual CT data is much smaller than the maximum dynamic range that can be represented by the register, when the CT data scale is large, there will be a large amount of register redundancy, resulting in a waste of hardware resources.

发明内容Summary of the invention

本发明为了解决上述现有技术中存在的缺陷和不足,提供了一种通过数据预处理的方式将原始数据分解为初始值和差异系数,并且由于差异系数的动态范围较小,具有较大的寄存器冗余,因此通过采用寄存器拆解的方式,利用单个寄存器存储多个差异系数,实现寄存器冗余的有效利用,充分利用硬件资源,有效提高压缩效率,缓解传输带宽和存储空间的压力、提高传输可靠性的基于寄存器冗余的CT探测器数据压缩方法。In order to solve the defects and shortcomings in the above-mentioned prior art, the present invention provides a CT detector data compression method based on register redundancy, which decomposes the original data into initial values and difference coefficients by data preprocessing. Since the dynamic range of the difference coefficient is small and has a large register redundancy, a register disassembly method is adopted to use a single register to store multiple difference coefficients, thereby realizing effective utilization of register redundancy, making full use of hardware resources, effectively improving compression efficiency, alleviating the pressure of transmission bandwidth and storage space, and improving transmission reliability.

本发明解决其技术问题所采用的技术方案是:一种基于寄存器冗余的CT探测器数据压缩方法,包括以下步骤:The technical solution adopted by the present invention to solve the technical problem is: a CT detector data compression method based on register redundancy, comprising the following steps:

S1.数据预处理:首先,计算原始数据每个维度上的最小值,作为初始值;其次,计算每个原始数据的差异系数,差异系数取原始数据与初始值差值的平方根,并对平方根四舍五入取整,转化为整型数据;最后,将每个原始数据都分解为初始值和差异系数的形式;S1. Data preprocessing: First, calculate the minimum value of each dimension of the original data as the initial value; second, calculate the difference coefficient of each original data, the difference coefficient is the square root of the difference between the original data and the initial value, and the square root is rounded off and converted into integer data; finally, decompose each original data into the form of initial value and difference coefficient;

S2.数据压缩:通过将寄存器进行拆解,利用一个寄存器传输多个差异系数,实现寄存器冗余资源的充分利用;S2. Data compression: By disassembling the register, multiple difference coefficients are transmitted using one register, so as to make full use of the register redundant resources;

S3.数据传输:将压缩后的数据通过滑环进行传输;S3. Data transmission: The compressed data is transmitted through the slip ring;

S4.数据解压缩:利用传输的初始值和差异系数恢复原始数据;S4. Data decompression: restore the original data using the transmitted initial value and difference coefficient;

S5.图像重建:利用解压缩后的数据实现图像重建。S5. Image reconstruction: Reconstruct the image using the decompressed data.

优选地,所述步骤S1中初始值取最小值的含义在于,保证后续计算值的符号位统一,采用无符号数据格式保存,增大数据的表示范围。Preferably, the meaning of taking the minimum value as the initial value in step S1 is to ensure that the sign bits of subsequent calculated values are unified, and are saved in an unsigned data format, thereby increasing the representation range of the data.

优选地,所述步骤S1中差异系数取平方根后再取整的意义在于尽可能的在不损失精度的情况下缩小数据的动态范围,增大寄存器冗余。Preferably, the significance of taking the square root of the difference coefficient and then rounding it off in step S1 is to reduce the dynamic range of the data as much as possible without losing accuracy and increase register redundancy.

优选地,所述步骤S1中数据预处理对应的具体公式为:Preferably, the specific formula corresponding to the data preprocessing in step S1 is:

ck=min(anmk)c k =min(a nmk )

其中,ck为原始数据每个维度上的最小值,anmk为探测器采集到的原始数据,min表示取原始数据中每个维度的最小值,bnmk为原始数据anmk和初始值ck之间的差异系数,round表示四舍五入取整。Among them, c k is the minimum value of each dimension of the original data, a nmk is the original data collected by the detector, min means taking the minimum value of each dimension in the original data, b nmk is the difference coefficient between the original data a nmk and the initial value c k , and round means rounding.

优选地,所述步骤S2中通过寄存器拆解的方式,使得原来只能用以存储、传输单个数据的16位寄存器可以用来存储、传输多个差异系数,充分利用了硬件资源。Preferably, in step S2, by disassembling the register, the 16-bit register that was originally only used to store and transmit a single data can be used to store and transmit multiple difference coefficients, thereby making full use of hardware resources.

优选地,所述步骤S2中寄存器拆解的位数可以根据实际的数据范围、可接受的误差范围等因素综合考虑,若可以接受更大的误差,也可以将16位寄存器拆解为4个4位寄存器,将原来用以传输单个数据的16位寄存器传输4个数据。Preferably, the number of bits of the register decomposition in step S2 can be comprehensively considered based on factors such as the actual data range and the acceptable error range. If a larger error can be accepted, the 16-bit register can be decomposed into four 4-bit registers, and the 16-bit register originally used to transmit a single data can transmit four data.

优选地,所述步骤S4中数据解压缩的计算公式为:Preferably, the calculation formula for data decompression in step S4 is:

其中,a′nmk为解压缩后的数据,ck为初始值,bnmk为差异系数。Among them, a′ nmk is the decompressed data, c k is the initial value, and b nmk is the difference coefficient.

本发明提供了一种高效、可靠的CT数据压缩方式,通过数据预处理的方式增大寄存器的冗余,之后采用寄存器拆解的方式实现了寄存器资源的有效利用,充分利用了硬件资源,有效提高了压缩效率,可用以缓解传输带宽和存储空间的压力、充分利用硬件资源、提高传输可靠性。The present invention provides an efficient and reliable CT data compression method, which increases the redundancy of registers by data preprocessing, and then realizes the effective utilization of register resources by register disassembly, fully utilizes hardware resources, effectively improves compression efficiency, and can be used to alleviate the pressure of transmission bandwidth and storage space, fully utilize hardware resources, and improve transmission reliability.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为本发明的数据传输流程示意图;FIG1 is a schematic diagram of a data transmission process of the present invention;

图2为本发明的数据预处理示意图;FIG2 is a schematic diagram of data preprocessing of the present invention;

图3为本发明的数据压缩及解压缩示意图。FIG3 is a schematic diagram of data compression and decompression according to the present invention.

具体实施方式DETAILED DESCRIPTION

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

实施例1Example 1

一种基于寄存器冗余的CT探测器数据压缩方法,基本流程如图1所示,该方法主要包括以下步骤:A CT detector data compression method based on register redundancy, the basic process is shown in FIG1 , and the method mainly includes the following steps:

数据预处理:该步骤如附图2所示,首先计算原始数据每个维度上的最小值,作为初始值。初始值取最小值的含义在于,保证后续计算值的符号位统一,可以采用无符号数据格式保存,增大数据的表示范围。其次,计算每个原始数据的差异系数,差异系数取原始数据与初始值差值的平方根,并对平方根四舍五入取整,转化为整型数据。差异系数取平方根后再取整的意义在于尽可能的在不损失精度的情况下缩小数据的动态范围,更小的数据范围意味着更大的寄存器冗余,更大的寄存器冗余更有利于之后的寄存器拆解。最后将每个原始数据都分解为初始值和差异系数的形式。Data preprocessing: This step is shown in Figure 2. First, the minimum value of each dimension of the original data is calculated as the initial value. The significance of taking the minimum value as the initial value is to ensure that the sign bit of the subsequent calculated value is unified, and it can be saved in an unsigned data format to increase the data representation range. Secondly, the difference coefficient of each original data is calculated. The difference coefficient takes the square root of the difference between the original data and the initial value, and the square root is rounded and converted into integer data. The significance of taking the square root of the difference coefficient and then rounding it is to reduce the dynamic range of the data as much as possible without losing accuracy. A smaller data range means a larger register redundancy, and a larger register redundancy is more conducive to the subsequent register disassembly. Finally, each original data is decomposed into the form of an initial value and a difference coefficient.

若原始数据为n*m大小的K通道数据,则数据预处理对应的具体公式为:If the original data is K-channel data of size n*m, the specific formula corresponding to the data preprocessing is:

ck=min(anmk)c k =min(a nmk )

其中,ck为原始数据每个维度上的最小值,anmk为探测器采集到的原始数据,min表示取原始数据中每个维度的最小值,bnmk为原始数据anmk和初始值ck之间的差异系数,round表示四舍五入取整。Among them, c k is the minimum value of each dimension of the original data, a nmk is the original data collected by the detector, min means taking the minimum value of each dimension in the original data, b nmk is the difference coefficient between the original data a nmk and the initial value c k , and round means rounding off.

数据压缩:该步骤如图3所示,其主要原理为:Data compression: This step is shown in Figure 3, and its main principles are:

本发明采用将原始数据分解为初始值和差异系数的形式,使得在传输过程中只需要传输初始值和差异系数,进一步增大了传输值与寄存器所能表示的最大值之间的差异,提高了寄存器的冗余。之后,通过将寄存器进行拆解的方式充分利用寄存器的冗余资源,使得原来只能用以存储、传输单个数据的16位寄存器可以用来存储、传输多个差异系数,充分利用了硬件资源。需要说明的是,寄存器拆解的位数可以根据实际的数据范围、可接受的误差范围等因素综合考虑。例如可以将16位寄存器拆解为高8位和低8位,而高8位和低8位可以分别用来存储、传输一个差异系数,即原来用以传输单个数据的16位寄存器传输了两个数据。此外,若可以接受更大的误差,也可以将16位寄存器拆解为4个4位寄存器,将原来用以传输单个数据的16位寄存器传输4个数据。The present invention adopts the form of decomposing the original data into an initial value and a difference coefficient, so that only the initial value and the difference coefficient need to be transmitted during the transmission process, further increasing the difference between the transmission value and the maximum value that the register can represent, and improving the redundancy of the register. Afterwards, by disassembling the register, the redundant resources of the register are fully utilized, so that the 16-bit register that can only be used to store and transmit a single data can be used to store and transmit multiple difference coefficients, making full use of hardware resources. It should be noted that the number of bits of the register disassembly can be comprehensively considered according to factors such as the actual data range and the acceptable error range. For example, the 16-bit register can be disassembled into high 8 bits and low 8 bits, and the high 8 bits and low 8 bits can be used to store and transmit a difference coefficient respectively, that is, the 16-bit register originally used to transmit a single data transmits two data. In addition, if a larger error can be accepted, the 16-bit register can also be disassembled into 4 4-bit registers, and the 16-bit register originally used to transmit a single data transmits 4 data.

数据传输:将压缩后的数据通过滑环进行传输。Data transmission: The compressed data is transmitted through the slip ring.

数据解压缩:该步骤如图3所示,其主要原理为:Data decompression: This step is shown in Figure 3, and its main principles are:

通过滑环传输的数据为初始值和差异系数,数据解压缩的计算公式为:The data transmitted through the slip ring is the initial value and the difference coefficient. The calculation formula for data decompression is:

其中,a′nmk为解压缩后的数据,ck为初始值,bnmk为差异系数。Among them, a′ nmk is the decompressed data, c k is the initial value, and b nmk is the difference coefficient.

图像重建:利用解压缩后的数据实现图像重建。Image reconstruction: Image reconstruction is achieved using decompressed data.

本发明种中数据压缩及解压缩具体是指:将原始数据进行预处理后,得到原始数据对应的初始值和差异系数,之后将原先用于存储、传输原始数据的寄存器进行拆分,将多个差异系数合并存储到原来的寄存器中,传输完成后再利用初始值和差异系数将原始数据还原。The data compression and decompression in the present invention specifically refers to: after preprocessing the original data, the initial value and difference coefficient corresponding to the original data are obtained, and then the register originally used to store and transmit the original data is split, and multiple difference coefficients are merged and stored in the original register. After the transmission is completed, the original data is restored using the initial value and difference coefficient.

实施例2Example 2

以下是本发明的一些数值示例:The following are some numerical examples of the present invention:

采集的原始CT数据为4*4大小的4通道数据,采用uint16数据类型,16位寄存器存储,具体数值如下:The collected original CT data is 4*4 4-channel data, using uint16 data type and 16-bit register storage. The specific values are as follows:

1通道:1 channel:

[58933 23352 12691 05711][58933 23352 12691 05711]

[27318 15776 60002 12471][27318 15776 60002 12471]

[49877 05303 46007 49865][49877 05303 46007 49865]

[34201 46955 24589 06670][34201 46955 24589 06670]

2通道:2 channels:

[65515 41558 16645 02770][65515 41558 16645 02770]

[53144 22331 38946 12626][53144 22331 38946 12626]

[33492 65142 58509 34918][33492 65142 58509 34918]

[13609 42656 64524 32210][13609 42656 64524 32210]

3通道:3 channels:

[42019 18651 49474 52413][42019 18651 49474 52413]

[54142 35131 03190 17814][54142 35131 03190 17814]

[16958 16618 40562 10448][16958 16618 40562 10448]

[26356 33360 16613 45530][26356 33360 16613 45530]

4通道:4 channels:

[19545 48309 28979 27304][19545 48309 28979 27304]

[13989 22749 05304 41803][13989 22749 05304 41803]

[15383 55080 42930 39026][15383 55080 42930 39026]

[16872 17848 43679 24329][16872 17848 43679 24329]

数据预处理:Data preprocessing:

分别计算原始数据每个通道的最小值,记为初始值,分别为:5303、2770、3190、5304Calculate the minimum value of each channel of the original data and record it as the initial value, which are: 5303, 2770, 3190, 5304

分别计算每个原始数据与初始值的差值,记为差异系数,则上述原始数据的差异系数为:Calculate the difference between each original data and the initial value, record it as the difference coefficient, then the difference coefficient of the above original data is:

1通道:1 channel:

[232 134 086 020][232 134 086 020]

[148 102 234 085][148 102 234 085]

[211 000 202 211][211 000 202 211]

[170 204 139 037][170 204 139 037]

2通道:2 channels:

[250 197 118 000][250 197 118 000]

[224 140 190 099][224 140 190 099]

[175 250 236 179][175 250 236 179]

[104 200 249 172][104 200 249 172]

3通道:3 channels:

[197 124 215 222][197 124 215 222]

[226 179 000 121][226 179 000 121]

[117 116 193 085][117 116 193 085]

[152 174 116 206][152 174 116 206]

4通道:4 channels:

[119 207 154 148][119 207 154 148]

[093 132 000 191][093 132 000 191]

[100 223 194 184][100 223 194 184]

[108 112 196 138][108 112 196 138]

数据压缩:Data Compression:

将原有的16位寄存器,分解为高8位和低8位,分别用以存储、传输一个差异系数。例如,1通道中的前两个差异系数分别为232、134,其原本在16位寄存器中的存储形式为:0000 0000 1110 1000、0000 0000 1000 0110,此时,16位寄存器的高8位寄存器值为0,不具有任何实际意义,为寄存器冗余。本发明的压缩方法为将差异系数232、134的有效位分别存储在16位寄存器的高8位和低8位中,因此本发明中16位寄存器中的存储形式为:11101000 1000 0110,此时16位寄存器中的最高位寄存器值不为0,因此每一位寄存器都具有实际意义,并且实现了利用原来存储单个数据的16位寄存器存储了两个差异系数。此外原有寄存器的分解以及如何存储、传输差异系数需要根据实际情况改变。The original 16-bit register is decomposed into high 8 bits and low 8 bits, which are used to store and transmit a difference coefficient respectively. For example, the first two difference coefficients in channel 1 are 232 and 134 respectively, and the storage forms of the original difference coefficients in the 16-bit register are: 0000 0000 1110 1000, 0000 0000 1000 0110. At this time, the high 8-bit register value of the 16-bit register is 0, which has no practical significance and is register redundancy. The compression method of the present invention is to store the effective bits of the difference coefficients 232 and 134 in the high 8 bits and low 8 bits of the 16-bit register respectively. Therefore, the storage form in the 16-bit register of the present invention is: 11101000 1000 0110. At this time, the highest bit register value in the 16-bit register is not 0, so each bit register has practical significance, and the 16-bit register that originally stores single data is used to store two difference coefficients. In addition, the decomposition of the original register and how to store and transmit the difference coefficient need to be changed according to the actual situation.

数据传输:将初始值和差异系数进行传输。Data transmission: Transmit the initial value and difference coefficient.

数据解压缩:根据传输的初始值和差异系数恢复原始数据。例如1通道的初始值为5303,一个16位寄存器的高8位和低8位分别存储的差异系数为232、134,则原始数据分别为5303+232*232、5303+134*134,即59182、22857。Data decompression: Restore the original data based on the transmitted initial value and difference coefficient. For example, if the initial value of channel 1 is 5303, and the difference coefficients stored in the high 8 bits and low 8 bits of a 16-bit register are 232 and 134 respectively, then the original data are 5303+232*232 and 5303+134*134, that is, 59182 and 22857 respectively.

图像重建:根据解压缩恢复的原始数据重建图像。Image reconstruction: Reconstruct the image based on the original data restored by decompression.

为了更好的说明本发明对不同的CT原始数据的都具有相同的压缩率,分别选取原始数据较小的6670和原始数据较大的65515作为示例。根据数据预处理方法,所对应的通道初始值分别为5303、2270,差异系数分别为37、250。由于本发明在信道中传输的数据为初始值和差异系数,而每个通道的初始值所需的传输带宽都为16b it,每个差异系数所需的传输带宽都为8b it。因此本发明对不同值的CT原始数据都具有相同的压缩率。In order to better illustrate that the present invention has the same compression rate for different CT raw data, 6670 with smaller raw data and 65515 with larger raw data are selected as examples. According to the data preprocessing method, the corresponding channel initial values are 5303 and 2270, and the difference coefficients are 37 and 250, respectively. Since the data transmitted in the channel of the present invention are the initial value and the difference coefficient, and the transmission bandwidth required for the initial value of each channel is 16 bits, and the transmission bandwidth required for each difference coefficient is 8 bits. Therefore, the present invention has the same compression rate for CT raw data of different values.

此外对于不同长度的CT原始数据,假设CT原始数据的大小为n*m*k,则所需的传输带宽为n*m*k*16,以将16位寄存器拆解为高8位和低8位为例,本发明所需的传输带宽为k*16+n*m*k*8。由于k值一般远远小于n*m*k值,因此本发明对不同长度的CT原始数据的都具有近似相同的压缩率。In addition, for CT raw data of different lengths, assuming that the size of the CT raw data is n*m*k, the required transmission bandwidth is n*m*k*16, and taking the decomposition of a 16-bit register into high 8 bits and low 8 bits as an example, the required transmission bandwidth of the present invention is k*16+n*m*k*8. Since the k value is generally much smaller than the n*m*k value, the present invention has approximately the same compression rate for CT raw data of different lengths.

为证明本发明的有效性,由于CT原始数据更接近于图像数据,因此选取图像数据压缩领域经典的JPEG压缩方法作为对比,由于JPEG压缩方法的压缩率可变,而本发明的压缩率固定。因此为了在同一维度进行对比,将JPEG压缩方法的压缩率调整至与本发明的压缩率相同,之后使用本发明提供的CT探测器数据压缩方法进行压缩,并与JPEG压缩方法进行对比,进行10次试验后取平均值。To prove the effectiveness of the present invention, since CT raw data is closer to image data, the classic JPEG compression method in the field of image data compression is selected for comparison. Since the compression rate of the JPEG compression method is variable, while the compression rate of the present invention is fixed, in order to compare in the same dimension, the compression rate of the JPEG compression method is adjusted to the same as that of the present invention, and then the CT detector data compression method provided by the present invention is used for compression, and compared with the JPEG compression method, and the average value is taken after 10 tests.

表(1)是本发明提供CT探测器数据压缩方法与JPEG压缩方法的量化指标对比。实验结果如表1所示,本发明提供CT探测器数据压缩方法在RMSE、PSNR、MSE评价指标上都优于JPEG压缩方法,因此在相同压缩率的情况下,本发明提供的CT探测器数据压缩方法的误差要小于JPEG压缩方法。Table (1) is a quantitative index comparison between the CT detector data compression method provided by the present invention and the JPEG compression method. As shown in Table 1, the experimental results show that the CT detector data compression method provided by the present invention is superior to the JPEG compression method in terms of RMSE, PSNR, and MSE evaluation indicators. Therefore, under the same compression rate, the error of the CT detector data compression method provided by the present invention is smaller than that of the JPEG compression method.

此外,当调整JPEG压缩方法的RMSE值与本发明提供CT探测器数据压缩方法的RMSE值相同时,JPEG压缩方法的压缩率为65.52%,而本发明的压缩率为50.01%,因此在相同误差的情况下,本发明提供的CT探测器数据压缩方法的压缩率要优于JPEG压缩方法。In addition, when the RMSE value of the JPEG compression method is adjusted to be the same as the RMSE value of the CT detector data compression method provided by the present invention, the compression rate of the JPEG compression method is 65.52%, while the compression rate of the present invention is 50.01%. Therefore, under the same error condition, the compression rate of the CT detector data compression method provided by the present invention is better than that of the JPEG compression method.

综上所述证明了本发明提供CT探测器数据压缩方法的有效性。In summary, the effectiveness of the CT detector data compression method provided by the present invention is demonstrated.

表(1)Table (1)

尽管已经示出和描述了本发明的具体实施方式,对于本领域的普通技术人员而言,可以理解在不脱离原理和精神的情况下可以对这些具体实施方式进行多种变化、修改、替换和变型,本发明的范围由所附权利要求及其等同物限定。Although specific embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the specific embodiments without departing from the principles and spirit thereof, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims (7)

1.一种基于寄存器冗余的CT探测器数据压缩方法,其特征在于:包括以下步骤:1. A CT detector data compression method based on register redundancy, characterized in that it comprises the following steps: S1.数据预处理:首先,计算原始数据每个维度上的最小值,作为初始值;其次,计算每个原始数据的差异系数,差异系数取原始数据与初始值差值的平方根,并对平方根四舍五入取整,转化为整型数据;最后,将每个原始数据都分解为初始值和差异系数的形式;S1. Data preprocessing: First, calculate the minimum value of each dimension of the original data as the initial value; second, calculate the difference coefficient of each original data, the difference coefficient is the square root of the difference between the original data and the initial value, and the square root is rounded off and converted into integer data; finally, decompose each original data into the form of initial value and difference coefficient; S2.数据压缩:通过将寄存器进行拆解,利用一个寄存器传输多个差异系数,实现寄存器冗余资源的充分利用;S2. Data compression: By disassembling the register, multiple difference coefficients are transmitted using one register, so as to make full use of the register redundant resources; S3.数据传输:将压缩后的数据通过滑环进行传输;S3. Data transmission: The compressed data is transmitted through the slip ring; S4.数据解压缩:利用传输的初始值和差异系数恢复原始数据;S4. Data decompression: restore the original data using the transmitted initial value and difference coefficient; S5.图像重建:利用解压缩后的数据实现图像重建。S5. Image reconstruction: Reconstruct the image using the decompressed data. 2.根据权利要求1所述的一种基于寄存器冗余的CT探测器数据压缩方法,其特征在于:所述步骤S1中初始值取最小值的含义在于,保证后续计算值的符号位统一,采用无符号数据格式保存,增大数据的表示范围。2. A CT detector data compression method based on register redundancy according to claim 1, characterized in that: the meaning of taking the minimum value as the initial value in step S1 is to ensure that the sign bits of subsequent calculated values are unified, and are saved in an unsigned data format to increase the data representation range. 3.根据权利要求1所述的一种基于寄存器冗余的CT探测器数据压缩方法,其特征在于:所述步骤S1中差异系数取平方根后再取整的意义在于尽可能的在不损失精度的情况下缩小数据的动态范围,增大寄存器冗余。3. A CT detector data compression method based on register redundancy according to claim 1, characterized in that: the significance of taking the square root of the difference coefficient and then rounding it in step S1 is to reduce the dynamic range of the data as much as possible without losing accuracy and increase the register redundancy. 4.根据权利要求1所述的一种基于寄存器冗余的CT探测器数据压缩方法,其特征在于:所述步骤S1中数据预处理对应的具体公式为:4. The CT detector data compression method based on register redundancy according to claim 1, characterized in that: the specific formula corresponding to the data preprocessing in step S1 is: ck=min(anmk)c k =min(a nmk ) 其中,ck为原始数据每个维度上的最小值,anmk为探测器采集到的原始数据,min表示取原始数据中每个维度的最小值,bnmk为原始数据anmk和初始值ck之间的差异系数,round表示四舍五入取整。Among them, c k is the minimum value of each dimension of the original data, a nmk is the original data collected by the detector, min means taking the minimum value of each dimension in the original data, b nmk is the difference coefficient between the original data a nmk and the initial value c k , and round means rounding off. 5.根据权利要求1所述的一种基于寄存器冗余的CT探测器数据压缩方法,其优选特征在于:所述步骤S2中通过寄存器拆解的方式,使得原来只能用以存储、传输单个数据的16位寄存器可以用来存储、传输多个差异系数,充分利用了硬件资源。5. The CT detector data compression method based on register redundancy according to claim 1 is preferably characterized in that: in step S2, by means of register disassembly, a 16-bit register that was originally only used to store and transmit a single data can be used to store and transmit multiple difference coefficients, thereby making full use of hardware resources. 6.根据权利要求1所述的一种基于寄存器冗余的CT探测器数据压缩方法,其优选特征在于:所述步骤S2中寄存器拆解的位数可以根据实际的数据范围、可接受的误差范围等因素综合考虑,若可以接受更大的误差,也可以将16位寄存器拆解为4个4位寄存器,将原来用以传输单个数据的16位寄存器传输4个数据。6. The CT detector data compression method based on register redundancy according to claim 1 is preferably characterized in that: the number of bits of the register decomposition in step S2 can be comprehensively considered based on factors such as the actual data range and the acceptable error range. If a larger error can be accepted, the 16-bit register can also be decomposed into four 4-bit registers, and the 16-bit register originally used to transmit a single data can transmit four data. 7.根据权利要求1所述的一种基于寄存器冗余的CT探测器数据压缩方法,其优选特征在于:所述步骤S4中数据解压缩的计算公式为:7. The method for compressing CT detector data based on register redundancy according to claim 1 is preferably characterized in that the calculation formula for data decompression in step S4 is: 其中,a′nmk为解压缩后的数据,ck为初始值,bnmk为差异系数。Among them, a′ nmk is the decompressed data, c k is the initial value, and b nmk is the difference coefficient.
CN202410784576.5A 2024-06-18 2024-06-18 A CT detector data compression method based on register redundancy Pending CN118828005A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410784576.5A CN118828005A (en) 2024-06-18 2024-06-18 A CT detector data compression method based on register redundancy

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410784576.5A CN118828005A (en) 2024-06-18 2024-06-18 A CT detector data compression method based on register redundancy

Publications (1)

Publication Number Publication Date
CN118828005A true CN118828005A (en) 2024-10-22

Family

ID=93084679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410784576.5A Pending CN118828005A (en) 2024-06-18 2024-06-18 A CT detector data compression method based on register redundancy

Country Status (1)

Country Link
CN (1) CN118828005A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119745404A (en) * 2024-12-31 2025-04-04 上海联影医疗科技股份有限公司 Method, device, system, storage medium and program product for data transmission via slip ring in medical imaging system
CN120318344A (en) * 2025-03-31 2025-07-15 北京富通康影科技有限公司 A photon counting CT data compression method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5617506A (en) * 1994-06-29 1997-04-01 The 3Do Company Method for communicating a value over a transmission medium and for decoding same
CN102841776A (en) * 1994-12-02 2012-12-26 英特尔公司 Microprocessor capable of compressing composite operation number
US20180014016A1 (en) * 2016-07-06 2018-01-11 Morpho Detection, Llc Systems and methods for compressing image data generated by a computed tomography (ct) imaging system
CN110769211A (en) * 2019-11-07 2020-02-07 鲁东大学 Image raster data transmission and storage method
CN116488660A (en) * 2023-04-20 2023-07-25 桂林电子科技大学 Mixed data compression method of human physiological signals
CN117294869A (en) * 2023-08-02 2023-12-26 深圳市辰卓科技有限公司 Image data processing method, device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5617506A (en) * 1994-06-29 1997-04-01 The 3Do Company Method for communicating a value over a transmission medium and for decoding same
CN102841776A (en) * 1994-12-02 2012-12-26 英特尔公司 Microprocessor capable of compressing composite operation number
US20180014016A1 (en) * 2016-07-06 2018-01-11 Morpho Detection, Llc Systems and methods for compressing image data generated by a computed tomography (ct) imaging system
CN110769211A (en) * 2019-11-07 2020-02-07 鲁东大学 Image raster data transmission and storage method
CN116488660A (en) * 2023-04-20 2023-07-25 桂林电子科技大学 Mixed data compression method of human physiological signals
CN117294869A (en) * 2023-08-02 2023-12-26 深圳市辰卓科技有限公司 Image data processing method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119745404A (en) * 2024-12-31 2025-04-04 上海联影医疗科技股份有限公司 Method, device, system, storage medium and program product for data transmission via slip ring in medical imaging system
CN120318344A (en) * 2025-03-31 2025-07-15 北京富通康影科技有限公司 A photon counting CT data compression method
CN120318344B (en) * 2025-03-31 2025-09-19 北京富通康影科技有限公司 A photon counting CT data compression method

Similar Documents

Publication Publication Date Title
CN118828005A (en) A CT detector data compression method based on register redundancy
US11049283B2 (en) Lossless compression of fragmented image data
US8571311B2 (en) Raster graphics image transcoding for file size reduction
CN118967608B (en) Chest lung medical image processing and analyzing software system with high transmission efficiency
CN116153452A (en) Medical electronic medical record storage system based on artificial intelligence
Bui et al. Comparison of lossless video and image compression codecs for medical computed tomography datasets
CN113538253B (en) Medical image processing method, medium and CT device
WO2020113827A1 (en) Image compression method
CN104207798B (en) The method for reconstructing of computed tomography image
CN111787321A (en) Image compression and decompression method and system for edge end based on deep learning
Ghrare et al. An efficient low complexity lossless coding algorithm for medical images
CN101656880B (en) Image encoding method and image encoding device
CN103761753B (en) Decompression method based on texture image similarity
CN119449040A (en) A data compression method and system based on tensor transformation
CN113676536B (en) Accelerated transmission control method and system based on medical image file
CN118824474A (en) High-efficiency image transmission method, device and storage medium based on PACS system
CN116347078B (en) DICOM real-time image coding method and system based on image cloud
CN110267049A (en) A Storage Optimization Method for Sparse Coding
CN117939172A (en) Image processing method and system, decompression method, device and medium
Pintilei et al. Exploring Data Compression: Solutions to Optimize Efficiency and Improve Performance
CN118490256B (en) CT detector data acquisition method and acquisition system
CN115546323A (en) Image compression reconstruction method based on spherical coordinate principal component analysis
CN106791939A (en) Movable image conversion method based on stream media technology
Mohammed et al. Hybrid color image compression based on FMM and Huffman encoding techniques
Sujatha et al. LOSSLESS IMAGE COMPRESSION USING DIFFERENT ENCODING ALGORITHM FOR VARIOUS MEDICAL IMAGES.

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