The invention relates to data compression and more particularly to compression of a continuous flow of multidimensional data in real-time using vector quantization.
The next generation of satellite-based remote sensing instruments will produce an unprecedented volume of data. Imaging spectrometers, also known as hyper-spectral imaging devices, are prime examples. They collect image data in hundreds of spectral bands simultaneously from the near ultraviolet to the short wave infrared, and are capable of providing direct identification of surface materials.
Hyper-spectral data thus collected are typically in the form of a three-dimensional (3D) data cube. Each data cube has two dimensions in the spatial domain defining a rectangular plane of image pixels, and a third dimension in the spectral domain defining radiance levels of multiple spectral bands per each image pixel. The volume and complexity of hyper-spectral data present a significant challenge to conventional transmission and image analysis methods.
Data compression using Vector Quantisation (VQ) has received much attention because of its promise of high compression ratio and relatively simple structure. The VQ procedure is known to have two main steps: codebook generation and codevector matching. VQ can be viewed as mapping a large set of vectors into a small set of indexed codevectors forming a codebook. During encoding, a search through a codebook is performed to find a best codevector to express each input vector. The index or address of the selected codevector in the codebook is stored associated with the input vector or the input vector location. Given two systems having a same codebook, transmission of the index to a decoder over a communication channel from the first system to the second other system allows a decoder within the second other system to retrieve the same codevector from an identical codebook. This is a reconstructed approximation of the corresponding input vector. Compression is thus obtained by transmitting the index of the codevector rather the codevector itself.
In an article entitled “Lossy Compression of Hyperspectral Data Using Vector Quantization” by Michael Ryan and John Arnold in the journal Remote Sens. Environ., Elsevier Science Inc., New York, N.Y., 1997, Vol. 61, pp. 419-436, an overview of known general vector quantization techniques is presented. The article is herein incorporated by reference. In particular, the authors describe issues such as distortion measures and classification issues arising from lossy compression of hyper-spectral data using vector quantization.
However, implementation of a lossy compression method such as the VQ for real-time data compression of a continuous data flow is substantially complicated due to the fact that the complete hyper-spectral data cube is not available for compression. In real-time compression onboard a satellite hyper-spectral data corresponding to only a 2D focal plane frame sensed at a given moment from a swath target—across track line—on ground is available together with the hyper-spectral data corresponding to 2D focal plane frames sensed before. One—spatial-dimension of the 2D focal plane frame corresponds to a line of ground samples—called ground pixels, and another dimension of the 2D focal plane frame corresponds to a spectrum expansion of each ground pixel in wavelength. The spectrum expansion of a ground pixel is referred to as a “spectral vector”. A focal plane frame comprises a same number of spectral vectors and ground pixels. The second spatial dimension of the hyper-spectral data cube is obtained by sensing successive swath targets in along-track direction of the moving satellite producing successive 2D focal plane frames.
Therefore, it is only possible to apply the compression to successive 2D plane frames or successive regions comprising several 2D plane frames substantially inhibiting successful application of lossy compression such as VQ at high compression ratios. Application of conventional lossy compression methods on a region-by-region basis results in visible artifacts at the boundaries between the regions severely affecting image quality after decompression.
Furthermore, for real-time compression of a continuous hyper-spectral data flow, it is necessary to increase data throughput by using parallel operation of a plurality of compression engines. Therefore, a regional data cube is split into a plurality of smaller regional sub-cubes, referred to as vignettes herein. However, when a regional data cube is split into vignettes and each vignette is processed independently a spatial boundary is introduced between two adjacent vignettes resulting in visible artifacts after decompression.
Yet another problem in real-time data compression is data loss due to single bit errors. The data loss due to single bit errors is a critical issue in the development of space borne hyper-spectral imagers, especially when an onboard data compressor is used. Data are more sensitive to single bit errors after compression. If, for example, a single bit error occurs during transmission of an index map and/or codebook, the reconstructed data for the regional data cube are subject to error. If the index map and/or codebook are lost, then the complete regional data cube is lost.
It is, therefore, an object of the present invention to provide a method and system for compression of a continuous data flow having a high compression ratio and substantially reduced image artifacts.
It is further an object of the present invention to provide a method and system for compression of a continuous data flow having a high data throughput using parallel operating compression engines.
It is yet another object of the present invention to provide a method and system for data compression of a continuous data flow providing full redundancy for data reconstruction in case of single bit errors.
The various embodiments of the method and system for compressing a continuous data flow according to the invention are highly advantageous for numerous applications where it is necessary to process large data sets such as hyper-spectral data cubes in real-time. In a first embodiment of parallel processing using a plurality of compression engines is facilitated by separating a data cube into a plurality of clusters comprising similar spectral vectors such that no artificial spatial boundaries are introduced between separated portions thereby substantially improving image quality. Furthermore, the spectral vectors within a cluster are more easily compressed due to their similarity. In the second embodiment a predetermined number of 2D focal plane frames in a boundary area of a previous regional data cube close to a current regional data cube are included in a training set used for codevector training for the current region. Therefore, no artificial boundary occurs between the two adjacent regions when codevectors trained in this way are used for codebook generation and encoding of the spectral vectors of the current regional data cube. This process substantially reduces image artifacts between adjacent regions. A remedy for the single bit error problem is provided in the third embodiment set out below. Full redundancy of compressed data for a regional data cube is obtained by combining a previous regional data cube and the current regional data cube for codebook training. In order to obtain redundancy for the index map, the codebook is used to encode the current regional data cube as well as the previous regional data cube producing a baseline index map for the current regional data cube and a redundant index map for the previous regional data cube. Therefore, full redundancy for a regional data cube is provided allowing restoration of a regional data cube even if its codebook and/or index map are corrupted or lost due to single bit errors.
In accordance with a first aspect of the present invention there is provided, a method for compressing multi-dimensional data comprising the steps of:
In accordance with a second aspect of the present invention there is provided, a method for compressing a continuous data flow comprising the steps of:
In accordance with a third aspect of the present invention there is provided, a method for compressing a continuous data flow comprising the steps of:
In accordance with the present invention there is further provided, a storage medium having stored thereon at least an executable command for when executed resulting in performance of the steps of:
In accordance with the present invention there is further provided, a system for compressing multi-dimensional data comprising:
In accordance with the present invention there is yet further provided, a storage medium having stored thereon at least an executable command for when executed resulting in performance of the steps of:
In accordance with the present invention there is yet further provided, a system for compressing multi-dimensional data comprising:
a first port for receiving the multi-dimensional data;
electronic circuitry in data communication with the first port, the electronic circuitry for performing the steps of:
In another aspect, the present invention provides a method for compressing multi-dimensional data of a continuous data flow and for use with data processing and data transmission systems, the method comprising:
In yet another aspect, the present invention provides a method for compressing multi-dimensional data of a continuous data flow and for use with data processing and data transmission systems, the method comprising:
Exemplary embodiments of the invention will now be described in conjunction with the drawings in which:
a is a simplified block diagram of a system implementation of the method for compressing a continuous data flow in real-time according to the present invention; and,
b is a simplified block diagram of another system implementation of the method for compressing a continuous data flow in real-time according to the present invention.
Unlike in applications where a complete data cube is available for compression, in real-time compression onboard a satellite, hyper-spectral data corresponding to only a 2D focal plane frame sensed at a given moment from a swath target on ground is available together with the hyper-spectral data corresponding to 2D focal plane frames sensed before. One—spatial-dimension of the 2D focal plane frame corresponds to a line of ground pixels, and another dimension of the 2D focal plane frame corresponds to a spectral vector of each ground pixel. The second spatial dimension of the hyper-spectral data cube is obtained by sensing successive swath targets in along-track direction of the moving satellite producing successive 2D focal plane frames. A series of 2D focal plane frames collected in a given—short—period of time covers an instantaneous scene on the ground—referred to as a region—and is treated as a regional data cube for the purpose of dividing the continuous flow of 2D focal plane frames into complete data cubes of manageable size for compression. Data compression of a continuous data flow using a lossy compression method such as VQ is, therefore, performed by dividing the continuous data flow into regional data cubes. However, there will be a visible spatial boundary between two adjacent regions within an image after decompression, since the compression of each region is independent.
For compression of a continuous hyper-spectral data flow, it is advantageous to increase data throughput by using in parallel a plurality of compression engines. Therefore, a regional data cube is split into a plurality of smaller regional sub-cubes, referred to as vignettes herein. Each vignette is a rectangular sub-set of a regional scene containing all the spectral bands. For example,
Using an arrangement of multiple CEs for parallel processing of a plurality of vignettes, processing speed is substantially increased. For example, for a hyper-spectral sensor acquiring 1024 pixels in a line in across-track direction, a regional data cube with a length of 64 lines in along-track direction is divided into 16 vignettes with each vignette having a size of 64 pixels by 64 pixels. Using 16 compression engines to compress the 16 vignettes in parallel a throughput of 1000 Mbps is achieved.
However, when a regional data cube is split into vignettes and each vignette is processed independently, a spatial boundary is introduced between two adjacent vignettes in the region in both across-track and along-track directions resulting in visible artifacts after decompression.
In the following, various embodiments for compression of a continuous data flow are disclosed in connection with an example of compressing a continuous flow of hyper-spectral data onboard a satellite. From the description below, it will be apparent to those of skill in the art that the method for compressing a continuous data flow is not only applicable to satellite applications but in numerous other applications such as MRI imaging systems or CT scanners.
Lossy data compression based on the VQ process maps a large set of input vectors such as spectral vectors of a hyper-spectral data cube into a small set of indexed codevectors forming a codebook. Thus, the spectral vectors of the hyper-spectral data cube are replaced by a codebook comprising indexed codevectors and an index map allocating to each pixel a codevector based on its index, which are then transmitted. Using the codebook and the index map, it is possible to reconstruct a hyper-spectral data cube resembling the data cube before compression. Fidelity of the compression strongly depends on the codevectors forming the codebook. Therefore, codebook generation and, in particular, codevector training is a crucial step of the data compression process.
The steps of codebook generation and vector encoding of the various embodiments of the method for compressing a continuous data flow have been implemented using the Successive Approximation Multi-stage Vector Quantization (SAMVQ) technique disclosed by the inventors in U.S. patent application Ser. No. 09/717,220. In the following it will become apparent to those of skill in the art that the SAMVQ technique is easily updated and improved by one of numerous other lossy data compression techniques. Alternatively, another lossy data compression technique is employed.
In accordance with a first embodiment of the invention, instead of dividing a regional data cube into rectangular vignettes a regional data cube is separated into clusters comprising similar spectral vectors. As a result, the similar spectral vectors within a cluster are not located within one specific area of the regional data cube but are associated with particular scenes such as a certain type of vegetation or a water surface. By separating the regional data cube into clusters of similar spectral vectors, no artificial spatial boundaries are introduced, thereby substantially improving image quality. Furthermore, the spectral vectors within a cluster are more easily compressed due to their similarity. Fewer codevectors and fewer approximation stages are used to achieve same or better fidelity compared to the vignette approach resulting in a higher compression ratio.
For example, a regional data cube is separated into a plurality of clusters in a pre-processing step, applying a classification method prior to distribution of the clusters to a plurality of CEs for compression in parallel. The classification method used in the present invention is referred to herein as a spectral vector partition process. It classifies a spectral vector in a regional data cube into a partition based on a distance of the spectral vector to the centroid of the partition. This classification method is simple, fast and easily implemented in hardware. Of course, numerous other classification methods are applicable as well.
In order to fully use the capacity of each of the plurality of compression engines, it is favorable to have clusters of approximately equal size. Therefore, the classification process implemented in the present method adaptively controls the size of each cluster by splitting and merging clusters during the course of the classification process.
Referring to
In real-time data compression, a series of 2D focal plane frames acquired in a given period of time are treated as a regional data cube for the purpose of dividing a continuous series of 2D focal plane frames into a plurality of data cubes. There will be a visible spatial boundary between two adjacent regions after the data are decompressed, since the compression of each region is independent. This problem is overcome in accordance with a second embodiment. A predetermined number of 2D focal plane frames in a boundary area of a previous regional data cube close to a current regional data cube are included in a training set used for codevector training for the current region, as shown in
Referring to
Data loss due to single bit errors is a critical issue in the development of space borne hyper-spectral imagers, especially when an onboard data compressor is used. Data are more sensitive to single-bit errors after compression. Compressed data of a regional data cube are encapsulated into source packages and placed in multiple transfer frames before transmission to ground. Single bit errors are likely to cause corruption or loss of transfer frames. If a single bit error occurs in a transfer frame that contains the index map and/or codebook, the reconstructed data for the regional data cube are subject to error. If the transfer frame containing the index map and/or codebook is lost, then the complete regional data cube is lost.
A remedy for the single bit error problem is provided in accordance with a third embodiment of the invention. Full redundancy of compressed data for a regional data cube is obtained by combining the previous regional data cube and the current regional data cube for codebook training. The codebook trained from the combined regional data cubes enable encoding of both regions. As shown in
According to the third embodiment, full redundancy is provided for a regional data cube allowing restoration of a regional data cube if its codebook and/or index map are corrupt or lost due to single bit errors. This feature is highly advantageous for protection from a regional data cube loss due to single bit errors occurring onboard a satellite and/or in a downlink channel.
Furthermore, the third embodiment allows application of lossless compression for compressing the codebooks and index maps for further increasing the overall compression ratio. The application of lossless compression is enabled because the data compressed using the third embodiment is fully redundant. Therefore, the reconstruction process is less sensitive to errors including single bit errors introduced after applying lossless compression to the compressed data.
Referring to
The following regional data sets are then processed as described below. At 114, a mth regional data set of the continuous data flow is received. The mth regional data set comprises a plurality of data vectors indicative of a mth region of the image of an object. A mth regional training set for codevector training is then generated at 118. The mth regional training set comprises the plurality of data vectors of the mth regional data set and the plurality of data vectors of the m−1th regional data set. A plurality of codevectors for approximating each of the data vectors of the mth regional data set and the m−1th regional data set with fidelity above a predetermined threshold is determined through training based on the data vectors contained in the mth regional training set at 120. Each of the data vectors of the mth regional data set and the m−1th regional data set are then encoded based on the respective codevector of the plurality of trained codevectors at 122. The plurality of trained codevectors is stored in a mth regional codebook at 124. An index indicative of a codevector's location within the mth regional codebook is stored in a mth regional baseline index map at 126. The index corresponds to a data vector of each cluster of the mth regional data set. Additionally, an index indicative of a codevector's location within the mth regional codebook is stored in a m−1th regional redundant index map at 128. The index corresponds to a data vector of each cluster of the m−1th regional data set. The mth regional codebook, the mth regional baseline index map and the m−1th regional redundant index map are then provided for transmission at 130. Optionally, the mth regional codebook, the mth regional baseline index map and the m−1th regional redundant index map are further compressed using lossless compression prior to transmission at 132. After transmission at 136 the mth regional codebook, the mth regional baseline index map and the m−1th regional redundant index map via a communication link are received at, for example, a ground station at 138. During normal operation the mth regional data set is reconstructed using the mth regional codebook and the mth regional baseline index map at 140. If, for example, during transmission the m−1th regional codebook and/or the m−1th regional baseline index map is lost, the m−1th regional data set is reconstructed using the mth regional codebook and the m−1th regional redundant index map at 142 upon receipt of the same at 140. The process indicated at 114 to 142 is repeated for subsequent regional data cubes of the continuous data flow at 144.
Table 1 shows a comparison of the compression performance when using the SAMVQ technique in combination with clusters for parallel processing and with data compression using the SAMVQ technique and vignettes. The test data cube is in raw digital number (DN) with 12-bit resolution—data range: 0-4024. The data cube size is 405 pixels in the cross-track direction by 2852 lines by 72 spectral bands—file size 166 Mbytes. The experimental results show that the SAMVQ technique using clusters provides better reconstruction fidelity than the SAMVQ technique using vignettes for a same compression ratio.
Referring to
Alternatively, shown in
The various embodiments of the method and system set out above are advantageous for numerous applications where it is necessary to process large data sets such as hyper-spectral data cubes in or near real-time. In the first embodiment, implementation of parallel processing using a plurality of compression engines is facilitated by separating a data cube into a plurality of clusters comprising similar spectral vectors. By separating the data cube into clusters of similar spectral vectors no artificial spatial boundaries are introduced, substantially improving image quality. Furthermore, the spectral vectors within a cluster are more easily compressed due to their similarity. In the second embodiment a predetermined number of 2D focal plane frames in a boundary area of a previous regional data cube close to a current regional data cube are included in a training set used for codevector training for the current region. Therefore, no artificial boundary occurs between the two adjacent regions when codevectors trained in this way are used for codebook generation and encoding of the spectral vectors of the current regional data cube substantially reducing image artifacts between adjacent regions. A remedy for the single bit error problem is provided in the third embodiment. Full redundancy of compressed data for a regional data cube is obtained by combining the previous regional data cube and the current regional data cube for codebook training. In order to obtain redundancy for the index map, the codebook is used to encode the current regional data cube as well as the previous regional data cube producing a baseline index map for the current regional data cube and a redundant index map for the previous regional data cube. Therefore, full redundancy for a regional data cube is provided allowing restoration of a regional data cube if its codebook and/or index map are corrupted or lost due to single bit errors.
Of course, numerous other embodiments of the invention will be apparent to persons skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.
This application is a divisional of U.S. patent application Ser. No. 10/611,897 filed 3 Jul. 2003 now U.S. Pat. No. 7,551,785.
Number | Name | Date | Kind |
---|---|---|---|
4541012 | Tescher | Sep 1985 | A |
4862261 | Tanaka | Aug 1989 | A |
4933761 | Murakami et al. | Jun 1990 | A |
4963030 | Makur | Oct 1990 | A |
5086439 | Asai et al. | Feb 1992 | A |
5172228 | Israelsen | Dec 1992 | A |
5204899 | Israelsen et al. | Apr 1993 | A |
5398069 | Huang et al. | Mar 1995 | A |
5822465 | Normile et al. | Oct 1998 | A |
5828413 | Jayant et al. | Oct 1998 | A |
5982441 | Hurd et al. | Nov 1999 | A |
6546117 | Sun et al. | Apr 2003 | B1 |
6724940 | Qian et al. | Apr 2004 | B1 |
7251376 | Qian et al. | Jul 2007 | B2 |
20080044098 | Qian et al. | Feb 2008 | A1 |
Number | Date | Country |
---|---|---|
1209917 | May 2002 | EP |
Number | Date | Country | |
---|---|---|---|
20090279805 A1 | Nov 2009 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10611897 | Jul 2003 | US |
Child | 12453426 | US |