next up previous print clean
Next: FEATURES OF 1-D THAT Up: Rickett, et al.: STANFORD Previous: EXAMPLES OF SIMPLE 2-D

PROGRAM FOR MULTIDIMENSIONAL CONVOLUTION

Let us unroll the filter helix seen in Figure [*] and see what we have. Start from the idea that a 2-D filter is generally made from a cluster of values near one another in two dimensions similar to the Laplacian operator in the figure. We see that in the helical approach, a 2-D filter is a 1-D filter containing some long intervals of zeros. The intervals are the length of a 1-D seismogram.

A program for 2-D convolution with a 1-D convolution program, could convolve with the somewhat long 1-D strip, but it is much more cost effective to ignore the many zeros, which is what we do. We do not multiply by the backside zeros, nor do we even store them in memory. Whereas an ordinary convolution program would do time shifting by a code line like ip=iq-lag, subroutine helicon() ignores the many zero filter values on backside of the tube by using the code ip=iq-lag(ib) where a counter ib ranges over the nonzero filter coefficients. Before subroutine helicon() is invoked, we need to prepare two lists, one list containing nonzero filter coefficients bb(ib), and the other list containing the corresponding lags lag(ib) measured to include multiple wraps around the helix. For example, the 2-D Laplace operator  
 \begin{displaymath}
\begin{array}
{rrr}
 & 1 & \
 1 & -4 & 1 \
 & 1 &\end{array}\end{displaymath} (203)
can be thought of as the 1-D filter  
 \begin{displaymath}
1,0,\cdots,0,1,-4,1,0,\cdots,0,1,0,\cdots\end{displaymath} (204)
The first filter coefficient (at lag 0) in the filter ([*]) is +1.0 as is implicit to subroutine helicon(). To apply the remaining Laplacian coefficients on a $1000\times 1000$ mesh requires the two four-component vectors:

                i    lag(i)   bb(i)
               ---   ------   -----
                1      999      1.0
                2     1000     -4.0
                3     1001      1.0
                4     2000      1.0

Subroutine helicon() did the convolution job for Figure [*]. The second half of subroutine helicon() does adjoint filtering. The adjoint of filtering is filtering backwards. [The ends of the 1-D axis are a little tricky (one end transient, the other truncated) but the code passes the dot-product test for adjoints $\bold q'(\bold B\bold p)=(\bold B'\bold q)'\bold p$.]

The companion program for deconvolution is virtually identical, except for the obvious differences between equations ([*]) and ([*]).


next up previous print clean
Next: FEATURES OF 1-D THAT Up: Rickett, et al.: STANFORD Previous: EXAMPLES OF SIMPLE 2-D
Stanford Exploration Project
7/5/1998