CN103840837B - Method and apparatus for compressing and decompressing data - Google Patents
Method and apparatus for compressing and decompressing data Download PDFInfo
- Publication number
- CN103840837B CN103840837B CN201410084617.6A CN201410084617A CN103840837B CN 103840837 B CN103840837 B CN 103840837B CN 201410084617 A CN201410084617 A CN 201410084617A CN 103840837 B CN103840837 B CN 103840837B
- Authority
- CN
- China
- Prior art keywords
- data
- angle
- reference data
- azimuth
- pitch
- 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.)
- Active
Links
Landscapes
- Variable-Direction Aerials And Aerial Arrays (AREA)
- Radar Systems Or Details Thereof (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信领域,尤其涉及通信领域中压缩和解压缩数据的方法和装置。The invention relates to the communication field, in particular to a method and device for compressing and decompressing data in the communication field.
背景技术Background technique
在采用计算机软件开展网络规划及优化工作时,天线三维方向图由于精度和准确性较高,得到了越来越广泛的应用。天线工作于不同频段、不同下倾角时,天线三维方向图会表现出不同的形状。另外,当天线为多端口天线时,每个端口也都有各自的三维方向图形状。因而,一个天线通常对应了多张三维方向图,而描述每一张天线三维方向图的数据通常有万余个。这就要求天线中用于存储方向图的远端天线信息管理(Remote AntennaExtension,RAE)模块拥有足够大的存储空间,使得天线的存储成本升高。When using computer software to carry out network planning and optimization work, the three-dimensional antenna pattern has been more and more widely used due to its high precision and accuracy. When the antenna works in different frequency bands and different downtilt angles, the three-dimensional pattern of the antenna will show different shapes. In addition, when the antenna is a multi-port antenna, each port also has its own three-dimensional pattern shape. Therefore, an antenna usually corresponds to multiple three-dimensional pattern, and there are usually more than ten thousand pieces of data describing each antenna three-dimensional pattern. This requires a remote antenna information management (Remote Antenna Extension, RAE) module in the antenna for storing the pattern to have a large enough storage space, which increases the storage cost of the antenna.
发明内容Contents of the invention
本发明实施例提供了一种压缩和解压缩数据的方法和装置,能够减少存储数据的数量,并能准确地重构原始天线三维方向图。The embodiment of the present invention provides a method and device for compressing and decompressing data, which can reduce the amount of stored data and can accurately reconstruct the original antenna three-dimensional pattern.
第一方面,提供了一种解压缩数据的装置,该装置包括:读取模块,用于读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;第一确定模块,用于根据读取模块读取的存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;第二确定模块,用于根据第一确定模块确定的第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。In a first aspect, a device for decompressing data is provided. The device includes: a reading module for reading stored data, the stored data includes a plurality of first data whose elevation angle is a first elevation angle, an azimuth angle Be a plurality of second data of the first azimuth angle and a plurality of third data whose azimuth angle is the second azimuth angle, wherein the difference between the first azimuth angle and the second azimuth angle is 180°; the first determination module is used for reading according to The stored data read by the module determines the gain values corresponding to the first reference data, the second reference data, and the third reference data; wherein, the azimuth corresponding to the first reference data is equal to the azimuth corresponding to the reconstructed data, and the second The pitch angle corresponding to a reference data is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angles corresponding to the reconstructed data, and the azimuth angle corresponding to the second reference data is the first azimuth angle , the azimuth angle corresponding to the third reference data is the second azimuth angle; the second determination module is configured to use two The dimensional interpolation algorithm determines the gain value corresponding to the reconstructed data.
在第一方面的第一种可能的实现方式中,第一确定模块具体用于:在多个第一数据中确定第一参考数据,并确定第一参考数据对应的增益值。In a first possible implementation manner of the first aspect, the first determining module is specifically configured to: determine the first reference data among the plurality of first data, and determine a gain value corresponding to the first reference data.
在第一方面的第二种可能的实现方式中,第一确定模块具体用于:在多个第一数据中确定至少两个第一数据,其中,至少两个第一数据包括:方位角小于第一参考数据的方位角的第一数据和方位角大于第一参考数据的方位角的第一数据;根据至少两个第一数据对应的增益值,利用一维插值算法确定第一参考数据的增益值。In a second possible implementation manner of the first aspect, the first determining module is specifically configured to: determine at least two first data among multiple first data, wherein the at least two first data include: an azimuth angle smaller than The first data of the azimuth angle of the first reference data and the first data of the azimuth angle greater than the first reference data; according to the gain values corresponding to at least two first data, a one-dimensional interpolation algorithm is used to determine the first reference data. gain value.
结合第一方面或第一方面的第一种至第二种可能的实现方式中的任一种可能的实现方式,在第一方面的第三种可能的实现方式中,第一确定模块具体还用于:在多个第二数据中确定第二参考数据,并确定第二参考数据的增益值;和/或第一确定模块具体还用于:在多个第三数据中确定第三参考数据,并确定第三参考数据的增益值。In combination with the first aspect or any one of the first to second possible implementations of the first aspect, in the third possible implementation of the first aspect, the first determining module specifically further It is used to: determine the second reference data among multiple second data, and determine the gain value of the second reference data; and/or the first determination module is further configured to: determine the third reference data among multiple third data , and determine the gain value of the third reference data.
结合第一方面或第一方面的第一种至第二种可能的实现方式中的任一种可能的实现方式,在第一方面的第四种可能的实现方式中,第一确定模块具体还用于:在多个第二数据中确定至少两个第二数据,其中,至少两个第二数据包括:俯仰角小于第二参考数据的俯仰角的第二数据和俯仰角大于第二参考数据的俯仰角的第二数据;根据至少两个第二数据对应的增益值,利用一维插值算法确定第二参考数据的增益值。In combination with the first aspect or any one of the first to second possible implementations of the first aspect, in the fourth possible implementation of the first aspect, the first determining module specifically further Used for: determining at least two second data among a plurality of second data, wherein the at least two second data include: the second data whose pitch angle is smaller than the pitch angle of the second reference data and the pitch angle larger than the second reference data The second data of the pitch angle; according to the gain values corresponding to at least two second data, the gain value of the second reference data is determined by using a one-dimensional interpolation algorithm.
结合第一方面或第一方面的第一种、第二种、第四种可能的实现方式中的任一种可能的实现方式,在第一方面的第五种可能的实现方式中,第一确定模块具体还用于:在多个第三数据中确定至少两个第三数据,其中,至少两个第三数据包括:俯仰角小于第三参考数据的俯仰角的第三数据和俯仰角大于第三参考数据的俯仰角的第三数据;根据至少两个第三数据对应的增益值,利用一维插值算法确定第三参考数据的增益值。In combination with the first aspect or any of the first, second, and fourth possible implementations of the first aspect, in the fifth possible implementation of the first aspect, the first The determining module is specifically further configured to: determine at least two third data among a plurality of third data, wherein the at least two third data include: third data whose pitch angle is smaller than the pitch angle of the third reference data and pitch angles larger than The third data of the pitch angle of the third reference data; according to the gain values corresponding to at least two third data, a one-dimensional interpolation algorithm is used to determine the gain value of the third reference data.
结合第一方面的第二种、第四种或第五种可能的实现方式,在第一方面的第六种可能的实现方式中,一维插值算法为一维最邻近插值法、线性插值法、三次样条插值法或分段三阶埃尔米特插值法。In combination with the second, fourth or fifth possible implementation of the first aspect, in the sixth possible implementation of the first aspect, the one-dimensional interpolation algorithm is one-dimensional nearest neighbor interpolation, linear interpolation , cubic spline interpolation or piecewise third-order Hermitian interpolation.
结合第一方面或第一方面的第一种至第六种可能的实现方式中的任一种可能的实现方式,在第一方面的第七种可能的实现方式中,二维插值算法为二维最邻近插值法、双线性内插值法、三次卷积法或拉格朗日插值法。In combination with the first aspect or any of the first to sixth possible implementations of the first aspect, in the seventh possible implementation of the first aspect, the two-dimensional interpolation algorithm is two dimensional nearest neighbor interpolation, bilinear interpolation, cubic convolution, or Lagrangian interpolation.
第二方面,提供了一种压缩数据的装置,该装置包括:获取模块,用于从多个数据中获取目标数据对应的方位角、俯仰角和增益值,所述目标数据为天线三维方向图中增益值最大的点对应的数据;第一确定模块,用于从所述多个数据中确定俯仰角与所述获取模块获取的所述目标数据对应的俯仰角相等的多个第一数据、方位角与所述目标数据对应的方位角相等的多个第二数据和方位角与所述目标数据对应的方位角相差180°的多个第三数据;存储模块,用于存储所述第一确定模块确定的所述多个第一数据、所述多个第二数据和所述多个第三数据,以便于根据所述多个第一数据、所述多个第二数据和所述多个第三数据重构所述天线三维方向图。In a second aspect, a device for compressing data is provided, the device includes: an acquisition module, configured to acquire the azimuth, elevation angle, and gain value corresponding to the target data from a plurality of data, the target data being the three-dimensional pattern of the antenna The data corresponding to the point with the largest gain value; a first determination module, configured to determine from the plurality of data a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the target data acquired by the acquisition module, A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the target data and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the target data; a storage module for storing the first The plurality of first data, the plurality of second data, and the plurality of third data determined by the determining module, so that according to the plurality of first data, the plurality of second data and the plurality of The third data reconstructs the three-dimensional pattern of the antenna.
在第二方面的第一种可能的实现方式中,第一确定模块确定的多个第二数据包括:多个数据中所有方位角与目标数据对应的方位角相等的数据;和/或第一确定模块确定的多个第三数据包括:多个数据中所有方位角与目标数据对应的方位角相差180°的数据。In a first possible implementation manner of the second aspect, the plurality of second data determined by the first determination module includes: data in which all azimuth angles in the plurality of data are equal to the azimuth angles corresponding to the target data; and/or the first The plurality of third data determined by the determination module includes: data in which all azimuth angles in the plurality of data differ from the azimuth angle corresponding to the target data by 180°.
结合第二方面或第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,第一确定模块确定的多个第一数据包括:按照预设的数据间隔规则,从多个数据中选取的俯仰角与目标数据对应的俯仰角相等的多个数据。With reference to the second aspect or the first possible implementation of the second aspect, in the second possible implementation of the second aspect, the plurality of first data determined by the first determining module includes: The rule is that the pitch angles selected from the multiple data are equal to the pitch angles corresponding to the target data.
结合第二方面或第二方面的第一种至第二种可能的实现方式中的任一种可能的实现方式,在第二方面的第三种可能的实现方式中,该装置还包括:读取模块,用于读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;第二确定模块,用于根据读取模块读取的存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;第三确定模块,用于根据第二确定模块确定的第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。In combination with the second aspect or any possible implementation manner of the first to second possible implementation manners of the second aspect, in a third possible implementation manner of the second aspect, the device further includes: reading The fetching module is used to read stored data, and the stored data includes a plurality of first data whose elevation angle is a first elevation angle, a plurality of second data whose azimuth angle is a first azimuth angle, and azimuth angles whose azimuth angle is a second azimuth angle A plurality of third data, wherein the difference between the first azimuth angle and the second azimuth angle is 180°; the second determination module is used to determine the first reference data, the second reference data and the stored data read by the reading module. The gain value corresponding to the third reference data; wherein, the azimuth angle corresponding to the first reference data is equal to the azimuth angle corresponding to the reconstruction data, and the pitch angle corresponding to the first reference data is the first pitch angle; the second reference data and the first pitch angle The pitch angle corresponding to the three reference data is equal to the pitch angle corresponding to the reconstruction data, and the azimuth angle corresponding to the second reference data is the first azimuth angle, and the azimuth angle corresponding to the third reference data is the second azimuth angle; the third determining module , for determining the gain value corresponding to the reconstructed data by using a two-dimensional interpolation algorithm according to the gain values corresponding to the first reference data, the second reference data and the third reference data determined by the second determining module.
第三方面,提供了一种解压缩数据的方法,该方法包括:读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;根据存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;根据第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。In a third aspect, a method for decompressing data is provided, the method includes: reading stored data, the stored data includes a plurality of first data whose pitch angle is a first pitch angle, and a plurality of data whose azimuth angle is a first azimuth angle A plurality of second data and a plurality of third data whose azimuth angle is a second azimuth angle, wherein the difference between the first azimuth angle and the second azimuth angle is 180°; according to the stored data, determine the first reference data, the second reference data and The gain value corresponding to the third reference data; wherein, the azimuth angle corresponding to the first reference data is equal to the azimuth angle corresponding to the reconstruction data, and the pitch angle corresponding to the first reference data is the first pitch angle; the second reference data and the first pitch angle The pitch angle corresponding to the three reference data is equal to the pitch angle corresponding to the reconstructed data, and the azimuth angle corresponding to the second reference data is the first azimuth angle, and the azimuth angle corresponding to the third reference data is the second azimuth angle; according to the first reference The gain values corresponding to the data, the second reference data, and the third reference data are determined using a two-dimensional interpolation algorithm to determine the gain values corresponding to the reconstructed data.
在第三方面的第一种可能的实现方式中,确定第一参考数据对应的增益值,包括:在多个第一数据中确定第一参考数据,并确定第一参考数据对应的增益值。In a first possible implementation manner of the third aspect, determining the gain value corresponding to the first reference data includes: determining the first reference data in multiple first data, and determining the gain value corresponding to the first reference data.
在第三方面的第二种可能的实现方式中,确定第一参考数据对应的增益值,包括:在多个第一数据中确定至少两个第一数据,其中,至少两个第一数据包括:方位角小于第一参考数据的方位角的第一数据和方位角大于第一参考数据的方位角的第一数据;根据至少两个第一数据对应的增益值,利用一维插值算法确定第一参考数据的增益值。In a second possible implementation manner of the third aspect, determining the gain value corresponding to the first reference data includes: determining at least two first data among multiple first data, wherein the at least two first data include : the first data whose azimuth angle is smaller than the azimuth angle of the first reference data and the first data whose azimuth angle is larger than the azimuth angle of the first reference data; according to the gain values corresponding to at least two first data, a one-dimensional interpolation algorithm is used to determine the first data A reference data gain value.
结合第三方面或第三方面的第一种至第二种可能的实现方式中的任一种可能的实现方式,在第三方面的第三种可能的实现方式中,确定第二参考数据对应的增益值,包括:在多个第二数据中确定第二参考数据,并确定第二参考数据的增益值;和/或确定第三参考数据对应的增益值,包括:在多个第三数据中确定第三参考数据,并确定第三参考数据的增益值。In combination with the third aspect or any of the first to second possible implementations of the third aspect, in the third possible implementation of the third aspect, it is determined that the second reference data corresponds to The gain value of the second reference data includes: determining the second reference data in a plurality of second data, and determining the gain value of the second reference data; and/or determining the gain value corresponding to the third reference data, including: determining the gain value in the plurality of third data Determine the third reference data, and determine the gain value of the third reference data.
结合第三方面或第三方面的第一种至第二种可能的实现方式中的任一种可能的实现方式,在第三方面的第四种可能的实现方式中,确定第二参考数据对应的增益值,包括:在多个第二数据中确定至少两个第二数据,其中,至少两个第二数据包括:俯仰角小于第二参考数据的俯仰角的第二数据和俯仰角大于第二参考数据的俯仰角的第二数据;根据至少两个第二数据对应的增益值,利用一维插值算法确定第二参考数据的增益值。In combination with the third aspect or any of the first to second possible implementations of the third aspect, in a fourth possible implementation of the third aspect, it is determined that the second reference data corresponds to The gain value includes: determining at least two second data among a plurality of second data, wherein the at least two second data include: the second data whose pitch angle is smaller than the pitch angle of the second reference data and the pitch angle larger than the first reference data The second data of the pitch angle of the two reference data; according to the gain values corresponding to at least two second data, a one-dimensional interpolation algorithm is used to determine the gain value of the second reference data.
结合第三方面或第三方面的第一种、第二种、第四种可能的实现方式中的任一种可能的实现方式,在第三方面的第五种可能的实现方式中,确定第三参考数据对应的增益值,包括:在多个第三数据中确定至少两个第三数据,其中,至少两个第三数据包括:俯仰角小于第三参考数据的俯仰角的第三数据和俯仰角大于第三参考数据的俯仰角的第三数据;根据至少两个第三数据对应的增益值,利用一维插值算法确定第三参考数据的增益值。In combination with the third aspect or any of the first, second, and fourth possible implementations of the third aspect, in the fifth possible implementation of the third aspect, determine that the first The gain value corresponding to the three reference data includes: determining at least two third data among a plurality of third data, wherein the at least two third data include: the third data whose pitch angle is smaller than the pitch angle of the third reference data and The third data whose pitch angle is greater than the pitch angle of the third reference data; according to the gain values corresponding to at least two third data, a one-dimensional interpolation algorithm is used to determine the gain value of the third reference data.
结合第三方面的第二种、第四种或第五种可能的实现方式,在第三方面的第六种可能的实现方式中,一维插值算法为一维最邻近插值法、线性插值法、三次样条插值法或分段三阶埃尔米特插值法。In combination with the second, fourth or fifth possible implementation of the third aspect, in the sixth possible implementation of the third aspect, the one-dimensional interpolation algorithm is one-dimensional nearest neighbor interpolation, linear interpolation , cubic spline interpolation or piecewise third-order Hermitian interpolation.
结合第三方面或第三方面的第一种至第六种可能的实现方式中的任一种可能的实现方式,在第三方面的第七种可能的实现方式中,二维插值算法为二维最邻近插值法、双线性内插值法、三次卷积法或拉格朗日插值法。In combination with the third aspect or any of the first to sixth possible implementations of the third aspect, in the seventh possible implementation of the third aspect, the two-dimensional interpolation algorithm is two dimensional nearest neighbor interpolation, bilinear interpolation, cubic convolution, or Lagrangian interpolation.
第四方面,提供了一种压缩数据的方法,该方法包括:从多个数据中获取目标数据对应的方位角、俯仰角和增益值,目标数据为天线三维方向图中增益值最大的点对应的数据;从多个数据中确定俯仰角与目标数据对应的俯仰角相等的多个第一数据、方位角与目标数据对应的方位角相等的多个第二数据和方位角与目标数据对应的方位角相差180°的多个第三数据;存储多个第一数据、多个第二数据和多个第三数据,以便于根据多个第一数据、多个第二数据和多个第三数据重构天线三维方向图。In the fourth aspect, a method for compressing data is provided, the method includes: obtaining the azimuth, elevation angle and gain value corresponding to the target data from a plurality of data, and the target data is corresponding to the point with the largest gain value in the antenna three-dimensional pattern diagram The data; From a plurality of data, determine a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the target data, a plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the target data, and a plurality of azimuth angles corresponding to the target data A plurality of third data whose azimuth angles differ by 180°; store a plurality of first data, a plurality of second data, and a plurality of third data, so that according to a plurality of first data, a plurality of second data and a plurality of third data The three-dimensional pattern of the antenna is reconstructed from the data.
在第四方面的第一种可能的实现方式中,多个第二数据包括:多个数据中所有方位角与目标数据对应的方位角相等的数据;和/或多个第三数据包括:多个数据中所有方位角与目标数据对应的方位角相差180°的数据。In a first possible implementation manner of the fourth aspect, the plurality of second data includes: data in which all azimuth angles in the plurality of data are equal to the azimuth angles corresponding to the target data; and/or the plurality of third data includes: a plurality of All the azimuth angles in the data are different from the azimuth angle corresponding to the target data by 180°.
结合第四方面或第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,多个第一数据包括:按照预设的数据间隔规则,从多个数据中选取的俯仰角与目标数据对应的俯仰角相等的多个数据。With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in the second possible implementation manner of the fourth aspect, the plurality of first data includes: according to a preset data interval rule, from a plurality of data Multiple data whose pitch angles are equal to the pitch angles corresponding to the target data.
结合第四方面或第四方面的第一种至第二种可能的实现方式中的任一种可能的实现方式,在第四方面的第三种可能的实现方式中,该方法还包括:读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;根据存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;根据第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。In combination with the fourth aspect or any of the first to second possible implementation manners of the fourth aspect, in the third possible implementation manner of the fourth aspect, the method further includes: reading Get the stored data, the stored data includes a plurality of first data whose pitch angle is the first pitch angle, a plurality of second data whose azimuth angle is the first azimuth angle, and a plurality of third data whose azimuth angle is the second azimuth angle , wherein the difference between the first azimuth angle and the second azimuth angle is 180°; according to the stored data, determine the gain values corresponding to the first reference data, the second reference data and the third reference data; wherein, the azimuth angle corresponding to the first reference data The azimuth angle corresponding to the reconstructed data is equal, and the pitch angle corresponding to the first reference data is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angle corresponding to the reconstructed data, and the pitch angle corresponding to the first reference data is The azimuth angle corresponding to the second reference data is the first azimuth angle, and the azimuth angle corresponding to the third reference data is the second azimuth angle; according to the gain values corresponding to the first reference data, the second reference data and the third reference data, using the two-dimensional The interpolation algorithm determines the gain value corresponding to the reconstructed data.
基于上述技术方案,本发明实施例的压缩和解压缩数据的方法和装置,通过存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,并根据这些数据利用插值算法重构天线三维方向图,能够减少存储数据的数量,并能准确地重构原始天线三维方向图,可以降低天线的存储成本。Based on the above-mentioned technical solution, the method and device for compressing and decompressing data in the embodiment of the present invention store a plurality of first data corresponding to the data with the largest pitch angle and the largest gain value, corresponding to the data with the largest azimuth angle and the largest gain value. A plurality of second data with the same azimuth angle and a plurality of third data with a 180° difference in azimuth angle corresponding to the data with the largest gain value, and using interpolation algorithm to reconstruct the antenna three-dimensional pattern according to these data, which can reduce storage The amount of data, and can accurately reconstruct the three-dimensional pattern of the original antenna, can reduce the storage cost of the antenna.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例中所需要使用的附图作简单地介绍,显而易见地,下面所描述的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings required in the embodiments of the present invention. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1是根据本发明实施例的解压缩数据的装置的示意性框图。Fig. 1 is a schematic block diagram of an apparatus for decompressing data according to an embodiment of the present invention.
图2是根据本发明实施例的压缩数据的装置的示意性框图。Fig. 2 is a schematic block diagram of an apparatus for compressing data according to an embodiment of the present invention.
图3是根据本发明另一实施例的解压缩数据的装置的示意性框图。Fig. 3 is a schematic block diagram of an apparatus for decompressing data according to another embodiment of the present invention.
图4是根据本发明另一实施例的压缩数据的装置的示意性框图。Fig. 4 is a schematic block diagram of an apparatus for compressing data according to another embodiment of the present invention.
图5是根据本发明实施例的解压缩数据的方法的示意性流程图。Fig. 5 is a schematic flowchart of a method for decompressing data according to an embodiment of the present invention.
图6是根据本发明实施例的存储的数据的示意图。FIG. 6 is a schematic diagram of stored data according to an embodiment of the present invention.
图7是根据本发明实施例的压缩数据的方法的示意性流程图。Fig. 7 is a schematic flowchart of a method for compressing data according to an embodiment of the present invention.
图8是根据本发明另一实施例的压缩数据的方法的示意性流程图。Fig. 8 is a schematic flowchart of a method for compressing data according to another embodiment of the present invention.
图9是根据本发明实施例的压缩数据和解压缩数据的方法的示意图。FIG. 9 is a schematic diagram of a method for compressing data and decompressing data according to an embodiment of the present invention.
图10是根据本发明另一实施例的压缩数据和解压缩数据的方法的示意图。Fig. 10 is a schematic diagram of a method for compressing data and decompressing data according to another embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts shall fall within the protection scope of the present invention.
如图1所示,本发明实施例的解压缩数据的装置100包括:As shown in Figure 1, the device 100 for decompressing data in the embodiment of the present invention includes:
读取模块110,用于读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;The reading module 110 is used to read stored data, the stored data includes a plurality of first data whose pitch angle is a first pitch angle, a plurality of second data whose azimuth angle is a first azimuth angle, and a plurality of second data whose azimuth angle is a second azimuth angle. A plurality of third data of azimuth angles, wherein the difference between the first azimuth angle and the second azimuth angle is 180°;
第一确定模块120,用于根据读取模块110读取的存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;The first determination module 120 is used to determine the gain values corresponding to the first reference data, the second reference data and the third reference data according to the stored data read by the reading module 110; wherein, the azimuth corresponding to the first reference data The azimuth angle corresponding to the reconstructed data is equal, and the pitch angle corresponding to the first reference data is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angle corresponding to the reconstructed data, and the pitch angle corresponding to the first reference data is The azimuth corresponding to the second reference data is the first azimuth, and the azimuth corresponding to the third reference data is the second azimuth;
第二确定模块130,用于根据第一确定模块120确定的第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。The second determination module 130 is configured to determine the gain value corresponding to the reconstructed data by using a two-dimensional interpolation algorithm according to the gain values corresponding to the first reference data, the second reference data and the third reference data determined by the first determination module 120 .
因此,本发明实施例的解压缩数据的装置,通过根据存储的数据,利用插值算法重构天线三维方向图,能够使用少量的数据准确地重构原始天线三维方向图,可以降低天线的存储成本。Therefore, the device for decompressing data in the embodiment of the present invention can reconstruct the original antenna three-dimensional pattern accurately with a small amount of data by using the interpolation algorithm to reconstruct the antenna three-dimensional pattern according to the stored data, and can reduce the storage cost of the antenna .
可选地,作为一个实施例,第一确定模块120具体用于:Optionally, as an embodiment, the first determining module 120 is specifically configured to:
在多个第一数据中确定第一参考数据,并确定第一参考数据对应的增益值。The first reference data is determined from the plurality of first data, and the gain value corresponding to the first reference data is determined.
可选地,作为一个实施例,第一确定模块120具体用于:Optionally, as an embodiment, the first determining module 120 is specifically configured to:
在多个第一数据中确定至少两个第一数据,其中,至少两个第一数据包括:方位角小于第一参考数据的方位角的第一数据和方位角大于第一参考数据的方位角的第一数据;Determine at least two first data among the plurality of first data, wherein the at least two first data include: first data with an azimuth angle smaller than the azimuth angle of the first reference data and azimuth angle with an azimuth angle larger than the first reference data the first data of
根据至少两个第一数据对应的增益值,利用一维插值算法确定第一参考数据的增益值。According to the gain values corresponding to the at least two first data, a one-dimensional interpolation algorithm is used to determine the gain value of the first reference data.
可选地,作为一个实施例,第一确定模块120具体还用于:Optionally, as an embodiment, the first determining module 120 is specifically further configured to:
在多个第二数据中确定第二参考数据,并确定第二参考数据的增益值;和/或Determining second reference data among a plurality of second data, and determining a gain value of the second reference data; and/or
第一确定模块具体还用于:The first determination module is also specifically used for:
在多个第三数据中确定第三参考数据,并确定第三参考数据的增益值。Third reference data is determined among the plurality of third data, and a gain value of the third reference data is determined.
可选地,作为一个实施例,第一确定模块120具体还用于:Optionally, as an embodiment, the first determining module 120 is specifically further configured to:
在多个第二数据中确定至少两个第二数据,其中,至少两个第二数据包括:俯仰角小于第二参考数据的俯仰角的第二数据和俯仰角大于第二参考数据的俯仰角的第二数据;Determine at least two second data among a plurality of second data, wherein at least two second data include: second data whose pitch angle is smaller than the pitch angle of the second reference data and pitch angles whose pitch angle is larger than the second reference data the second data of
根据至少两个第二数据对应的增益值,利用一维插值算法确定第二参考数据的增益值。According to the gain values corresponding to at least two second data, a one-dimensional interpolation algorithm is used to determine the gain value of the second reference data.
可选地,作为一个实施例,第一确定模块120具体还用于:Optionally, as an embodiment, the first determining module 120 is specifically further configured to:
在多个第三数据中确定至少两个第三数据,其中,至少两个第三数据包括:俯仰角小于第三参考数据的俯仰角的第三数据和俯仰角大于第三参考数据的俯仰角的第三数据;Determine at least two third data among a plurality of third data, wherein at least two third data include: the third data whose pitch angle is smaller than the pitch angle of the third reference data and the pitch angle whose pitch angle is larger than the third reference data the third data of
根据至少两个第三数据对应的增益值,利用一维插值算法确定第三参考数据的增益值。According to the gain values corresponding to at least two third data, a one-dimensional interpolation algorithm is used to determine the gain value of the third reference data.
可选地,作为一个实施例,一维插值算法为一维最邻近插值法、线性插值法、三次样条插值法或分段三阶埃尔米特插值法。Optionally, as an embodiment, the one-dimensional interpolation algorithm is a one-dimensional nearest neighbor interpolation method, a linear interpolation method, a cubic spline interpolation method or a piecewise third-order Hermitian interpolation method.
可选地,作为一个实施例,二维插值算法为二维最邻近插值法、双线性内插值法、三次卷积法或拉格朗日插值法。Optionally, as an embodiment, the two-dimensional interpolation algorithm is a two-dimensional nearest neighbor interpolation method, a bilinear interpolation method, a cubic convolution method or a Lagrangian interpolation method.
应理解,在本发明实施例中,根据本发明实施例的解压缩数据的装置100可对应于根据本发明实施例的方法的执行主体,并且装置100中的各个模块的上述和其它操作和/或功能分别为了实现图5至图10中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that, in the embodiment of the present invention, the device 100 for decompressing data according to the embodiment of the present invention may correspond to the execution body of the method according to the embodiment of the present invention, and the above-mentioned and other operations and/or operations of each module in the device 100 Or the functions are respectively to realize the corresponding flow of each method in FIG. 5 to FIG. 10 , and for the sake of brevity, details are not repeated here.
因此,本发明实施例的解压缩数据的装置,通过根据存储的数据,利用插值算法重构天线三维方向图,能够使用少量的数据准确地重构原始天线三维方向图,可以降低天线的存储成本。Therefore, the device for decompressing data in the embodiment of the present invention can reconstruct the original antenna three-dimensional pattern accurately with a small amount of data by using the interpolation algorithm to reconstruct the antenna three-dimensional pattern according to the stored data, and can reduce the storage cost of the antenna .
如图2所示,本发明实施例的压缩数据的装置200包括:As shown in Figure 2, the device 200 for compressing data in the embodiment of the present invention includes:
获取模块210,用于从多个数据中获取目标数据对应的方位角、俯仰角和增益值,目标数据为天线三维方向图中增益值最大的点对应的数据;The obtaining module 210 is used to obtain the azimuth, pitch angle and gain value corresponding to the target data from a plurality of data, and the target data is the data corresponding to the point with the largest gain value in the antenna three-dimensional pattern;
第一确定模块220,用于从多个数据中确定俯仰角与获取模块获取的目标数据对应的俯仰角相等的多个第一数据、方位角与目标数据对应的方位角相等的多个第二数据和方位角与目标数据对应的方位角相差180°的多个第三数据;The first determining module 220 is configured to determine a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the target data acquired by the acquisition module, and a plurality of second data whose azimuth angles are equal to the azimuth angle corresponding to the target data from the plurality of data. A plurality of third data whose azimuth angle differs by 180° from the azimuth angle corresponding to the target data;
存储模块230,用于存储第一确定模块220确定的多个第一数据、多个第二数据和多个第三数据,以便于根据多个第一数据、多个第二数据和多个第三数据重构天线三维方向图。The storage module 230 is configured to store the plurality of first data, the plurality of second data and the plurality of third data determined by the first determining module 220, so as to store the plurality of first data, the plurality of second data and the plurality of third data Three-dimensional data reconstruction antenna 3D pattern.
因此,本发明实施例的压缩数据的装置,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,以用于重构天线三维方向图,可以减少所需的存储空间,能够降低天线的存储成本。Therefore, the device for compressing data in the embodiment of the present invention obtains the data corresponding to the point with the largest gain value in the original data, and only stores a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value. A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value are used to reconstruct the three-dimensional antenna The pattern can reduce the required storage space and reduce the storage cost of the antenna.
可选地,作为一个实施例,第一确定模块220确定的多个第二数据包括:Optionally, as an embodiment, the plurality of second data determined by the first determination module 220 includes:
多个数据中所有方位角与目标数据对应的方位角相等的数据;和/或Data in which all the azimuth angles in the plurality of data are equal to the azimuth angles corresponding to the target data; and/or
第一确定模块220确定的多个第三数据包括:多个数据中所有方位角与目标数据对应的方位角相差180°的数据。The plurality of third data determined by the first determining module 220 includes: data in which all azimuth angles in the plurality of data differ from the azimuth angle corresponding to the target data by 180°.
可选地,作为一个实施例,第一确定模块220确定的多个第一数据包括:Optionally, as an embodiment, the plurality of first data determined by the first determination module 220 includes:
按照预设的数据间隔规则,从多个数据中选取的俯仰角与目标数据对应的俯仰角相等的多个数据。According to the preset data interval rule, a plurality of data whose pitch angles are equal to the pitch angles corresponding to the target data are selected from the plurality of data.
可选地,作为一个实施例,装置200还包括:Optionally, as an embodiment, the device 200 further includes:
读取模块,用于读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;The reading module is used to read stored data, and the stored data includes a plurality of first data whose elevation angle is a first elevation angle, a plurality of second data whose azimuth angle is a first azimuth angle, and azimuth angles whose azimuth angle is a second azimuth A plurality of third data of the angle, wherein the difference between the first azimuth angle and the second azimuth angle is 180°;
第二确定模块,用于根据读取模块读取的存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;The second determining module is used to determine the gain values corresponding to the first reference data, the second reference data and the third reference data according to the stored data read by the reading module; wherein, the azimuth corresponding to the first reference data is related to the weight The azimuth angles corresponding to the structural data are equal, and the pitch angle corresponding to the first reference data is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angles corresponding to the reconstruction data, and the second reference data The azimuth corresponding to the data is the first azimuth, and the azimuth corresponding to the third reference data is the second azimuth;
第三确定模块,用于根据第二确定模块确定的第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。The third determination module is configured to determine the gain value corresponding to the reconstructed data by using a two-dimensional interpolation algorithm according to the gain values corresponding to the first reference data, the second reference data and the third reference data determined by the second determination module.
应理解,在本发明实施例中,根据本发明实施例的压缩数据的装置200可对应于根据本发明实施例的方法的执行主体,并且装置200中的各个模块的上述和其它操作和/或功能分别为了实现图5至图10中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that, in the embodiment of the present invention, the device 200 for compressing data according to the embodiment of the present invention may correspond to the execution body of the method according to the embodiment of the present invention, and the above-mentioned and other operations and/or The functions are respectively to realize the corresponding flow of each method in FIG. 5 to FIG. 10 , and for the sake of brevity, details are not repeated here.
因此,本发明实施例的压缩数据的装置,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,以用于重构天线三维方向图,可以减少所需的存储空间,能够降低天线的存储成本。Therefore, the device for compressing data in the embodiment of the present invention obtains the data corresponding to the point with the largest gain value in the original data, and only stores a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value. A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value are used to reconstruct the three-dimensional antenna The pattern can reduce the required storage space and reduce the storage cost of the antenna.
图3示出了根据本发明另一实施例的解压缩数据的装置300的示意性框图。如图3所示,该控制器300包括处理器310,存储器320和总线330。其中,处理器310和存储器320通过总线系统330相连,该存储器320用于存储指令,该处理器310用于执行该存储器320存储的指令。其中,该处理器310用于:Fig. 3 shows a schematic block diagram of an apparatus 300 for decompressing data according to another embodiment of the present invention. As shown in FIG. 3 , the controller 300 includes a processor 310 , a memory 320 and a bus 330 . Wherein, the processor 310 and the memory 320 are connected through a bus system 330 , the memory 320 is used for storing instructions, and the processor 310 is used for executing the instructions stored in the memory 320 . Wherein, the processor 310 is used for:
读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;Read the stored data, the stored data includes a plurality of first data whose pitch angle is the first pitch angle, a plurality of second data whose azimuth angle is the first azimuth angle, and a plurality of third data whose azimuth angle is the second azimuth angle. Data, wherein the difference between the first azimuth angle and the second azimuth angle is 180°;
根据存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;According to the stored data, determine the gain values corresponding to the first reference data, the second reference data and the third reference data; wherein, the azimuth angle corresponding to the first reference data is equal to the azimuth angle corresponding to the reconstructed data, and the first reference data The corresponding pitch angle is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angles corresponding to the reconstructed data, and the azimuth angle corresponding to the second reference data is the first azimuth angle, and the third reference data The azimuth corresponding to the reference data is the second azimuth;
根据第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。According to the gain values corresponding to the first reference data, the second reference data and the third reference data, a two-dimensional interpolation algorithm is used to determine the gain value corresponding to the reconstructed data.
因此,本发明实施例的解压缩数据的装置,通过根据存储的数据,利用插值算法重构天线三维方向图,能够使用少量的数据准确地重构原始天线三维方向图,可以降低天线的存储成本。Therefore, the device for decompressing data in the embodiment of the present invention can reconstruct the original antenna three-dimensional pattern accurately with a small amount of data by using the interpolation algorithm to reconstruct the antenna three-dimensional pattern according to the stored data, and can reduce the storage cost of the antenna .
应理解,在本发明实施例中,该处理器310可以是中央处理单元(CentralProcessing Unit,CPU),该处理器310还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 310 may be a central processing unit (Central Processing Unit, CPU), and the processor 310 may also be other general processors, digital signal processors (DSP), application specific integrated circuits ( ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
该存储器320可以包括只读存储器和随机存取存储器,并向处理器310提供指令和数据。存储器320的一部分还可以包括非易失性随机存取存储器。例如,存储器320还可以存储设备类型的信息。The memory 320 may include read-only memory and random-access memory, and provides instructions and data to the processor 310 . A portion of memory 320 may also include non-volatile random access memory. For example, memory 320 may also store device type information.
该总线系统330除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统330。In addition to the data bus, the bus system 330 may also include a power bus, a control bus, a status signal bus, and the like. However, for clarity of illustration, the various buses are labeled as bus system 330 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器310中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器320,处理器310读取存储器320中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 310 or instructions in the form of software. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 320, and the processor 310 reads the information in the memory 320, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
可选地,作为一个实施例,该处理器310确定第一参考数据对应的增益值,包括:Optionally, as an embodiment, the processor 310 determines the gain value corresponding to the first reference data, including:
在多个第一数据中确定第一参考数据,并确定第一参考数据对应的增益值。The first reference data is determined from the plurality of first data, and the gain value corresponding to the first reference data is determined.
可选地,作为一个实施例,该处理器310确定第一参考数据对应的增益值,包括:Optionally, as an embodiment, the processor 310 determines the gain value corresponding to the first reference data, including:
在多个第一数据中确定至少两个第一数据,其中,至少两个第一数据包括:方位角小于第一参考数据的方位角的第一数据和方位角大于第一参考数据的方位角的第一数据;Determine at least two first data among the plurality of first data, wherein the at least two first data include: first data with an azimuth angle smaller than the azimuth angle of the first reference data and azimuth angle with an azimuth angle larger than the first reference data the first data of
根据至少两个第一数据对应的增益值,利用一维插值算法确定第一参考数据的增益值。According to the gain values corresponding to the at least two first data, a one-dimensional interpolation algorithm is used to determine the gain value of the first reference data.
可选地,作为一个实施例,该处理器310确定第二参考数据对应的增益值,包括:Optionally, as an embodiment, the processor 310 determines the gain value corresponding to the second reference data, including:
在多个第二数据中确定第二参考数据,并确定第二参考数据的增益值;和/或Determining second reference data among a plurality of second data, and determining a gain value of the second reference data; and/or
确定第三参考数据对应的增益值,包括:Determine the gain value corresponding to the third reference data, including:
在多个第三数据中确定第三参考数据,并确定第三参考数据的增益值。Third reference data is determined among the plurality of third data, and a gain value of the third reference data is determined.
可选地,作为一个实施例,该处理器310确定第二参考数据对应的增益值,包括:Optionally, as an embodiment, the processor 310 determines the gain value corresponding to the second reference data, including:
在多个第二数据中确定至少两个第二数据,其中,至少两个第二数据包括:俯仰角小于第二参考数据的俯仰角的第二数据和俯仰角大于第二参考数据的俯仰角的第二数据;Determine at least two second data among a plurality of second data, wherein at least two second data include: second data whose pitch angle is smaller than the pitch angle of the second reference data and pitch angles whose pitch angle is greater than the second reference data the second data of
根据至少两个第二数据对应的增益值,利用一维插值算法确定第二参考数据的增益值。According to the gain values corresponding to at least two second data, a one-dimensional interpolation algorithm is used to determine the gain value of the second reference data.
可选地,作为一个实施例,该处理器310确定第三参考数据对应的增益值,包括:Optionally, as an embodiment, the processor 310 determines the gain value corresponding to the third reference data, including:
在多个第三数据中确定至少两个第三数据,其中,至少两个第三数据包括:俯仰角小于第三参考数据的俯仰角的第三数据和俯仰角大于第三参考数据的俯仰角的第三数据;Determine at least two third data among a plurality of third data, wherein at least two third data include: the third data whose pitch angle is smaller than the pitch angle of the third reference data and the pitch angle whose pitch angle is larger than the third reference data the third data of
根据至少两个第三数据对应的增益值,利用一维插值算法确定第三参考数据的增益值。According to the gain values corresponding to at least two third data, a one-dimensional interpolation algorithm is used to determine the gain value of the third reference data.
可选地,作为一个实施例,处理器310所利用的一维插值算法为一维最邻近插值法、线性插值法、三次样条插值法或分段三阶埃尔米特插值法。Optionally, as an embodiment, the one-dimensional interpolation algorithm used by the processor 310 is a one-dimensional nearest neighbor interpolation method, a linear interpolation method, a cubic spline interpolation method, or a piecewise third-order Hermitian interpolation method.
可选地,作为一个实施例,处理器310所利用的二维插值算法为二维最邻近插值法、双线性内插值法、三次卷积法或拉格朗日插值法。Optionally, as an embodiment, the two-dimensional interpolation algorithm used by the processor 310 is a two-dimensional nearest neighbor interpolation method, a bilinear interpolation method, a cubic convolution method, or a Lagrangian interpolation method.
还应理解,在本发明实施例中,根据本发明实施例的解压缩数据的装置300,可对应于根据本发明实施例的方法的执行主体,还可以对应于解压缩数据的装置100,并且该装置300中的各个模块的上述和其它操作和/或功能分别为了实现图5至图10中的各个方法的相应流程,为了简洁,在此不再赘述。It should also be understood that, in the embodiment of the present invention, the device 300 for decompressing data according to the embodiment of the present invention may correspond to the execution subject of the method according to the embodiment of the present invention, and may also correspond to the device 100 for decompressing data, and The above-mentioned and other operations and/or functions of each module in the apparatus 300 are respectively for realizing corresponding processes of each method in FIGS.
因此,本发明实施例的解压缩数据的装置,通过根据存储的数据,利用插值算法重构天线三维方向图,能够使用少量的数据准确地重构原始天线三维方向图,可以降低天线的存储成本。Therefore, the device for decompressing data in the embodiment of the present invention can reconstruct the original antenna three-dimensional pattern accurately with a small amount of data by using the interpolation algorithm to reconstruct the antenna three-dimensional pattern according to the stored data, and can reduce the storage cost of the antenna .
图4示出了根据本发明另一实施例的压缩数据的装置400的示意性框图。如图4所示,该控制器400包括处理器410,存储器420和总线430。其中,处理器410和存储器420通过总线系统430相连,该存储器420用于存储指令,该处理器410用于执行该存储器420存储的指令。其中,该处理器410用于:Fig. 4 shows a schematic block diagram of an apparatus 400 for compressing data according to another embodiment of the present invention. As shown in FIG. 4 , the controller 400 includes a processor 410 , a memory 420 and a bus 430 . Wherein, the processor 410 and the memory 420 are connected through a bus system 430 , the memory 420 is used for storing instructions, and the processor 410 is used for executing the instructions stored in the memory 420 . Wherein, the processor 410 is used for:
从多个数据中获取目标数据对应的方位角、俯仰角和增益值,目标数据为天线三维方向图中增益值最大的点对应的数据;Obtain the azimuth, elevation angle and gain value corresponding to the target data from multiple data, and the target data is the data corresponding to the point with the largest gain value in the antenna three-dimensional pattern;
从多个数据中确定俯仰角与目标数据对应的俯仰角相等的多个第一数据、方位角与目标数据对应的方位角相等的多个第二数据和方位角与目标数据对应的方位角相差180°的多个第三数据;From the plurality of data, determine a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the target data, a plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the target data, and a difference between the azimuth angle corresponding to the target data A plurality of third data of 180°;
存储器420用于:Memory 420 is used for:
存储多个第一数据、多个第二数据和多个第三数据,以便于根据多个第一数据、多个第二数据和多个第三数据重构天线三维方向图。Storing multiple first data, multiple second data and multiple third data, so as to reconstruct the three-dimensional pattern of the antenna according to the multiple first data, multiple second data and multiple third data.
因此,本发明实施例的压缩数据的装置,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,以用于重构天线三维方向图,可以减少所需的存储空间,能够降低天线的存储成本。Therefore, the device for compressing data in the embodiment of the present invention obtains the data corresponding to the point with the largest gain value in the original data, and only stores a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value. A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value are used to reconstruct the three-dimensional antenna The pattern can reduce the required storage space and reduce the storage cost of the antenna.
应理解,在本发明实施例中,该处理器410可以是中央处理单元(CentralProcessing Unit,CPU),该处理器410还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 410 may be a central processing unit (Central Processing Unit, CPU), and the processor 410 may also be other general processors, digital signal processors (DSP), application specific integrated circuits ( ASIC), off-the-shelf programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
该存储器420可以包括只读存储器和随机存取存储器,并向处理器410提供指令和数据。存储器420的一部分还可以包括非易失性随机存取存储器。例如,存储器420还可以存储设备类型的信息。The memory 420 may include read-only memory and random-access memory, and provides instructions and data to the processor 410 . A portion of memory 420 may also include non-volatile random access memory. For example, memory 420 may also store device type information.
该总线系统430除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统430。In addition to the data bus, the bus system 430 may also include a power bus, a control bus, a status signal bus, and the like. However, for clarity of illustration, the various buses are labeled as bus system 430 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器410中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器420,处理器410读取存储器420中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be implemented by an integrated logic circuit of hardware in the processor 410 or instructions in the form of software. The steps of the methods disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 420, and the processor 410 reads the information in the memory 420, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
可选地,作为一个实施例,处理器410确定的多个第二数据包括:Optionally, as an embodiment, the plurality of second data determined by the processor 410 includes:
多个数据中所有方位角与目标数据对应的方位角相等的数据;和/或Data in which all the azimuth angles in the plurality of data are equal to the azimuth angles corresponding to the target data; and/or
多个第三数据包括:多个数据中所有方位角与目标数据对应的方位角相差180°的数据。The plurality of third data includes: all azimuth angles in the plurality of data differ from the azimuth angle corresponding to the target data by 180°.
可选地,作为一个实施例,处理器410确定的多个第一数据包括:Optionally, as an embodiment, the plurality of first data determined by the processor 410 includes:
按照预设的数据间隔规则,从多个数据中选取的俯仰角与目标数据对应的俯仰角相等的多个数据。According to the preset data interval rule, a plurality of data whose pitch angles are equal to the pitch angles corresponding to the target data are selected from the plurality of data.
可选地,作为一个实施例,处理器410还用于:Optionally, as an embodiment, the processor 410 is further configured to:
读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;Read the stored data, the stored data includes a plurality of first data whose pitch angle is the first pitch angle, a plurality of second data whose azimuth angle is the first azimuth angle, and a plurality of third data whose azimuth angle is the second azimuth angle. Data, wherein the difference between the first azimuth angle and the second azimuth angle is 180°;
根据存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;According to the stored data, determine the gain values corresponding to the first reference data, the second reference data and the third reference data; wherein, the azimuth angle corresponding to the first reference data is equal to the azimuth angle corresponding to the reconstructed data, and the first reference data The corresponding pitch angle is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angles corresponding to the reconstructed data, and the azimuth angle corresponding to the second reference data is the first azimuth angle, and the third reference data The azimuth corresponding to the reference data is the second azimuth;
根据第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。According to the gain values corresponding to the first reference data, the second reference data and the third reference data, a two-dimensional interpolation algorithm is used to determine the gain value corresponding to the reconstructed data.
还应理解,在本发明实施例中,根据本发明实施例的压缩数据的装置400,可对应于根据本发明实施例的方法的执行主体,还可以对应于压缩数据的装置200,并且该装置400中的各个模块的上述和其它操作和/或功能分别为了实现图5至图10中的各个方法的相应流程,为了简洁,在此不再赘述。It should also be understood that, in the embodiment of the present invention, the device 400 for compressing data according to the embodiment of the present invention may correspond to the execution subject of the method according to the embodiment of the present invention, and may also correspond to the device 200 for compressing data, and the device The above-mentioned and other operations and/or functions of each module in 400 are respectively for realizing the corresponding flow of each method in FIG. 5 to FIG. 10 , and for the sake of brevity, details are not repeated here.
因此,本发明实施例的压缩数据的装置,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,以用于重构天线三维方向图,可以减少所需的存储空间,能够降低天线的存储成本。Therefore, the device for compressing data in the embodiment of the present invention obtains the data corresponding to the point with the largest gain value in the original data, and only stores a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value. A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value are used to reconstruct the three-dimensional antenna The pattern can reduce the required storage space and reduce the storage cost of the antenna.
上文中结合图1至图4,描述了根据本发明实施例的压缩数据的装置和解压缩数据的装置,下面将结合图5至图10,详细描述根据本发明实施例的压缩数据的方法和解压缩数据的方法。The device for compressing data and the device for decompressing data according to an embodiment of the present invention are described above in conjunction with FIG. 1 to FIG. 4 . The method for compressing data and the device for decompressing data according to an embodiment of the present invention will be described in detail below in conjunction with FIG. 5 to FIG. 10 data method.
图5示出了根据本发明实施例的解压缩数据的方法500的示意性流程图,该方法500可以由解压缩数据的装置执行。如图5所示,方法500包括:Fig. 5 shows a schematic flowchart of a method 500 for decompressing data according to an embodiment of the present invention, and the method 500 may be executed by an apparatus for decompressing data. As shown in FIG. 5, method 500 includes:
S510,读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;S510, read the stored data, the stored data includes a plurality of first data whose pitch angle is the first pitch angle, a plurality of second data whose azimuth angle is the first azimuth angle, and a plurality of data whose azimuth angle is the second azimuth angle The third data, wherein the difference between the first azimuth angle and the second azimuth angle is 180°;
S520,根据存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;S520. According to the stored data, determine the gain values corresponding to the first reference data, the second reference data, and the third reference data; wherein, the azimuth angle corresponding to the first reference data is equal to the azimuth angle corresponding to the reconstructed data, and the first The pitch angle corresponding to the reference data is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angles corresponding to the reconstructed data, and the azimuth angle corresponding to the second reference data is the first azimuth angle, The azimuth corresponding to the third reference data is the second azimuth;
S530,根据第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。S530. According to the gain values corresponding to the first reference data, the second reference data, and the third reference data, use a two-dimensional interpolation algorithm to determine a gain value corresponding to the reconstructed data.
因此,本发明实施例的解压缩数据的方法,通过根据存储的数据,利用插值算法重构天线三维方向图,能够使用少量的数据准确地重构原始天线三维方向图,可以降低天线的存储成本。Therefore, the method for decompressing data in the embodiment of the present invention can use a small amount of data to accurately reconstruct the original antenna three-dimensional pattern by using the interpolation algorithm to reconstruct the antenna three-dimensional pattern according to the stored data, and can reduce the storage cost of the antenna .
在S510中,读取存储的数据,该存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°。原始天线三维方向图中通常包含了万余个数据,在这些数据中可以找到一个对应增益值最大点的数据,获取该数据对应的方位角、俯仰角。从多个数据中可以确定俯仰角与上述增益值最大点的数据对应的俯仰角相等的多个第一数据、方位角与上述增益值最大点的数据对应的方位角相等的多个第二数据、以及方位角与上述增益值最大点的数据对应的方位角相差180°的多个第三数据。如图6所示,这些数据对应于天线三维方向图中增益值最大点所在的水平剖面和垂直剖面上的点。以方位角以0°~360°取值,俯仰角以0°~180°取值为例,如果增益值最大点的数据对应的方位角为0°,俯仰角为90°,则这些存储的数据正好分别对应二维方向图的水平方向图中的点和垂直方向图中的点。In S510, the stored data is read, and the stored data includes a plurality of first data whose elevation angle is a first elevation angle, a plurality of second data whose azimuth angle is a first azimuth angle, and a plurality of azimuth angles whose azimuth angle is a second azimuth angle A plurality of third data of , wherein the difference between the first azimuth angle and the second azimuth angle is 180°. The original antenna three-dimensional pattern usually contains more than ten thousand pieces of data. In these data, one can find the data corresponding to the point with the maximum gain value, and obtain the corresponding azimuth and elevation angle of the data. From the plurality of data, it can be determined that a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data of the above-mentioned maximum gain value point, and a plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data of the above-mentioned gain value maximum point , and a plurality of third data whose azimuth angles are 180° different from the azimuth angles corresponding to the data at the point of maximum gain value. As shown in Figure 6, these data correspond to the points on the horizontal section and the vertical section where the maximum gain point in the three-dimensional pattern of the antenna is located. Take the value of the azimuth angle from 0° to 360° and the value of the elevation angle from 0° to 180° as an example. If the data corresponding to the point with the maximum gain value corresponds to the azimuth angle of 0° and the elevation angle of 90°, then these stored The data exactly correspond to points in the horizontal pattern and points in the vertical pattern of the two-dimensional pattern, respectively.
在S520中,确定用于计算重构数据的参考数据的增益值。具体而言,可以首先确定重构数据对应的方位角和俯仰角。在确定重构数据时,可以先对已有的存储的数据进行分析,以确定重构数据的精度。例如,分析存储的数据,当存储的数据对应的方位角是按照从0°开始,每1°选取一个数据;俯仰角也是按照从0°开始,每1°选取一个数据时,重构数据的方位角和俯仰角也选取整数度。In S520, a gain value of the reference data used for calculating the reconstructed data is determined. Specifically, the azimuth and elevation angles corresponding to the reconstructed data may be determined first. When determining the reconstructed data, the existing stored data may be analyzed first to determine the accuracy of the reconstructed data. For example, when analyzing the stored data, when the azimuth corresponding to the stored data starts from 0° and selects one data every 1°; the elevation angle also starts from 0° and selects one data every 1°, the reconstructed data The azimuth and elevation angles are also integer degrees.
可选地,作为一个实施例,确定第一参考数据对应的增益值时,可以在俯仰角为第一俯仰角的多个第一数据中确定第一参考数据,并确定第一参考数据对应的增益值,即计算重构数据所根据的第一参考数据是存储的数据中的一个。在这种情况下,可以直接采用存储的数据中对应的第一数据作为第一参考数据。例如,重构数据对应的方位角为20°,存储的数据中俯仰角为90°的多个第一数据中包含方位角为20°的数据,则将该方位角为20°俯仰角为90°的数据作为第一参考数据,以用于后续的插值计算。Optionally, as an embodiment, when determining the gain value corresponding to the first reference data, the first reference data may be determined from a plurality of first data whose pitch angle is the first pitch angle, and determine the gain value corresponding to the first reference data The gain value, ie the first reference data from which the reconstructed data is calculated, is one of the stored data. In this case, the corresponding first data in the stored data may be directly used as the first reference data. For example, the azimuth angle corresponding to the reconstructed data is 20°, and the plurality of first data whose elevation angle is 90° in the stored data contains data with an azimuth angle of 20°, then the azimuth angle is 20° and the elevation angle is 90°. ° as the first reference data for subsequent interpolation calculations.
应理解,对于俯仰角相等的多个数据而言,其方位角变化时,增益值的变化较为平缓。根据这一特点,本发明实施例可以在存储的第一数据中不包含符合条件的第一参考数据时,在多个第一数据中确定至少两个第一数据,其中,至少两个第一数据包括:方位角小于第一参考数据的方位角的第一数据和方位角大于第一参考数据的方位角的第一数据;根据至少两个第一数据对应的增益值,利用一维插值算法确定第一参考数据的增益值。例如,重构数据对应的方位角为20°,存储的数据中俯仰角为90°的多个第一数据中包含方位角为19°和21°的数据,但不包含方位角为20°的数据,则可以根据方位角为19°俯仰角为90°的数据对应的增益值和方位角为21°俯仰角为90°的数据对应的增益值,利用一维插值算法确定方位角为20°俯仰角为90°的数据对应的增益值。并且将方位角为20°俯仰角为90°的数据作为第一参考数据。确定方位角为20°俯仰角为90°的数据对应的增益值,以用于后续的插值计算。应理解,如果根据多于两个的第一数据对应的增益值,利用一维差值算法来确定第一参考数据对应的增益值,计算所得的第一参考数据对应的增益值的准确率可能会提高。对于从多个第一数据中选取的用于计算第一参考数据的数据个数,本发明实施例不作限定。It should be understood that, for multiple pieces of data with the same pitch angle, when the azimuth angle changes, the change of the gain value is relatively gentle. According to this feature, in the embodiment of the present invention, when the stored first data does not contain qualified first reference data, at least two first data can be determined among multiple first data, wherein at least two first The data includes: the first data whose azimuth angle is smaller than the azimuth angle of the first reference data and the first data whose azimuth angle is larger than the azimuth angle of the first reference data; according to the gain values corresponding to at least two first data, a one-dimensional interpolation algorithm is used A gain value for the first reference data is determined. For example, the azimuth angle corresponding to the reconstructed data is 20°, and the multiple first data with the elevation angle of 90° in the stored data contains the data with the azimuth angles of 19° and 21°, but does not include the data with the azimuth angle of 20°. According to the gain value corresponding to the data whose azimuth angle is 19° and the elevation angle is 90° and the gain value corresponding to the data whose azimuth angle is 21° and the elevation angle is 90°, a one-dimensional interpolation algorithm can be used to determine that the azimuth angle is 20° The gain value corresponding to the data whose pitch angle is 90°. And the data with an azimuth angle of 20° and an elevation angle of 90° is used as the first reference data. Determine the gain value corresponding to the data with an azimuth angle of 20° and an elevation angle of 90° for subsequent interpolation calculations. It should be understood that if a one-dimensional difference algorithm is used to determine the gain value corresponding to the first reference data based on more than two gain values corresponding to the first data, the accuracy rate of the calculated gain value corresponding to the first reference data may be will improve. The embodiment of the present invention does not limit the number of data selected from the plurality of first data to calculate the first reference data.
可选地,作为一个实施例,确定第二参考数据对应的增益值可以包括:在多个第二数据中确定第二参考数据,并确定第二参考数据的增益值;和/或确定第三参考数据对应的增益值可以包括:在多个第三数据中确定第三参考数据,并确定第三参考数据的增益值。例如,重构数据对应的俯仰角为80°,当存储的数据中俯仰角为80°的多个第二数据中包含方位角为0°的数据,则将该方位角为0°俯仰角为80°的数据作为第二参考数据。确定方位角为0°俯仰角为80°的数据对应的增益值,以用于后续的插值计算。又如,当存储的数据中俯仰角为80°的多个数据中包含方位角为180°的数据时,则将该方位角为180°俯仰角为80°的数据作为第三参考数据。确定方位角为180°俯仰角为80°的数据对应的增益值,以用于后续的插值计算。Optionally, as an embodiment, determining the gain value corresponding to the second reference data may include: determining the second reference data among multiple second data, and determining the gain value of the second reference data; and/or determining the third reference data The gain value corresponding to the reference data may include: determining the third reference data among the plurality of third data, and determining the gain value of the third reference data. For example, the elevation angle corresponding to the reconstructed data is 80°, and when a plurality of second data with an elevation angle of 80° in the stored data contains data with an azimuth angle of 0°, then the azimuth angle is 0° and the elevation angle is The data at 80° is used as the second reference data. Determine the gain value corresponding to the data whose azimuth angle is 0° and the elevation angle is 80°, so as to be used for subsequent interpolation calculations. For another example, when the stored data includes data with an azimuth angle of 180° among the data with an elevation angle of 80°, the data with an azimuth angle of 180° and an elevation angle of 80° is used as the third reference data. Determine the gain value corresponding to the data with an azimuth angle of 180° and an elevation angle of 80° for subsequent interpolation calculations.
可选地,作为一个实施例,确定第二参考数据对应的增益值可以包括:在多个第二数据中确定至少两个第二数据,其中,至少两个第二数据包括:俯仰角小于第二参考数据的俯仰角的第二数据和俯仰角大于第二参考数据的俯仰角的第二数据;根据至少两个第二数据对应的增益值,利用一维插值算法确定第二参考数据的增益值。例如,重构数据对应的俯仰角为80°,存储的数据中不包含俯仰角为80°的数据,但包含方位角为0°俯仰角为79°的数据和方位角为0°俯仰角为81°的数据,则可以根据方位角为0°俯仰角为79°的数据对应的增益值和方位角为0°俯仰角为81°的数据对应的增益值,利用一维插值算法确定方位角为0°俯仰角为80°的数据对应的增益值,并将方位角为0°俯仰角为80°的数据作为第二参考数据。应理解,如果根据多于两个的第二数据对应的增益值,利用一维差值算法来确定第二参考数据对应的增益值,计算所得的第二参考数据对应的增益值的准确率可能会提高。对于从多个第二数据中选取的用于计算第二参考数据的数据个数,本发明实施例不作限定。Optionally, as an embodiment, determining the gain value corresponding to the second reference data may include: determining at least two second data among multiple second data, wherein the at least two second data include: the pitch angle is smaller than the first The second data of the pitch angle of the two reference data and the second data of the pitch angle greater than the pitch angle of the second reference data; according to the gain values corresponding to at least two second data, a one-dimensional interpolation algorithm is used to determine the gain of the second reference data value. For example, the corresponding elevation angle of the reconstructed data is 80°, the stored data does not contain the data of the elevation angle of 80°, but contains the data of the azimuth angle of 0° and the elevation angle of 79° and the azimuth angle of 0° and the elevation angle of For the data of 81°, the azimuth angle can be determined by one-dimensional interpolation algorithm according to the gain value corresponding to the data whose azimuth angle is 0° and the elevation angle is 79° and the gain value corresponding to the data whose azimuth angle is 0° and the elevation angle is 81° is the gain value corresponding to the data whose elevation angle is 0° and 80°, and the data whose azimuth angle is 0° and the elevation angle is 80° is used as the second reference data. It should be understood that if a one-dimensional difference algorithm is used to determine the gain value corresponding to the second reference data based on more than two gain values corresponding to the second data, the accuracy of the calculated gain value corresponding to the second reference data may be will improve. The embodiment of the present invention does not limit the number of data selected from multiple second data to calculate the second reference data.
可选地,作为一个实施例,确定第三参考数据对应的增益值可以包括:在多个第三数据中确定至少两个第三数据,其中,至少两个第三数据包括:俯仰角小于第三参考数据的俯仰角的第三数据和俯仰角大于第三参考数据的俯仰角的第三数据;根据至少两个第三数据对应的增益值,利用一维插值算法确定第三参考数据的增益值。例如,重构数据对应的俯仰角为80°,存储的数据中不包含俯仰角为80°的数据,但包含方位角为180°俯仰角为79°的数据和方位角为180°俯仰角为81°的数据,则可以根据方位角为180°俯仰角为79°的数据对应的增益值和方位角为180°俯仰角为81°的数据对应的增益值,利用一维插值算法确定方位角为180°俯仰角为80°的数据对应的增益值,并将方位角为180°俯仰角为80°的数据作为第三参考数据。应理解,如果根据多于两个的第三数据对应的增益值,利用一维差值算法来确定第三参考数据对应的增益值,计算所得的第三参考数据对应的增益值的准确率可能会提高。对于从多个第三数据中选取的用于计算第三参考数据的数据个数,本发明实施例不作限定。Optionally, as an embodiment, determining the gain value corresponding to the third reference data may include: determining at least two third data among multiple third data, wherein the at least two third data include: the pitch angle is smaller than the first The third data of the pitch angle of the three reference data and the third data of which the pitch angle is greater than the pitch angle of the third reference data; according to the gain values corresponding to at least two third data, a one-dimensional interpolation algorithm is used to determine the gain of the third reference data value. For example, the reconstructed data corresponds to a pitch angle of 80°, and the stored data does not contain data with a pitch angle of 80°, but contains data with an azimuth angle of 180° and a pitch angle of 79° and azimuth angles of 180° and a pitch angle of For the data of 81°, the azimuth angle can be determined by one-dimensional interpolation algorithm according to the gain value corresponding to the data whose azimuth angle is 180° and the elevation angle is 79° and the gain value corresponding to the data whose azimuth angle is 180° and the elevation angle is 81° It is the gain value corresponding to the data whose elevation angle is 80° of 180°, and the data whose azimuth angle is 180° and whose elevation angle is 80° is used as the third reference data. It should be understood that if the one-dimensional difference algorithm is used to determine the gain value corresponding to the third reference data based on more than two gain values corresponding to the third data, the accuracy rate of the calculated gain value corresponding to the third reference data may be will improve. The embodiment of the present invention does not limit the number of data selected from multiple third data to calculate the third reference data.
应理解,本发明实施例中采用的一维插值算法可以是一维最邻近插值法、线性插值法、三次样条插值法或分段三阶埃尔米特插值法。除此之外,还可以采用其它插值公式,本发明实施例对此不作限定。It should be understood that the one-dimensional interpolation algorithm used in the embodiment of the present invention may be a one-dimensional nearest neighbor interpolation method, a linear interpolation method, a cubic spline interpolation method or a piecewise third-order Hermitian interpolation method. In addition, other interpolation formulas may also be used, which is not limited in this embodiment of the present invention.
还应理解,本发明实施例中采用的二维插值算法可以是二维最邻近插值法、双线性内插值法、三次卷积法或拉格朗日插值法。除此之外,还可以采用其它插值公式,本发明实施例对此不作限定。It should also be understood that the two-dimensional interpolation algorithm used in the embodiment of the present invention may be a two-dimensional nearest neighbor interpolation method, a bilinear interpolation method, a cubic convolution method or a Lagrangian interpolation method. In addition, other interpolation formulas may also be used, which is not limited in this embodiment of the present invention.
因此,本发明实施例的解压缩数据的方法,通过根据存储的数据,利用插值算法重构天线三维方向图,能够使用少量的数据准确地重构原始天线三维方向图,可以降低天线的存储成本。Therefore, the method for decompressing data in the embodiment of the present invention can use a small amount of data to accurately reconstruct the original antenna three-dimensional pattern by using the interpolation algorithm to reconstruct the antenna three-dimensional pattern according to the stored data, and can reduce the storage cost of the antenna .
图7示出了根据本发明实施例的压缩数据的方法600的示意性流程图,该方法600可以由压缩数据的装置执行。如图7所示,方法600包括:Fig. 7 shows a schematic flowchart of a method 600 for compressing data according to an embodiment of the present invention, and the method 600 can be executed by an apparatus for compressing data. As shown in FIG. 7, method 600 includes:
S610,从多个数据中获取目标数据对应的方位角、俯仰角和增益值,目标数据为天线三维方向图中增益值最大的点对应的数据;S610, acquiring the azimuth angle, elevation angle and gain value corresponding to the target data from multiple data, where the target data is the data corresponding to the point with the largest gain value in the antenna three-dimensional pattern;
S620,从多个数据中确定俯仰角与目标数据对应的俯仰角相等的多个第一数据、方位角与目标数据对应的方位角相等的多个第二数据和方位角与目标数据对应的方位角相差180°的多个第三数据;S620, determining a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the target data, a plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the target data, and azimuth corresponding to the target data from the plurality of data A plurality of third data whose angles differ by 180°;
S630,存储多个第一数据、多个第二数据和多个第三数据,以便于根据多个第一数据、多个第二数据和多个第三数据重构天线三维方向图。S630. Store a plurality of first data, a plurality of second data, and a plurality of third data, so as to reconstruct a three-dimensional pattern of the antenna according to the plurality of first data, the plurality of second data, and the plurality of third data.
因此,本发明实施例的压缩数据的方法,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,以用于重构天线三维方向图,可以减少所需的存储空间,能够降低天线的存储成本。Therefore, in the method for compressing data in the embodiment of the present invention, by obtaining the data corresponding to the point with the largest gain value in the original data, only a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value are stored when storing A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value are used to reconstruct the three-dimensional antenna The pattern can reduce the required storage space and reduce the storage cost of the antenna.
应理解,对于各种天线三维方向图,包括特殊形状的三维方向图,例如,心形三维方向图,马鞍形三维方向图等,均可以找到一个增益值最大的点,该增益值最大的点对应的数据即为目标数据。由该增益值最大的点可以确定经过该点的水平剖面和垂直剖面的点的数据。以一个方位角以0°~360°取值,俯仰角以0°~180°取值为例,如果增益值最大的点的数据对应的方位角为0°俯仰角为90°,则可以确定分别对应二维方向图的水平方向图中的点和垂直方向图中的点作为存储的数据。这些数据的数量只占原始数据数量的1.11%,压缩效果非常显著,仅存储这些具有特定方位角和特定俯仰角的数据,可以大量节省存储空间。It should be understood that for various antenna three-dimensional patterns, including special-shaped three-dimensional pattern, for example, a heart-shaped three-dimensional pattern, a saddle-shaped three-dimensional pattern, etc., a point with a maximum gain value can be found, and the point with the maximum gain value The corresponding data is the target data. From the point with the largest gain value, the data of the points on the horizontal section and vertical section passing through this point can be determined. Take the value of azimuth angle from 0° to 360° and the value of pitch angle from 0° to 180° as an example. If the data of the point with the largest gain value corresponds to the azimuth angle of 0° and the pitch angle of 90°, it can be determined Points in the horizontal direction diagram and points in the vertical direction diagram respectively corresponding to the two-dimensional direction diagram are used as stored data. The amount of these data accounts for only 1.11% of the original data amount, and the compression effect is very significant. Only storing these data with specific azimuth angles and specific elevation angles can save a lot of storage space.
可选地,作为一个实施例,对于方位角相等的多个数据而言,其俯仰角变化时,增益值的变化较为剧烈,因此,在这一维进行压缩数据时,数据可以选得尽量密集。相应地,方法600中的多个第二数据包括多个数据中所有方位角与目标数据对应的方位角相等的数据;和/或多个第三数据包括多个数据中所有方位角与目标数据对应的方位角相差180°的数据。应理解,第二数据和第三数据也可以按照预设的数据间隔规则选取,本发明实施例对此不作限定。Optionally, as an example, for a plurality of data with the same azimuth angle, when the elevation angle changes, the change of the gain value is more severe, therefore, when compressing data in this dimension, the data can be selected as dense as possible . Correspondingly, the plurality of second data in method 600 includes data in which all azimuth angles in the plurality of data are equal to the azimuth angles corresponding to the target data; and/or the plurality of third data includes all azimuth angles in the plurality of data that are equal to the target data The corresponding azimuth angles differ by 180°. It should be understood that the second data and the third data may also be selected according to a preset data interval rule, which is not limited in this embodiment of the present invention.
可选地,作为另一个实施例,对于俯仰角相等的多个数据而言,其方位角变化时,增益值的变化较为平缓。因此,在这一维进行压缩数据时,数据可以适当选得稀疏。相应地,第一数据可以是按照预设的数据间隔规则,从多个数据中选取的俯仰角与目标数据对应的俯仰角相等的多个数据。例如,原始数据在方向角一维按照每1°取值,则在选取第一数据点时可以按1°间隔取值,也可以按照2°或3°等间隔取值,本发明实施例对此不作限定。Optionally, as another embodiment, for multiple pieces of data with the same pitch angle, when the azimuth angle changes, the change of the gain value is relatively gentle. Therefore, when compressing data in this dimension, the data can be properly selected to be sparse. Correspondingly, the first data may be a plurality of data in which the pitch angle selected from the multiple data is equal to the pitch angle corresponding to the target data according to a preset data interval rule. For example, if the original data is valued at every 1° in the direction angle dimension, then when selecting the first data point, the value can be taken at intervals of 1°, or can be taken at equal intervals of 2° or 3°. This is not limited.
可选地,作为一个实施例,可以根据存储的数据,通过插值算法获得多个重构数据,利用这些重构数据重构天线三维方向图。相应地,如图8所示,方法600还包括:Optionally, as an embodiment, a plurality of reconstruction data may be obtained through an interpolation algorithm according to the stored data, and the three-dimensional pattern of the antenna may be reconstructed by using the reconstruction data. Correspondingly, as shown in FIG. 8, the method 600 further includes:
S640,读取存储的数据,存储的数据包括俯仰角为第一俯仰角的多个第一数据、方位角为第一方位角的多个第二数据和方位角为第二方位角的多个第三数据,其中第一方位角与第二方位角相差180°;S640. Read the stored data. The stored data includes a plurality of first data whose pitch angle is the first pitch angle, a plurality of second data whose azimuth angle is the first azimuth angle, and a plurality of data whose azimuth angle is the second azimuth angle. The third data, wherein the difference between the first azimuth angle and the second azimuth angle is 180°;
S650,根据存储的数据,确定第一参考数据、第二参考数据和第三参考数据对应的增益值;其中,第一参考数据对应的方位角与重构数据对应的方位角相等,并且第一参考数据对应的俯仰角为第一俯仰角;第二参考数据和第三参考数据对应的俯仰角与重构数据对应的俯仰角相等,并且第二参考数据对应的方位角为第一方位角,第三参考数据对应的方位角为第二方位角;S650, according to the stored data, determine the gain values corresponding to the first reference data, the second reference data, and the third reference data; wherein, the azimuth angle corresponding to the first reference data is equal to the azimuth angle corresponding to the reconstructed data, and the first The pitch angle corresponding to the reference data is the first pitch angle; the pitch angles corresponding to the second reference data and the third reference data are equal to the pitch angles corresponding to the reconstructed data, and the azimuth angle corresponding to the second reference data is the first azimuth angle, The azimuth corresponding to the third reference data is the second azimuth;
S660,根据第一参考数据、第二参考数据和第三参考数据对应的增益值,利用二维插值算法确定重构数据对应的增益值。S660. According to the gain values corresponding to the first reference data, the second reference data, and the third reference data, use a two-dimensional interpolation algorithm to determine a gain value corresponding to the reconstructed data.
因此,本发明实施例的压缩数据的方法,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,以用于重构天线三维方向图,可以减少所需的存储空间,能够降低天线的存储成本。Therefore, in the method for compressing data in the embodiment of the present invention, by obtaining the data corresponding to the point with the largest gain value in the original data, only a plurality of first data whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value are stored when storing A plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value are used to reconstruct the three-dimensional antenna The pattern can reduce the required storage space and reduce the storage cost of the antenna.
上文中结合图5至图8,分别描述了压缩数据和解压缩数据的方法。下面将结合图9和图10,以具体例子对本发明实施例的压缩数据和解压缩数据的方法做更详细的说明。The methods for compressing data and decompressing data are respectively described above with reference to FIG. 5 to FIG. 8 . The method for compressing data and decompressing data according to the embodiment of the present invention will be described in more detail below with reference to FIG. 9 and FIG. 10 by using specific examples.
如图9所示,以一个方位角以0°~360°范围取值,俯仰角以0°~180°范围取值为例,将待压缩的天线三维方向图的数据在一张二维表格中表示出来,各行对应不同的俯仰角,各列对应不同的方位角,每一方位角和每一俯仰角对应的方格中填充对应的增益值。待压缩的天线三维方向图的数据在方位角一维上按照从0°开始,每1°取值,每一行共有360个数据;在俯仰角一维上也按照从0°开始,每1°取值,每一列共有181个数据。因此,待压缩的天线三维方向图中共有181×360=65160个数据。As shown in Figure 9, taking an azimuth angle in the range of 0° to 360° and an elevation angle in the range of 0° to 180° as an example, the data of the three-dimensional pattern of the antenna to be compressed is expressed in a two-dimensional table Come out, each row corresponds to a different pitch angle, and each column corresponds to a different azimuth angle, and the corresponding gain value is filled in the square corresponding to each azimuth angle and each pitch angle. The data of the three-dimensional pattern of the antenna to be compressed starts from 0° in the azimuth one-dimensional, and the value is taken every 1°, and there are 360 data in each row; value, each column has a total of 181 data. Therefore, there are 181×360=65160 data in the antenna three-dimensional pattern to be compressed.
在压缩数据时,从65160个数据中选取出增益值最大的数据。例如,如图9所示,该数据为A,对应的方位角为0°俯仰角为90°。将所有方位角为0°的数据提取出来,共181个;将所有方位角为180°的数据提取出来,共181个;将所有俯仰角为90°的数据提取出来,共360个,除去重复的数据,共720个数据。这720个数据可以作为压缩数据存储起来,所需的存储空间只占压缩之前所需存储空间的1.1%,压缩效果显著。可选地,还可以将增益值最大的数据对应的方位角0°和俯仰角90°存储起来,以方便解压缩数据时使用。应理解,该方位角和俯仰角可以通过存储的数据推算得到,因而该方位角和俯仰角也可以不存储,本发明实施例对此不作限定。When compressing data, select the data with the largest gain value from the 65160 data. For example, as shown in FIG. 9 , the data is A, and the corresponding azimuth angle is 0° and the elevation angle is 90°. Extract all data with an azimuth angle of 0°, a total of 181; extract all data with an azimuth angle of 180°, a total of 181; extract all data with an elevation angle of 90°, a total of 360, remove duplicates data, a total of 720 data. These 720 pieces of data can be stored as compressed data, and the required storage space is only 1.1% of the required storage space before compression, and the compression effect is remarkable. Optionally, the azimuth angle 0° and the elevation angle 90° corresponding to the data with the largest gain value may also be stored for convenient use when decompressing the data. It should be understood that the azimuth angle and the elevation angle may be calculated from stored data, and thus the azimuth angle and the elevation angle may not be stored, which is not limited in this embodiment of the present invention.
解压缩数据时,首先读取存储的数据,形象地,如果把存储的数据依旧填充在图9所示的表格中,则存储的数据可以填充成为图9中阴影部分。而后确定待重构的数据,例如,图9中所示的重构数据B。重构数据B对应的方位角为177°俯仰角为88°。可知在存储的数据中包括方位角为177°俯仰角为90°的数据,还包括方位角为0°俯仰角为88°的数据及方位角为180°俯仰角为88°的数据。根据177°俯仰角为90°的数据、方位角为0°俯仰角为88°的数据及方位角为180°俯仰角为88°的数据分别所对应的增益值,利用二维插值算法,可以得到重构数据B对应的增益值。类似地,可以得到图9中其他重构数据,根据这些重构数据和存储的数据,可以重构天线三维方向图。When decompressing data, the stored data is first read. Visually, if the stored data is still filled in the table shown in FIG. 9 , the stored data can be filled into the shaded part in FIG. 9 . Then determine the data to be reconstructed, for example, the reconstructed data B shown in FIG. 9 . The azimuth angle corresponding to reconstructed data B is 177° and the elevation angle is 88°. It can be seen that the stored data includes data with an azimuth angle of 177° and an elevation angle of 90°, data with an azimuth angle of 0° and an elevation angle of 88°, and data with an azimuth angle of 180° and an elevation angle of 88°. According to the gain values corresponding to the data with a pitch angle of 177° and a pitch angle of 90°, the data with an azimuth angle of 0° and a pitch angle of 88°, and the data with an azimuth angle of 180° and a pitch angle of 88°, the two-dimensional interpolation algorithm can be used to obtain Obtain the gain value corresponding to the reconstructed data B. Similarly, other reconstruction data in FIG. 9 can be obtained, and the three-dimensional pattern of the antenna can be reconstructed according to these reconstruction data and stored data.
图10是方位角以0°~360°范围取值,俯仰角以0°~180°范围取值的另一个例子。与图5所示的例子相同,待压缩的天线三维方向图中共有181×360=65160个数据。增益值最大的数据A对应的方位角为0°俯仰角为90°。Fig. 10 is another example where the azimuth angle takes a value in the range of 0°-360°, and the elevation angle takes a value in the range of 0°-180°. Same as the example shown in FIG. 5 , there are 181×360=65160 data in the antenna three-dimensional pattern to be compressed. The data A with the largest gain value corresponds to an azimuth angle of 0° and an elevation angle of 90°.
在压缩数据时,将所有方位角为0°的数据提取出来,共181个;将所有方位角为180°的数据提取出来,共181个;将俯仰角为90°的数据在方位角一维上按照每2°提取一个,即提取方位角为0°,2°,4°,……,356°,358°的数据,共180个,除去重复的数据,共540个数据。这540个数据可以作为压缩数据存储起来,所需的存储空间只占压缩之前所需存储空间的0.83%,压缩效果非常显著。可选地,还可以将增益值最大的数据对应的方位角0°和俯仰角90°存储起来,以方便解压缩数据时使用。应理解,该方位角和俯仰角可以通过存储的数据推算得到,因而该方位角和俯仰角也可以不存储,本发明实施例对此不作限定。When compressing the data, extract all the data with the azimuth angle of 0°, a total of 181; extract all the data with an azimuth angle of 180°, a total of 181; extract the data with an elevation angle of 90° in the azimuth one-dimensional One is extracted every 2°, that is, data with azimuth angles of 0°, 2°, 4°, ..., 356°, 358° are extracted, a total of 180 data, and duplicate data are removed, a total of 540 data. These 540 data can be stored as compressed data, and the required storage space is only 0.83% of the required storage space before compression, and the compression effect is very remarkable. Optionally, the azimuth angle 0° and the elevation angle 90° corresponding to the data with the largest gain value may also be stored for convenient use when decompressing the data. It should be understood that the azimuth angle and the elevation angle may be calculated from stored data, and thus the azimuth angle and the elevation angle may not be stored, which is not limited in this embodiment of the present invention.
解压缩数据时,首先读取存储的数据,形象地,如果把存储的数据依旧填充在图10所示的表格中,则存储的数据可以填充成为图10中阴影部分。而后确定待重构的数据,例如,图10中所示的重构数据C。重构数据C对应的方位角为178°俯仰角为88°。可知在存储的数据中包括方位角为178°俯仰角为90°的数据,还包括方位角为0°俯仰角为88°的数据及方位角为180°俯仰角为88°的数据。根据方位角为178°俯仰角为90°的数据、方位角为0°俯仰角为88°的数据及方位角为180°俯仰角为88°的数据分别所对应的增益值,利用二维插值算法,可以得到重构数据C对应的增益值。应理解,可以得到图10中其他与重构数据C类似的重构数据,对于这些重构数据,可以在存储的数据中找到对应的方位角和俯仰角符合条件的数据。根据这些重构数据和存储的数据,可以重构出天线三维方向图。When decompressing data, the stored data is first read. Visually, if the stored data is still filled in the table shown in Figure 10, the stored data can be filled into the shaded part in Figure 10. Then determine the data to be reconstructed, for example, the reconstructed data C shown in FIG. 10 . The azimuth angle corresponding to the reconstructed data C is 178° and the elevation angle is 88°. It can be seen that the stored data includes data with an azimuth angle of 178° and an elevation angle of 90°, data with an azimuth angle of 0° and an elevation angle of 88°, and data with an azimuth angle of 180° and an elevation angle of 88°. According to the gain values corresponding to the data with an azimuth angle of 178° and an elevation angle of 90°, the data with an azimuth angle of 0° and an elevation angle of 88°, and the data with an azimuth angle of 180° and an elevation angle of 88°, use two-dimensional interpolation Algorithm, the gain value corresponding to the reconstructed data C can be obtained. It should be understood that other reconstructed data similar to the reconstructed data C in FIG. 10 can be obtained, and for these reconstructed data, data corresponding to azimuth angles and elevation angles meeting the conditions can be found in the stored data. According to these reconstructed data and stored data, the three-dimensional pattern of the antenna can be reconstructed.
在本例子中,还可以进一步获得更多的重构数据,如图10所示的数据D。数据D的方位角为9°俯仰角为90°,可以根据存储的数据中的方位角为8°俯仰角为90°的数据和方位角为10°俯仰角为90°的数据分别对应的增益值,利用一维插值算法得到数据D对应的增益值。得到数据D的增益值后,可以将数据D作为参考数据,根据参考数据D对应的增益值、方位角为0°俯仰角为92°的数据对应的增益值和方位角为180°俯仰角为92°的数据对应的增益值,利用二维插值算法,可以得到重构数据E对应的增益值,其中重构数据E对应的方位角为9°俯仰角为92°。应理解,类似地还可以利用上述方法获得多个重构数据。根据重构数据C及多个与其类似的重构数据、数据D及多个与其类似的数据、重构数据E及多个与其类似的重构数据和存储的数据,可以重构出天线三维方向图。In this example, more reconstructed data, such as data D shown in FIG. 10 , can be further obtained. The azimuth angle of data D is 9° and the elevation angle is 90°. According to the data in the stored data, the azimuth angle is 8°, the elevation angle is 90°, and the azimuth angle is 10°, and the elevation angle is 90°. value, use the one-dimensional interpolation algorithm to obtain the gain value corresponding to the data D. After obtaining the gain value of the data D, the data D can be used as the reference data. According to the gain value corresponding to the reference data D, the gain value corresponding to the data whose azimuth angle is 0° and the elevation angle is 92° and the azimuth angle is 180° The elevation angle is The gain value corresponding to the 92° data can be obtained by using the two-dimensional interpolation algorithm to obtain the gain value corresponding to the reconstructed data E, where the azimuth angle corresponding to the reconstructed data E is 9° and the elevation angle is 92°. It should be understood that, similarly, a plurality of reconstructed data can also be obtained by using the above method. According to the reconstruction data C and multiple similar reconstruction data, data D and multiple similar data, reconstruction data E and multiple similar reconstruction data and stored data, the three-dimensional direction of the antenna can be reconstructed picture.
应理解,解压缩数据的过程可以是一个迭代过程,即可以利用一维插值算法确定参考数据,然后再根据参考数据确定重构数据,继而再根据当前已有的数据确定更多的参考数据和重构数据。It should be understood that the process of decompressing data may be an iterative process, that is, one-dimensional interpolation algorithm may be used to determine reference data, and then reconstructed data may be determined based on reference data, and then more reference data and data may be determined based on currently existing data. Restructure data.
因此,本发明实施例的压缩数据的方法和解压缩数据的方法,通过在原始数据中获取增益值最大的点对应的数据,存储时仅存储俯仰角与增益值最大的数据对应的俯仰角相等的多个第一数据、方位角与增益值最大的数据对应的方位角相等的多个第二数据和方位角与增益值最大的数据对应的方位角相差180°的多个第三数据,并根据存储的数据利用插值算法准确重构天线三维方向图,可以降低天线的存储成本。Therefore, in the method for compressing data and the method for decompressing data in the embodiment of the present invention, by obtaining the data corresponding to the point with the largest gain value in the original data, only the points whose pitch angle is equal to the pitch angle corresponding to the data with the largest gain value are stored during storage. A plurality of first data, a plurality of second data whose azimuth angle is equal to the azimuth angle corresponding to the data with the largest gain value, and a plurality of third data whose azimuth angle is 180° different from the azimuth angle corresponding to the data with the largest gain value, and according to The stored data uses an interpolation algorithm to accurately reconstruct the three-dimensional pattern of the antenna, which can reduce the storage cost of the antenna.
应理解,在本发明实施例中,“与X相应的Y”表示Y与X相关联,根据X可以确定Y。但还应理解,根据X确定Y并不意味着仅仅根据X确定Y,还可以根据X和/或其它信息确定Y。It should be understood that in the embodiment of the present invention, "Y corresponding to X" means that Y is associated with X, and Y can be determined according to X. However, it should also be understood that determining Y based on X does not mean determining Y only based on X, and that Y may also be determined based on X and/or other information.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the relationship between hardware and software Interchangeability. In the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of software products, and the computer software products are stored in a storage medium Among them, several instructions are included to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of various equivalents within the technical scope disclosed in the present invention. Modifications or replacements shall all fall within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (24)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410084617.6A CN103840837B (en) | 2014-03-07 | 2014-03-07 | Method and apparatus for compressing and decompressing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410084617.6A CN103840837B (en) | 2014-03-07 | 2014-03-07 | Method and apparatus for compressing and decompressing data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103840837A CN103840837A (en) | 2014-06-04 |
CN103840837B true CN103840837B (en) | 2017-04-05 |
Family
ID=50804035
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410084617.6A Active CN103840837B (en) | 2014-03-07 | 2014-03-07 | Method and apparatus for compressing and decompressing data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103840837B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107679304B (en) * | 2017-09-22 | 2021-05-11 | 北京神州泰岳软件股份有限公司 | Method and device for calculating gain of three-dimensional antenna |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102967859A (en) * | 2012-11-14 | 2013-03-13 | 电子科技大学 | Forward-looking scanning radar imaging method |
CN103487803A (en) * | 2013-09-25 | 2014-01-01 | 电子科技大学 | Airborne scanning radar imaging method in iteration compression mode |
-
2014
- 2014-03-07 CN CN201410084617.6A patent/CN103840837B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102967859A (en) * | 2012-11-14 | 2013-03-13 | 电子科技大学 | Forward-looking scanning radar imaging method |
CN103487803A (en) * | 2013-09-25 | 2014-01-01 | 电子科技大学 | Airborne scanning radar imaging method in iteration compression mode |
Non-Patent Citations (1)
Title |
---|
具有多波束选择性的方向图可重构天线研究;蔡晓涛;《中国优秀硕士学位论文全文数据库 信息科技辑 》;20120815(第08期);I136-7 * |
Also Published As
Publication number | Publication date |
---|---|
CN103840837A (en) | 2014-06-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111079801B (en) | Method, medium, terminal and device for quickly searching closest point based on point cloud matching | |
CN104778688A (en) | Method and device for registering point cloud data | |
CN105678757B (en) | A kind of ohject displacement measuring method | |
CN107194959A (en) | The method and apparatus that image registration is carried out based on section | |
CN105631939B (en) | A kind of three-dimensional point cloud distortion correction method and its system based on curvature filtering | |
CN108475414B (en) | Image processing method and device | |
WO2021057309A1 (en) | Tracked target determination method and related device | |
CN104605888A (en) | Ultrasonic signal time delay estimation method and system | |
CN113052954A (en) | Three-dimensional reconstruction method, device, terminal and storage medium based on line segment matching | |
Kim et al. | 2X super-resolution hardware using edge-orientation-based linear mapping for real-time 4K UHD 60 fps video applications | |
CN111768337A (en) | An image processing method, device and electronic device | |
CN108802669A (en) | Two-dimensional direction of arrival estimation method, two-dimensional direction of arrival estimation device and terminal | |
CN103530529B (en) | Magnanimity target characteristic data quickly reads and precise interpolation method | |
CN103840837B (en) | Method and apparatus for compressing and decompressing data | |
CN104657944A (en) | Compressed sensing remote sensing image reconstruction method based on reference image texture constraints | |
Ttofis et al. | A hardware-efficient architecture for accurate real-time disparity map estimation | |
CN109344750B (en) | A three-dimensional object recognition method for complex structures based on structure descriptors | |
CN115049782A (en) | Method and device for reconstructing dense three-dimensional model and readable storage medium | |
CN109001732A (en) | A kind of compressed sensing Step Frequency SAR imaging restoration and reconstruction method of optimization | |
CN108961161B (en) | Image data processing method, device and computer storage medium | |
CN116229005B (en) | Geodesic determining method and device for three-dimensional roadway model | |
CN117291042A (en) | Underwater three-dimensional temperature field reconstruction method and device based on peak surface feature consideration | |
CN117315142A (en) | Three-dimensional reconstruction method and device for commemorative coin, computer equipment and storage medium | |
US10475195B2 (en) | Automatic global non-rigid scan point registration | |
CN116486259A (en) | Method and device for extracting point target in remote sensing image |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |