CWP-635

Structure-oriented smoothing and semblance

Dave Hale Center for Wave Phenomena, Colorado School of Mines, Golden CO 80401, USA

(a) (b) (c)

Figure 1. A seismic image (a) after applying structure-oriented smoothing (b) and semblance (c) filters.

ABSTRACT Smoothing along structures apparent in seismic images can enhance these struc- tural features while preserving important discontinuities such as faults or chan- nels. Filters appropriate for such smoothing must seamlessly adapt to variations in the orientation and coherence of image features. I describe an implementa- tion of smoothing filters that does this and is both computationally efficient and simple to implement. Structure-oriented filters lead naturally to the computation of structure-oriented semblance, an attribute commonly used to highlight discontinuities in seismic images. Semblance is defined in this paper as simply the ratio of a squared smoothed-image to a smoothed squared-image. This definition of semblance generalizes that commonly used today, because an unlimited variety of smooth- ing filters can be used to compute the numerator and denominator images in the semblance ratio. The smoothing filters described in this paper yield an es- pecially flexible method for computing structure-oriented semblance. Key words: seismic image smoothing semblance

1 INTRODUCTION ure 1c using a process that (in the sense of Fehmers and H¨ocker, 2003) I call structure-oriented semblance. Images like those displayed in Figure 1 are familiar As shown here, semblance is a normalized measure of in the context of exploration seismology, where spatial coherence with values between zero and one, where zero sampling is sufficiently uniform to enable the applica- corresponds to no coherence. I used the semblance im- tion of a variety of generic image-processing techniques. age in structure-oriented filtering to inhibit smoothing For example, coherency-enhancing anisotropic diffusion across the faults in Figure 1b. However, semblance im- filters, as described by Weickert (1997, 1999), have been ages like that in Figure 1c are often used directly in adapted by Fehmers and H¨ocker (2003) for structure- seismic interpretation to construct geologic models of oriented filtering of seismic images to enhance their in- faults and stratigrathic features such as channels (e.g., terpretation. Figure 1b illustrates a similar structure- Bahorich and Farmer, 1995; Marfurt et al., 1998). oriented smoothing process that smooths along coherent The purpose of this paper is to describe new meth- reflections while preserving faults. ods for computing smoothed and semblance images like Faults apparent in Figure 1a are highlighted in Fig- 2 D. Hale those in Figure 1. The proposed smoothing filter is both measures of orientation and dimensionality that we re- simple to implement and computationally efficient, and quire in structure-oriented filtering. For 2D images, this leads naturally to a semblance filter that is more gener- eigen-decomposition is ally useful than methods commonly used today to com- T = λ uuT + λ vvT , (2) pute semblance. u v

where λu and λv are the eigenvalues and u and v the corresponding eigenvectors of T. 1.1 Structures and orientations By convention we label the eigenvalues and eigen- Coefficients of structure-oriented smoothing and sem- vectors of T so that λu ≥ λv ≥ 0. This convention blance filters depend on the orientations of coherent implies that eigenvectors u indicate directions in which structures in images. The required orientations can be image are highest and will therefore be or- estimated by scanning over a set of sampled orientations thogonal to linear features. The eigenvectors v, which and choosing those for which semblance or some compa- correspond to the smaller eigenvalues λv, will be parallel rable attribute is maximized (e.g., Marfurt et al., 1998; to such features. Marfurt, 2006). Orientation scanning can provide simul- The eigenvalues λu and λv of each structure taneously both semblance and the orientations required T provide measures of isotropy and linearity. Specifi- for structure-oriented smoothing. cally, we may compute for each image sample the non- However, searching for the optimal orientation can negative ratios be costly, particularly when we do not know before isotropy: λ = λ /λ scanning whether imaged structures have locally linear, 0 v u planar, or other shapes. For example, buried channels linearity: λ1 = (λu − λv)/λu. (3) tend to appear as curvilinear features in seismic images, defined here such that λ0 + λ1 = 1. whereas geologic horizons appear curviplanar (well ap- Figure 2 illustrates eigenvectors v for a small subset proximated by curved surfaces). We should expect both of the structure computed for every sample in structure-oriented smoothing and semblance to honor two different 2D images. The lengths of these vectors the varying dimensionalities of structures apparent in have been scaled by linearity λ1. The eigenvectors v are seismic images, and scanning for both orientation and well aligned with image structures and appear longest dimensionality is computationally costly. The cost is es- where those structures are most coherent and linear. pecially high for 3D seismic images. Elsewhere, as in the lower right corner of Figure 2b, image features are more isotropic. 1.2 Structure tensors

An alternative to scanning over orientations of image 2 STRUCTURE-ORIENTED SMOOTHING features that could be linear or planar (or ...) is to com- pute structure tensors (van Vliet and Verbeek, 1995; Eigenvectors derived from a structure-tensor field en- Weickert, 1997; Fehmers and H¨ocker, 2003). Structure able us to design filters that smooth along linear or pla- tensors are simply smoothed outer products of image nar features, but that do not smooth across them. We gradients. may choose from among a wide variety of filters. In all of the examples shown in this paper, I ap- proximated image gradients and smoothed the products 2.1 Slope-based smoothing of the components of those gradients using Gaussian derivative and smoothing filters, respectively (Deriche, For example, to smooth along the features in Figure 2a, 1992; van Vliet et al., 1998; Hale, 2006). Specifically, in we could use Fomel’s plane-wave destruction filters computing structure tensors for the 2D image of Fig- (Fomel, 2002). (For smoothing we would simply sub- ure 1a, I used Gaussian derivative and smoothing filters tract from the input image the output of a plane-wave with radii σ = 1 and σ = 8, respectively. destruction filter.) Coefficients of these filters depend on In this way we may construct an entire field of reflection slopes, which are simply ratios p = v1/v2 of structure tensors that typically vary from sample to components of the eigenvectors v. Figure 2a suggests sample in an image. Let T denote the structure ten- that these slopes are typically less than 1, because co- sor corresponding to one image sample. For a 2D image herent features in Figure 2a tend to be more horizontal like that shown in Figure 1a, each structure tensor T is than vertical. a 2 × 2 symmetric positive-semidefinite However, slopes p = v1/v2 can be infinite, as implied by the eigenvectors illustrated in Figure 2b, »t t – T = 11 12 . (1) which contains both horizontal and vertical features. t t . 12 22 The words “horizontal” and “vertical” here refer only As shown by Fehmers and H¨ocker (2003), the eigen- to this display of what is in fact a truly horizontal slice decomposition of each structure tensor T provides the from a 3D seismic image. Still, a filter parameterized Structure-oriented smoothing and semblance 3

i2 by a diffusion-tensor field D(x) that shares the eigenvec- tors of the structure-tensor field T(x). To smooth along the eigenvectors v(x) illustrated in Figure 2, we might set λu(x) = 0 and λv(x) = 1 for all tensors in the field D(x). More generally, we might let the eigenvalues of D(x) depend on the measures of isotropy and linearity i1 computed from T(x) according to equations 3. Unfortunately, as noted by Fehmers and H¨ocker (2003), straightforward explicit and stable numerical so- lutions to the anisotropic diffusion equation 4 may re- quire a prohibitively large number of time steps. So they instead use an unspecified solution method that they liken to a “rudimentary multigrid implementation”. (a)

i2 2.3 An anisotropic smoothing filter When considering the efficiency of structure-oriented smoothing with anistropic diffusion, Fehmers and H¨ocker (2003) suggest that it is unnecessary to model the diffusion process exactly. Consistent with their sug- gestion, I propose here the numerical solution of a dif- ferent partial differential equation i1 g(x) − α ∇ ·D(x) ∇ g(x) = f(x). (5) Here, f(x) represents the input image and g(x) rep- resents the output smoothed image. The constant fil- ter parameter α could be absorbed into the smoothing- tensor field D(x), but is kept separate to provide a con- venient control for the extent of smoothing. For α = 0, we have g(x) = f(x), and no smoothing is performed. Unlike the solution of the diffusion equation 4, the (b) solution to the smoothing equation 5 does not depend on time τ. However, smoothing with equation 5 does re- Figure 2. Eigenvectors v for 2D slices of two different 3D quire the numerical solution of a large sparse system of seismic images of faulted geologic layers (a) and buried chan- equations. (Numerical solution of equation 5 is equiva- nels (b). lent to a single but possibly large time step in an uncon- ditionally stable implicit numerical solution of the dif- by reflection slope cannot be used to smooth along the fusion equation 4.) Fortunately, simple finite-difference features apparent in Figure 2b. approximations suffice to obtain a sparse symmetric positive-semidefinite system of equations that we may solve efficiently using conjugate- iterations. 2.2 Smoothing with anisotropic diffusion I use the bilinear transform (e.g., Oppenheim et al., 1999) to approximate the partial derivatives in equa- A more generally useful alternative proposed by Weick- tion 5. As a simple example, consider the 1D version of ert (1997, 1999) and Fehmers and H¨ocker (2003) (and equation 5 with constant coefficients others) is to parameterize a structure-oriented smooth- ing filter by a tensor field. For an input image f(x) and g(x) − α g00(x) = f(x). (6) a corresponding structure-tensor field T(x), these au- Using z-transform notation, the bilinear transform of a thors propose the solution of an anisotropic diffusion derivative is the substitution equation 1 − z−1 ∂g(x; τ) g0(x) ⇒ 2 G(z) (7) = ∇ ·D(x) ∇ g(x; τ) (4) 1 + z−1 ∂τ or, equivalently, with initial condition g(x; τ = 0) = f(x). For any time 1 − z τ > 0, the solution g(x; τ) is a smoothed version of the −g0(x) ⇒ 2 G(z). (8) input image f(x). 1 + z This anisotropic diffusion equation is parameterized With this approximation, the z-transform of equation 6 4 D. Hale becomes r11 = r[i2-1][i1-1]; rs = 0.25f*(r00+r01+r10+r11); // for B’B `z−1 + 2 + z´ G(z) − 4α`z−1 − 2 + z´ G(z) ra = r00-r11; rb = r01-r10; = `z−1 + 2 + z´ F (z), (9) r1 = ra-rb; // two components of which corresponds to the finite-difference approxima- r2 = ra+rb; // the gradient of r tion s1 = e11*r1+e12*r2; // multiplied by the s2 = e12*r1+e22*r2; // smoothing tensor (1 − 4α) g[i − 1] + (2 + 8α) g[i] + (1 − 4α) g[i + 1] sa = s1+s2; sb = s1-s2; = f[i − 1] + 2f[i] + f[i + 1]. (10) s[i2 ][i1 ] += sa+rs; Given N input samples f[i], i = 0, 1,...,N − 1, and s[i2 ][i1-1] -= sb-rs; s[i2-1][i1 ] += sb+rs; suitable (e.g., zero-slope) boundary conditions, we can s[i2-1][i1-1] -= sa-rs; easily solve this tri-diagonal system of N equations for }} N smoothed output samples g[i]. While other finite-difference approximations to the For 2D images, this program is the simplest and most smoothing equation 6 may seem more straightforward, efficient way to ensure a symmetric positive-definite im- I chose the bilinear transform because the smoothing plementation of the matrix operator BT B + AT DA on filter implied by equation 10 has a zero at the Nyquist the left-hand side of equation 11. (Note that this pro- frequency for all α > 0. This smoothing filter is in fact gram does not require an explicit representation of that a cascade of two (one causal and one anti-causal) 1st- left-hand-side matrix. A similar program for smoothing order Butterworth filters (e.g., Oppenheim et al., 1999). 3D images is provided in Appendex A.) An even sim- The same bilinear transform works as well for each pler program can be used to apply the right-hand side in 2D and 3D versions of equation 5 matrix operator BT B once to the input image vector f with variable tensor coefficients D. The derivation is before beginning conjugate-gradient iterations. somewhat more tedious and the resulting system of Figure 3 illustrates anisotropic smoothing with con- equations is not tri-diagonal as in the 1D version. How- stant parameter α = 18 and smoothing tensors D = ever, as noted above, the system of equations remains vvT . The eigenvalues of these smoothing tensors are sparse, symmetric and positive-semidefinite, and may constant: λu = 0 and λv = 1. Therefore, unlike the be solved efficiently with conjugate-gradient iterations. smoothing shown in Figure 1b, that shown here in Fig- Let f denote a vector containing all samples ure 3 does not preserve discontinuities across faults. f[i1, i2, . . . , in] of an n-dimensional input image f(x), I used 27 and 33 conjugate-gradient iterations to and let g denote a corresponding vector of samples compute the smoothed images shown in Figures 3a g[i1, i2, . . . , in] of the smoothed output image g(x). Af- and 3b, respectively. When I changed α = 18 to α = 5, ter bilinear transform of equation 5, the sparse system the number of iterations decreased by roughly a factor of equations to be solved has the form of two, to 13 and 16 iterations, respectively. These re-

T T T sults and further experiments suggest that the number (B B + A DA)g = B Bf (11) of iterations required is independent of image dimen- √ In this equation D now represents a sparse matrix with sions and is roughly proportional to α. non-zero elements corresponding to coefficients in the The smoothing filters implied by equation 11 do not smoothing-tensor field D(x) described above. Sparse correspond to any weighted averaging of image pixels matrices A and B correspond to finite-difference ap- along linear trajectories like the line segments in Fig- proximations obtained with the bilinear transform. ures 2. In each conjugate-gradient iteration, we must com- To illustrate this point, Figure 4 shows the weights T T pute the matrix-vector product s = (B B + A DA)r implicitly applied to input samples f[i1, i2] when com- for some temporary vectors r and s. Here is a small puting a small subset of output samples g[i1, i2] like computer program (written in C, C++ or Java) that those shown in Figure 3b, but here for α = 70 to make does this for 2D image smoothing, where the vectors r the weights more visible. These smoothing-filter weights and s represent values r[i1, i2] and s[i1, i2] stored in 2D are largest along curvilinear trajectories that would be arrays. difficult and costly to construct explicitly. That con- // Zero all elements of the array s; then struction is unnecessary, because we may instead simply for (i2=1; i2

i2 i2

i1

i1

(a)

i2

Figure 4. Anisotropic smoothing-filter weights for α = 70. These weights conform to the eigenvector field v of Figure 2b, and imply curvilinear smoothing paths. Weights shown here are scaled by a factor of 100 for display.

i1 For all indices i1, semblance s[i1] is maximized and equals one when the values f[j1, j2] do not vary with the index j2. For Taner and Koehler’s velocity spectra, the index j2 corresponds to a trace number and the in- dex j1 corresponds to a time sample. The inner sums over j2 correspond to N2 NMO-corrected traces in a CMP gather. The outer sums over j1 correspond to a window of 2M1 +1 time samples centered at the sample (b) i1 for which semblance s[i1] is to be computed. Marfurt et al. (1998) used a similar definition of Figure 3. Anisotropic smoothing (for α = 18) along the semblance as the ratio of sums like these to compute eigenvectors v of Figure 2 for two seismic images. local measures of coherence. Instead of scanning over different NMO velocities to maximize semblance, they instead scanned over different planar reflection slopes step is to recognize that sums in conventional definitions in local windows of seismic traces. A simplified version of semblance perform a sort of smoothing. We can then (omitting Hilbert tranforms) of their semblance measure replace those sums with the weighted sums of smoothing for 2D images would be

filters. 2 i +M i +M ! 1P 1 2P 2 f[j1, j2] j1=i1−M1 j2=i2−M2 3.1 Conventional semblance s[i1, i2] = . i1+M1 i2+M2 P P 2 Semblance was first defined by Taner and Koehler (2M2 + 1) (f[j1, j2]) . (1969) and developed further by Neidell and Taner j1=i1−M1 j2=i2−M2 (13) (1971) in the context of velocity spectra, where they In this definition, f[j , j ] corresponds to a window of computed semblance as a function of time for CMP 1 2 (2M + 1) × (2M + 1) image samples after shifting in gathers after normal moveout correction. An equivalent 1 2 time to flatten planar reflections for a specified slope. definition that is consistent with the notation used else- Semblance is maximized if that specified slope matches where in this paper is the slope of a planar reflection in the image. 2 i +M N −1 ! Semblance computed by equation 13 is stored at 1P 1 P2 f[j1, j2] indices i1 and i2 that correspond to the centers of the j1=i1−M1 j2=0 summation windows. Therefore, the sums in the nu- s[i1] = . (12) i1+M1 N2−1 P P 2 merator and denominator of this equation work much N2 (f[j1, j2]) j1=i1−M1 j2=0 like symmetric local smoothing filters. However, these smoothing filters have constant weights, implying that 6 D. Hale

conventional definition of semblance computed for constant-weighted samples in a window with finite dura- h[i] tion. The boxcar weighting sequence illustrated in Fig- ure 5a has half-width M = 10 samples. The Gaussian sequence h[i] is proportional to exp ` −i2/2σ2´. This sequence is smoothest and is nowhere zero, but in practice may be truncated where weights are insignificant. The Gaussian sequence in Fig- ure 5a has half-width σ = pM(M + 1)/3, and the choice M = 10 makes it comparable to the boxcar se- quence shown there. The smoothed exponential sequence h[i] is likewise nowhere zero, and is the impulse response of the filter i (samples) implied by solution of equation 10 for smoothing pa- rameter α = M(M + 1)/6. Again, the choice M = 10 (a) makes this weight sequence comparable to the boxcar sequence in Figure 5a.

H(k) 3.3 Weighted semblance We may use weighting sequences like those shown in Figure 5a to generalize the conventional definition of semblance to what I call weighted semblance. Let us first consider a single weighted-semblance value s computed for a 1D sequence f[j]: “ ”2 P h[j]f[j] j s = . (14) P h[j]`f[j]´2 j k (cycles/sample) Here, unspecified limits for sums are assumed to include (b) all indices j for which both f[j] and h[j] are defined. Figure 5. Three weighting sequences h[i] (a) and their As for conventional semblance, we want weighted ˛ ˛ Fourier amplitude spectra ˛H(k)˛ (b). Weights shown are semblance s to be a normalized measure of coherence boxcar (black), Gaussian (red), and smoothed exponential such that 0 ≤ s ≤ 1. We may obtain such a measure for (blue). any set of weights h[j] that have two properties: X h[j] = 1 and h[j] ≥ 0 for all j. (15) all samples inside the windows are equally significant, j but that samples just outside these windows are worth- In other words, the weights h[j] must be normalized and less. Intuitively, this sort of weighting makes no sense. In non-negative. All three weighting sequences displayed in practice, it leads to visible artifacts where strong image Figure 5 have these two properties. features enter and leave such windows. The proof that 0 ≤ s ≤ 1 is simple. Because all weights h[j] are non-negative, the denominator in equa- 3.2 Weighting sequences tion 14 must be non-negative as well. Since the numera- tor is non-negative for any weights, the semblance ratio Better windows would give more weight to samples near is bounded below by 0 ≤ s. the centers of windows and less weight to those near To see that semblance is bounded above by s ≤ 1, window edges. let us rewrite equation 14 as Figure 5 illustrates three different weighting se- » –2 quences h[i] with their Fourier amplitude spectra P“p ”“p ” ˛ ˛ h[j] h[j]f[j] ˛H(k)˛. For zero frequency, k = 0, all three weighting j ˛ ˛ s = . (16) sequences have the same Fourier amplitude H(0) and » 2–» 2– ˛ ˛ P“p ” P“p ” curvature ˛H00(0)˛. Therefore, in their responses to low h[j] h[j])f[j] ˛ ˛ j j frequencies, these weighting sequences are comparable, even though their shapes differ significantly. The square roots are real valued because all weights h[i] The boxcar sequence h[i] corresponds to the Structure-oriented smoothing and semblance 7 are non-negative. The leftmost term in the denomina- axis-aligned smoothing with structure-oriented smooth- tor is unity because it equals the sum of those weights. ing. When computing semblance for 2D images, we may Then, by the Cauchy-Schwarz inequality, we have s ≤ 1. define the smoothing filters using eigenvectors u and Equation 16 is written carefully to show that v computed from structure tensors. Structure-oriented weighted semblance is equivalent to a normalized corre- semblance is then p p lation coefficient for two sequences h[j] and h[j]f[j]. 2 h hfiv iu This coefficient is unity if the sequence f[j] is constant. sv,u = . (21) h hf 2i i When this sequence is not constant, more weight is given v u to the values f[j] for which the weights h[j] are largest. The inner smoothing h·iv is along image features, and To compute weighted semblance in sliding and the outer smoothing h·iu is across those features. seamlessly overlapping windows of the sequence f[j], I computed the structure-oriented semblance shown we simply write in Figure 1c using structure-oriented smoothing filters with M = 4 (α = M(M +1)/6) for inner smoothing h·i “ ”2 v P h[i − j]f[j] along image features and M = 16 for outer smoothing j h·iu across those features. As expected, semblance is low s[i] = 2 . (17) P h[i − j]`f[j]´ near faults and near the bottom where the image f is j less coherent. Both numerator and denominator in this ratio include The structure-oriented smoothing filters used to convolution with a smoothing filter like those shown compute semblance in this and other examples shown in in Figure 5a. In this sense, semblance is the ratio of this paper do not strictly satisfy the second requirement a squared smoothed-sequence to a smoothed squared- of equation 15 that all weights be non-negative. Recall sequence. the smoothing-filter weights shown in Figure 4, which However, the smoothing filter need not be shift in- are mostly positive, but on close inspection exhibit neg- variant. An even more general form of equation 17 is ative values. Non-negative weights are easy to obtain for “ ”2 1D smoothing; e.g., the smoothed exponential sequence P h[i; j]f[j] in Figure 5a. However, I have been unable to guaran- j s[i] = . (18) tee non-negative weights in useful finite-difference ap- ` ´2 P h[i; j] f[j] proximations of the more general anisotropic smoothing j equation 5. In other words, smoothing-filter coefficients h[i; j] may Nevertheless, these smoothing filters yield a useful vary with index i, provided that the properties in equa- semblance measure. I simply clip the values of sv,u so tions 15 are satisfied for all i. that values less than zero are replaced with zero and Before extending the notion of weighted semblance values greater than one are replaced with one. In my to 2D and 3D images, it will help to simplify notation experience, computing structure-oriented semblance for further by letting h·i denote smoothing of whatever is both 2D and 3D images, this clipping occurs rarely. In inside the angle brackets, so that semblance becomes the example shown in Figure 1c, no such clipping was simply necessary. Figure 6 shows the same semblance image again for hfi2 comparison with a more conventional slope-based sem- s = 2 . (19) hf i blance image. I computed this slope-based semblance for a sliding window of nine traces (M = 4). Within each 3.4 2D structure-oriented semblance such window, I used sinc interpolation of each trace to flatten the nine-trace image before computing the inner For 2D images, we have the opportunity to include a horizontal sums with constant (boxcar) weights. I then second smoothing, as in the conventional definition of computed the outer vertical sums by applying vertical semblance in equation 13. Using the concise notation Gaussian smoothing for M = 16 (σ = pM(M + 1)/3), described above, we may rewrite this equation as before finally computing the semblance ratios. Although h hfi2 i smoothing filters varied, this example of slope-based s = 2 1 , (20) 2,1 2 semblance is comparable to that of structure-oriented h hf i2 i1 semblance because I chose consistent half-widths M = 4 where h·i1 denotes smoothing along the 1st image axis, and M = 16 in both examples. and h·i2 denotes smoothing along the 2nd axis. The A notable difference between the two semblance im- outer smoothing h·i1 helps to stabilize semblance values ages in Figure 6 is the appearance of faults as piece- where the inner smoothing h·i2 accumulates only very wise vertical features in the slope-based semblance im- small and perhaps noisy values. Depending on expected age. This vertical bias is caused by the outer Gaussian orientations of image features, we might switch the 1st filtering that in the conventional slope-based method and 2nd smoothing directions. smooths semblance numerators and denominators only For structure-oriented semblance, I simply replace 8 D. Hale

i2 i2

i1

i1

(a)

i2

(a)

i2

i1

(b) i1

Figure 6. Structure-oriented semblance sv,w (a) computed via structure-oriented smoothing and a more conventional slope-based semblance (b) for the image of Figure 2a. vertically. This bias would be even more apparent had I used boxcar smoothing instead of Gaussian smoothing. A second disadvantage of a slope-based semblance (b) method is that (like slope-based smoothing) it cannot be readily applied to images having features with both hor- Figure 7. Features in a 2D horizontal slice (a) of a 3D im- izontal and vertical orientations, like those illustrated age of channels have varying orientations. Structure-oriented in Figure 2b. In contrast, structure-oriented semblance semblance sv,u (b) highlights amplitude variations along the is easy to implement for arbitrary orientations of the linear trends of these features. structure eigenvectors u and v. Figure 7 shows an example of structure-oriented 3.5 3D structure-oriented semblance semblance sv,u computed for the image of channels using structure-oriented h·iv (inner) and h·iu (outer) smooth- To compute structure-oriented semblance for 3D im- ings, both with M = 4. Recall that the image in Fig- ages, I use 3D structure-oriented smoothing. These ure 7a is actually a horizontal 2D slice extracted from a smoothing filters can again be parameterized by 3D image. The semblance image in Figure 7b therefore smoothing tensors derived from structure tensors. contains numerous spurious features that occur where Each structure tensor is a 3 × 3 matrix with eigen- linear features cross contours of zero amplitude in the decomposition

2D slice of Figure 7a. Because the numerator of the sem- T T T blance ratio in equation 21 contains a local weighted av- T = λuuu + λvvv + λwww , (22) erage of f, semblance is low near all such zero crossings. where λu, λv and λw are the eigenvalues and u, v and To obtain a more meaningful semblance image, we must w the corresponding eigenvectors of T. process the 3D image. I again label the eigenvalues and eigenvectors of T so that λu ≥ λv ≥ λw ≥ 0. Eigenvectors u again indicate directions in which image gradients are highest, Structure-oriented smoothing and semblance 9 orthogonal to linear or planar features. The eigenvectors i2 w, which correspond to the smallest eigenvalues λw, will be aligned with linear features, such as the channels in Figure 7a. Both eigenvectors v and w will lie within the planes of any planar features. Structure-oriented semblance measured within lo- cal planes defined by eigenvectors v and w is then sim- ply i 2 1 h hfivw iu svw,u = 2 . (23) h hf ivw iu This equation defines a planar semblance. For the in- ner curviplanar smoothing, we use smoothing tensors D = vvT + wwT . For the outer orthogonal curvilin- ear smoothing, we use D = uuT . Unlike slope-based semblance, planar semblance remains well defined for steeply dipping, even vertical, features in 3D seismic images. (a) Choosing the eigenvalues of smoothing tensors D in i2 a different way, we can likewise define a linear semblance

2 h hfiw iuv sw,uv = 2 . (24) h hf iw iuv As its name implies, this linear semblance measures co- herence along curvilinear paths within an image. Planar and linear semblance are two extremes in a continuum of semblance measures we may define by i1 choosing the eigenvalues of smoothing tensors D in dif- ferent ways. We may, for example, choose the eigen- values of D to be functions of the eigenvalues of the corresponding structure tensors T, perhaps using the following measures of isotropy, linearity and planarity:

isotropy: λ0 = λw/λu

linearity: λ1 = (λv − λw)/λu

planarity: λ2 = (λu − λv)/λu, (25) (b) defined here such that λ0 +λ1 +λ2 = 1. In any case, the outer smoothing we perform in the semblance calcula- Figure 8. 3D structure-oriented planar semblance svw,u (a) tion is an orthogonal complement to the inner smooth- and linear semblance sw,uv (b) computed for a 3D seismic ing. image of buried channels. Shown here are horizontal 2D slices Figure 8 shows examples of both planar and linear (coincident with the 2D slices shown in Figure 7) extracted semblance. All smoothing filters in these examples have from 3D semblance images. half-width M = 2 samples. (Shorter filters are more suitable for 3D images than for 2D images because of filters parameterized by slopes of image features, this the extra dimension in which smoothing can be per- generality enables smoothing of 2D and 3D images with formed.) Planar semblance highlights (with low values) arbitrary orientations and dimensionalities. all features that are not planar, such as the channels, Structure-oriented smoothing filters are also sim- which are linear. Linear semblance highlights variations ple to implement with small computer programs. The within those channels, features that are neither linear most significant part of the implementation for 2D fil- nor planar, but may be significant. ters (not including a necessary but readily available conjugate-gradient solver) is a computer program with only 23 lines. A similar program for 3D structure- 4 CONCLUSION oriented smoothing consists of only 42 lines. From structure-oriented smoothing we may de- Structure-oriented smoothing filters as described in this fine structure-oriented semblance as the ratio of a paper are quite general, with parameters derived mostly squared smoothed-image to a smoothed squared-image. from structure-tensor fields. In contrast to smoothing 10 D. Hale

Structure-oriented semblance is a special case of s[i3 ][i2 ][i1 ] += sa+rs; weighted semblance, in which weighted sums are im- s[i3 ][i2 ][i1-1] -= sd-rs; plied by structured-oriented filters that smooth either s[i3 ][i2-1][i1 ] += sb+rs; along or across image features. The orientation of those s[i3 ][i2-1][i1-1] -= sc-rs; features is arbitrary; e.g., structure-oriented semblance s[i3-1][i2 ][i1 ] += sc+rs; has no vertical bias. And unlike the weights implied by s[i3-1][i2 ][i1-1] -= sb-rs; s[i3-1][i2-1][i1 ] += sd+rs; conventional semblance computed in sliding boxcar win- s[i3-1][i2-1][i1-1] -= sa-rs; dows, the weights used in structure-oriented semblance }}} smoothly and seamlessly decay to zero.

REFERENCES ACKNOWLEDGMENTS Bahorich, M.S., and S.L. Farmer, 1995, 3-D seismic co- Thanks to WesternGeco for providing the seismic image herency for faults and stratigraphic features: The coher- of buried channels, and to the U.S. Department of En- ence cube: The Leading Edge, 14 1053–1058. ergy for providing the seismic image of geologic layers. Deriche, R., 1992, Recursively implementing the Gaussian Thanks also to Paul Sava, Ran Xuan and Luming Liang and its derivatives: Proceedings of the 2nd International for helpful reviews of this paper. Conference on Image Processing, Singapore, 263–267. Fehmers, G.C., C.F.W. H¨ocker, 2003, Fast structural inter- pretations with structure-oriented filtering: Geophysics, 68, 1286–1293. APPENDIX A — 3D SMOOTHING Fomel, S., 2002, Applications of plane-wave destruction fil- For 3-D structure-oriented smoothing via solution of ters: Geophysics, 67, 1946–1960. equation 11, the following computer program (writ- Hale, D., 2006, Recursive Gaussian filters: CWP Report 546, 269–278. ten in C, C++ or Java) computes the product s = Marfurt, K.J., 2006, Robust estimates of 3D reflector dip and (BT B + AT DA)r for vectors r and s that represent azimuth: Geophysics, 71, P29–P40. values r[i , i , i ] and s[i , i , i ] stored in 3D arrays. 1 2 3 1 2 3 Marfurt, K.J., R.L. Kirlin, S.L. Farmer and M.S. Bahorich, // Zero all elements of the array s; then 1998, 3-D seismic attributes using a semblance-based co- for (i3=1; i3