The present invention relates to a system for compressing and reconstructing (decompressing) signals, including signals representing physical data such as terrain. Such signals may be computer-constructed data, empirically derived images or signals, or in general any information or data representing actual or simulated phenomena.
After compression of data representing a terrain, digital terrain elevation (or images, indeed any graph) data (“DTED”), a common problem is accurate reconstruction of terrain features, such as the slope. Given digitized data representing terrain elevation, or indeed any graph in two or more dimensions at a data point (x,y) (or the multiple dimension extension at a data point (x1, . . . ,xn)), it is highly useful to be able to compress and decompress the data in such a way that terrain—or, more generally, graph or image features—are accurately reconstructed.
Conventional systems in current use compress the data, store or transmit it as needed, and at a later point reconstruct the data from the compressed-data files. This can lead to large errors in derived quantities obtained from the reconstructed data, in particular when the gradient of the reconstructed data is taken.
The gradient of the original data is often of considerable interest. In the case of DTED, it may be important for aircraft to be aware of the precise terrain slopes, and the errors introduced by determining gradients from reconstructed data may be too great to be of practical use for many applications.
Especially for lossy compression techniques, a reconstructed image generally does not have the same values for the norm of the gradient that the original image had. In fact, errors in the gradient are often quite large for higher compression ratios. These errors are quite significant since the accuracy of the terrain slope is crucial in many areas, e.g. landing of aircraft in navigation exercises.
Accordingly, a system is needed that can compress and reconstruct multidimensional data, such as terrain data or other signals, with an increased accuracy in the reconstructed information, and in particular in the gradients that are determined from the reconstructed data, and the norms of those gradients.
An apparatus and method according to one embodiment of the present invention are implemented in a processor-based system. A method according to the invention provides an accurately compressed and reconstructed signal, and in particular accurately reconstructed gradients of the original signal, by applying compression procedures to the gradient of the original signal. An alternative embodiment further involves the process of generating a second gradient of the original signal, and compressing that second gradient, which upon decompression provides an accurate reconstruction of the second gradient of the original signal. The methods of the invention are suitable for compressing, storing, transmitting and reconstructing both simulated and empirical data representing terrain and other physical or hypothetical signals or surfaces, in one or multiple dimensions.
The processor 130 is connected to a local device control circuitry 140, which includes circuitry that controls data and command exchanges with local devices such as the display 110 via an accelerated graphics processor (AGP) 150 and memory 160, which may in a typical system will include multiple DIMMs (dual in-line memory modules) or other suitable memory modules or media.
The local device control circuitry 140 is connected to a peripheral device control circuit 170 via a bus such as PCI bus 180. The system 100 additionally is connected to local internal and/or external storage 190.
Input/output (I/O) channels 200 are connected to or in communication with the system 100, and may include conventional network connections, wireless communications devices, and/or other conventional apparatus for exchanging data with the system 100. In addition, transmitters, receivers or in general transceivers 210 may be connected to or in communication with the system 100, which are suitable for remote or isolated operations include weather stations or other telemetry stations, on aircraft, etc.
The compression and decompression operations of the present invention are in one embodiment carried out under the control of program modules stored in the memory 160 and executing on the processor 130. These operations may be implemented in and/or executed by software, hardware (e.g. in configured field gate arrays, custom logic, etc.), firmware or some combination thereof. In this application, the term “logic” will be used to refer to any such appropriate combination of software, hardware, firmware or other manner of implementing the invention.
The image, terrain, or other data relating to the invention will typically take the form of data files stored in memory or in some storage medium, which can be read, modified, stored, output, displayed and printed by the computer system, either under automatic (or program) control or under the direction of a user.
Compression and Reconstruction of Gradient Data
The system of the invention is applicable to many types of compression procedures presently in use, with improved accuracy of the reconstructed signals, and in particular of their gradients (or slopes) and corresponding norms of those gradients. An example of one appropriate compression procedure is a histogram equalization procedure, as described, for instance, in Sapiro, G. and Caselles, V., “Histogram Modification via Differential Equations”, Journal of Differential Equations, Vol. 135, No. 2, pp. 238-268 (1997), which is incorporated herein by reference. Generally, appropriate compression procedures include those that are exact for constant signals, but are lossy in the general case (such as JPEG or histogram equalization).
Thus, the inventive methods may be applied to signals processed according to any compression procedures. In addition, the inventive methods may be applied to signals representing data of many dimensions. However, for the sake of the following discussion a two-dimensional signal will be taken as an example.
The normal vector to the signal or graph representing a surface or terrain is given by:
It follows that the steepness (or slope) of the terrain surface is determined by the gradient of that signal, namely:
|∇u|=√{square root over (ux2+uy2)}.
A method according to the present invention compresses the gradient |∇u|, rather than the signal u itself. The basic framework of such a method is carry out the following operations:
Operation #1: Compute |∇u| either analytically or numerically. (It may be done analytically for simulated data, and numerically for empirical data, or even analytically for empirical data that has been approximated by mathematical representations.)
Operation #2: Use any suitable compression technique to compress and store (or transmit) |∇u| as |{double overscore (∇u)}|.
Operation #3: Recover a reconstructed signal v by solving the equation:
|∇v|=|{double overscore (∇u)}|. EquationA:
In particular, this can be solved using fast numerical level set based procedures for solving the Eikonal equation |∇v|=|{double overscore (∇u)}|.
An Eikonal equation is one of the form
√{square root over (vx2=vy2)}=C(x,y) for C(x,y)>0.
This gives a generalized distance to a set. If C=1, then the distance is a real distance. Examples of this may include: (a) distance to the origin of a coordinate system, and (b) distance to a set defined by the equation x=0.
(a) Distance to the Origin.
If v=√{square root over (x2+y2)}, the distance is to the origin x=y=0, with:
b) Distance to a Set x=0.
If v=|x|, the distance represents a distance to the set x=0, with:
A system according to the present invention can take advantage of fast methods to compute the unique viscosity solution to this Hamilton-Jacobi nonlinear partial differential equation, i.e. the Eikonal Equation A above. The viscosity solution is used because |{double overscore (∇u)} represents
in the Eikonal Equation. Thus, we can view Equation A above as finding the distance v in that variable metric.
Operation #3 above involves the solution of
|∇v|=f(x,y),
where f(x,y)=|{double overscore (∇u)}| is the compressed quantity. As mentioned above, this may be a numerical or an analytical solution.
It has been proven that there exists a unique viscosity solution to this equation, given the values of u at appropriate data points. See Rouy, E. and Tourin, A., A viscosity solutions approach to shape from shading, SIAM Journal of Numerical Analysis, Vol. 29, No. 3, pp. 867-884 (1992). There are fast Dijkstra-like algorithms and/or sweeping algorithms that are designed for this purpose. On Dijkstra-like algorithms, see: J. N. Tsitsiklis, “Efficient Algorithms for Globally Optimal Trajectories”, IEEE Transactions on Automatic Control, Vol. 40, No. 9, September 1995, pp. 1528-1538, which is incorporated herein by reference.
To solve the Eikonal equation in any number of independent variables (x, y, z, . . . ) on a distance grid with n points and values of u assigned at isolated points, there is a shortest-path type of algorithm given by Tsitsiklis, which runs in optimal time O(n log n), with n being the number of pixels. Dijkstra approach is a classical algorithm which computes the “taxicab” distance metric, i.e. which solves:
max(|ux|,|uy|)=C(x,y)
in this optimal time. Tsitsiklis generalized it to the true geodesic distance (as the crow flies). The classical algorithm and its generalization update each grid point once in increasing order of distance, and may use an O(log n) heapsort search.
Fast sweeping algorithms solve the same algebraic expression as the Dijkstra-like algorithms on the grid at each point—however, not in increasing order of distance, but rather in an iterative fashion, updating points as often as needed until convergence within a predetermined tolerance. Fast sweeping methods can involve simplified programming and can be faster, e.g. if C(x,y)=1 and a left-right, up-down procedure is used. See, e.g., M. Boue and P. Dupuis, Markov chain approximations for deterministic control problems with affine dynamics and quadratic cost in the control, SLAM J. Numer. Analysis, Vol. 36, No. 3, pp. 667-695 (1999).
Input used for these fast solution techniques (which can be referred to as “fast solvers”) are the numerical values of f(x,y) and the values of u at grid points where |∇u| is less than some very small tolerance (i.e. where u might be an extremum).
This present invention is thus useful in combination with any compression routine.
One might consider the approach of compressing the vector ∇u=(ux,uy) to get {double overscore (∇u)}=({double overscore (ux)},{double overscore (uy)}), and then recover u. There are two conditions that must be considered to avoid inaccuracies in the reconstruction of the gradient:
(i) There is a need for compatibility, i.e.
({double overscore (ux)})y=({double overscore (uy)})x,
at least approximately, and this is generally false for the recovered u, using this simplified procedure.
(ii) Reconstructing u from one compressed derivative, e.g. solving numerically vx={double overscore (ux)} can lead to large errors in the resulting vy.
Reconstruction of the signal from the decompressed gradient is effectively an integration process, which can be carried out numerically or can be carried out analytically for a function derived from or representing the decompressed signal (within some predetermined level of accuracy). Such integration can be carried out for each level of gradient operation (e.g. for second gradients—see Alternative Method I, below).
Other implementations of the basic method for solving |∇u|=|{double overscore (∇u)}| can be enhanced in several ways.
Alternative Method I
(1) Compute numerically |∇u|.
(2) Compute numerically |∇|∇u||.
(3) Compress and store |∇|∇u||, obtaining {double overscore (|∇|∇u||)}.
(4) Recover v using fast a Eikonal solver twice. First solve for w in
|∇w|={double overscore (|∇|∇u||)}.
Then solve for v in
|∇v|=w.
Wherever numerical computation or data generation is called for herein, it should be understood that under appropriate circumstances an analytical solution may be generated, and vice-versa. In either case, a predetermined level of accuracy may be used a controlling factor, e.g. for the compression, gradient, integration and/or reconstruction operations.
The extra data storage that would be used for this algorithm is the storage of v=u and |∇v|=|∇u| at extrema, i.e. those points for which |∇u| and |∇|∇u||, respectively, have values below a small predefined tolerance.
This method can be generated recursively to N Eikonal solvers. The extra storage is minimal, but the decompression step would be approximately N times slower.
Alternative Method II
(1) Solve |∇w|=|{double overscore (∇u)}|.
(2) Compress |∇(u−w)|, and obtain |∇{double overscore ((u−w))}|.
(3) Solve |∇z|=|∇{double overscore ((u−w)})|.
In steps (1) and (3), use the values of u and u−w, respectively, at their approximate extrema, as usual.
(4) Then obtain v, the reconstruction of u, via v=w+z.
This method adds a correction to the basic method by compressing and reconstructing errors in |∇u|.
Recovering Curvature
Additionally, other geometric features of the terrain, for example mean curvature of the surface, can be recovered from compressed data in a similar manner. Following is a procedure for recovering curvature.
For a surface defined by
z=u(x,y),
its mean curvature is:
See S. Osher and J. A. Sethian, “Fronts Propagating with Curvature-Dependent Speed: Algorithms Based on Hamilton—Jacobi Formulations”, Osher, S., and Sethian, J. A., Journal of Computational Physics, Vol. 79, pp. 1249 (1988), which is incorporated herein by reference.
This involves first and second partial derivatives of u. Thus, in order to recover curvature from compressed data, Alternative Method I above can be used, with N≧2. This allows the recovery of a signal v whose second and first derivatives are accurate approximations to those of u. Then a numerical implementation for the expression defining k above may be used, where v replaces u.
Higher derivatives of curvature—in fact all geometric features—can be recovered in an analogous fashion, which will be clear from the foregoing to those skilled in the art. For instance, instead of using the Eikonal equation, one can take any elliptic differential operator of second or higher order, for example the Laplacian
(v)=uxx+uyy,
and solve numerically
(v)={double overscore ((v))}
for v, where appropriate boundary conditions are imposed. Then geometric features can be recovered as above.
The inventive methods provide improved compression ratios for DTED, images or graphs which have large flat regions where |∇u| or any desired feature will be zero, hence easy to compress. Thus the inventive methods are highly accurate in these situations in retrieving the data, as well as the desired feature or features.
Pseudocode Appropriate for Method Involving Compressing Normals to Gradients
The following pseudocode relates to compressing a quantity, e.g. the norm of the gradient, from an original set of data, and recovering the original data from the compressed quantity.
From this procedure, it can result that w[i][j] will be a better approximation to u[i][j] than uc[i][j], because the relevant quantity v[i][j] will be better approximated by w[i][j] than it will be by uc[i][j].
The Level Set Systems approach mentioned above can be found in applicant's copending patent application, “Method and Apparatus for Feature-Based Quantization and Compression of Data”, Ser. No. 09/737,834 filed Dec. 14, 2000, which is incorporated herein by reference.
Examples of Application of Methods According to the Invention
Examples 1 and 2 below will be discussed in connection with
u={uj}j-1N.
In general in the present description, an original signal will be denoted as u and its components as uj. A reconstructed signal (i.e. data that has been regenerated from compressed data) will be denoted as v (and its components as vj) or w (and its components as wj), as will be seen below. In addition, a compressed signal or data will be denoted by a double bar over the compressed quantity; so {double overscore (u)} would indicate the compressed form of the data or signal u, and similarly with any other quantities or expressions.
This simple signal is sufficient to illustrate the operation of the present invention, and it is straightforward to generalize the procedures of the invention to signals of two or more dimensions, and to real-world settings of three-dimensional phenomena.
The quantity |∇u| (rather than u) is compressed according to the present invention, and can be computed by standard finite difference methods. Thus,
For simplicity, in these examples, we may take uj≧uj-1 for all j, so we can remove the absolute value notation shown above.
uj=j/N (j=1, 2, . . . , N).
Then |∇u|j=1 for all j, as shown in
In general, in this description the variable u will be used to refer to the original signal or data, and the variables v and w will be used to indicate the data after reconstruction (after of the first or second gradient or derivative, as will be discussed below).
Generally, lossy compression procedures will result in errors in signals u that do not comprise constant values, so earlier methods (which compress the signals u, and not the gradient of u as in the present invention) will lead to larger errors in the gradient of the reconstructed signal, i.e. |∇u|, than in the present system. As mentioned above, the methods of the invention involving compression of gradient values instead of the original signal data are applicable in one dimension or in multiple dimensions.
Thus, for this signal |∇u|j=j/N as shown in
If the approach of compressing the derivative (or gradient) of the function is used, rather than compressing the function itself, then we compute |∇|∇u||, and obtain:
The compression of this is error-free (for this example), and hence the errors in the reconstructed w (which approximates |∇u|) and v (which approximates u) are also zero, as is the error in the curvature approximating the curvature of z=u(x). Here,
since there is no dependence on y. Thus, the method of
Using the Laplacian as described, with (u)=uxx (in this one-dimensional example), also results in error-free compressions of |∇|∇u||, |∇u| and u.
In apparatus implementations of the present invention, each of the steps or operations involved can be carried out by executing one or more program or logic modules. The terrain, signal or surface data can, as discussed above, be simulated or real-world (e.g. empirically gathered) data.
A processor-based system according to the invention can thus be connected to input or receiving devices (including sensors, satellite receivers, etc.) 210 and I/O channels 200 as shown in
This application claims the benefit of U.S. Provisional Application No. 60/257,210, of Osher et al., filed Dec. 20, 2000, entitled “Geometrically Accurate Compression and Decompression”, which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
60257210 | Dec 2000 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10039748 | Dec 2001 | US |
Child | 11327645 | Jan 2006 | US |