Module 04 · Program glcm3d
Texture attributes begin with a step none of the others take. The amplitudes are discarded and replaced by their rank on a scale of 33 levels. Then even the levels are discarded in favor of a tally: how often does a sample at level i sit next to a sample at level j? That tally is a 33 by 33 table, and every texture attribute in the next module is one number squeezed out of it. This module builds the table.
The seismic line — drag anywhere on it to move the analysis window
The data, and how it is quantized
Work through the five steps in order, then try the exercises. Method and references are there when you want them.
The window of data is scaled so that its amplitudes land on a small set of integers — 33 of them by default, numbered 0 to 32, with zero amplitude at the middle level. Anything beyond 1.5 times the RMS amplitude of the window is pushed onto the end level rather than being allowed to stretch the scale. That RMS is written σ here and throughout, which is the symbol AASPI uses; because it is measured about zero amplitude rather than about the window's own mean, it is not quite the standard deviation, and step 5 says what turns on the difference.
After this the actual millivolts are gone. Two windows with identical patterns and very different amplitudes quantize to the same set of levels and produce the same texture attributes. Whether that is a feature or a problem depends on what you are asking, and it is the single most important thing to know about this family of attributes.
1 The window, as amplitudes
2 The same window, as levels
3 Where the levels came from the histogram and the clip
Walk over the quantized window. At every sample, look at its neighbor in a chosen direction, read off the two levels i and j, and add one to the box at row i, column j of a table. Repeat for every sample and every direction. Divide the finished table by the total count so it sums to one, and that table is the gray-level co-occurrence matrix.
The matrix is symmetric, because each pair is counted both ways round. It is also almost entirely empty. A 33-level matrix has 1089 boxes, and a small window has only a few hundred pairs to put in them. Which boxes those pairs fall into is what the texture measures read.
1 The levels, with one pair highlighted
2 Where that pair lands in the matrix
Every few seconds a different pair is picked out and drawn on both panels, so you can watch the tally being built. The pair being shown is chosen at random from the window.
Three patterns cover almost every matrix that occurs in practice, and they are what the texture measures of the next module summarize.
The three windows below are taken from different parts of the same section, and the fourth follows wherever you put the analysis point. The first and third are snapped onto a reflector on purpose. Quantization scales each window by its own RMS amplitude. So a window sitting in the quiet gap between two reflectors is scaled by its own noise, and reports the texture of that noise rather than of the geology. That is a property of the attributes themselves rather than of this display, and it applies equally to a production texture volume.
1 Conformable package
2 Chaotic package
3 Across the fault
4 Where you are now
The mean level step is the average distance between a sample's level and its neighbor's, divided by the full scale. It runs from 0 for a matrix entirely on the diagonal to 1 for one entirely in the corners. It is the simplest summary the matrix admits, and it already separates the three windows, which indicates that the eight measures of the next module are not eight independent pieces of information.
"The neighbor" is not one thing. East is the trace beside you at the same level; north is the sample above; northeast and northwest are the diagonals. A single direction makes the matrix sensitive to features that run one way, which is useful where the orientation of interest is known, and misleading if you do not. AASPI counts all four and adds them, so the answer does not depend on how the survey happens to be oriented.
Window size trades detail for reliability in the usual way, with one extra twist that matters here. A 33 by 33 matrix has 1089 boxes, and a window of 13 traces by 3 samples supplies only a couple of hundred entries to spread across them. Most boxes are empty not because that combination cannot happen but because there were not enough pairs to find out. Attributes computed on a sparse matrix are noisy, and entropy in particular is badly biased by it.
Entries rather than pairs, because each neighboring pair is counted twice — once at box (i, j) and once at box (j, i), which is what makes the matrix symmetric. The readout below counts entries, so it is twice the number of distinct neighboring pairs the window holds.
1 One direction at a time four matrices
2 How full the matrix is against window size
The window does not stay level. As everywhere else in this set, it is gathered along structural dip, so that a dipping conformable package quantizes to a set of near-identical rows rather than to a staircase. Without that step the matrix would report structure as texture, which is the same failure disorder has in module 03 when steering is switched off.
Quantization has a fixed budget of levels and has to decide what range to spend them on. If the range is set by the largest sample in the window, then a single bright spike takes the top level and every ordinary sample is squeezed into the few levels near the middle. The matrix collapses onto a small clump, the texture measures all report "uniform", and the window looks featureless because of one sample.
Clipping at a fixed multiple of the window's own RMS amplitude fixes this. AASPI's default is 1.5σ. On a window whose amplitudes average out to zero, which is what a window centered on a reflector package does, that puts about 87% of a Gaussian distribution inside the range and pushes the rest onto the end levels. The outliers are not deleted; they are just prevented from setting the scale.
σ here is the RMS amplitude of the window, taken about zero rather than about the window's own mean, and that is a deliberate choice rather than a shorthand. Seismic amplitude is signed and its zero means something, so the scale is centered on zero amplitude and level (L−1)/2 is the sample that is neither a peak nor a trough. A standard deviation would center the scale on whatever the window happened to average, which moves as the window slides up and down the wavelet. The two agree when the window averages to zero and separate when it does not: on this module's own section the standard deviation of a window runs between about a sixth and all of its RMS, depending on where the window sits.
The bad samples slider adds isolated wild values to the data, which is what gives the clip something to protect against. Turn it to zero and the two matrices below become nearly identical. The clip changes the result only when the window contains an outlier.
1 Clipped at the current setting
2 Scaled by the largest sample instead no clip at all
3 Levels used, against the clip move the clip slider
The co-occurrence matrix is not an attribute you would ever display. It is the intermediate object that decides what the texture attributes can possibly say.
The model is the section used in module 03: conformable packages above and below a middle package that can be made chaotic, with an optional normal fault and band-limited random noise. Dip comes from the semblance scan of the first module set, and the analysis window is gathered along it with linear interpolation.
Quantization follows the AASPI description. A scale σ is computed for the window and the range is set to plus and minus the clip factor times σ. The amplitudes are then mapped linearly onto the integers 0 to L−1, with zero amplitude at the middle level. Anything outside the range is assigned the end level rather than discarded. σ here is the RMS amplitude of the window, taken about zero rather than about the window's own mean. That keeps the scale centered on zero amplitude, which is what puts a sample that is neither peak nor trough at the middle level; a standard deviation would center it on whatever the window averaged to. The two coincide on a window that averages to zero. Where they do not, they can differ by a good deal: measured over this module's own section, the standard deviation of a window runs between about a sixth and all of its RMS. If a production volume is quantized against the standard deviation instead, this is the step to look at first when the numbers do not match. The matrix counts every neighboring pair in the chosen directions, adds each pair in both orientations so that the result is symmetric, and divides by the total count.
Where this departs from AASPI. Two dimensions rather than three, so the four directions are the four in a section rather than the larger set available in a 3D window, and there is no crossline window radius. AASPI computes the matrix on the data and on its Hilbert transform and adds the two, weighting each one-sample-thick slice within the analysis window by its RMS amplitude. The module computes the data matrix alone, which keeps the displays legible. Module 05 shows what the Hilbert term changes. The vertical window here is three samples, matching the AASPI default of one sample interval either side.
Every number quoted on this page is measured from the running page. The matrices at 33 levels are computed at the analysis point only; the whole-section maps in module 05 use fewer levels for speed, and that difference is stated there.
Where the meters come from. The quantization and the matrix are computed in samples and traces. The scale panel converts them for display only, at an assumed interval velocity of 2800 m/s and an assumed trace spacing of 12.5 m. The conversion is worth having because window size is the parameter students set most carelessly, and thirteen traces sounds small while the 163 m it corresponds to is larger than most of what people run texture attributes to find.
The panels are not the same kind of picture. The section shows amplitude. The matrix shows how often one quantized level sits beside another, which is a count of pairs and not a measurement of the rock at any point. That is the step students find hardest here. Every number in the next module is squeezed out of a tally, and a tally has no location inside the window that produced it.
What the model leaves out. The chaotic package here is made by scrambling reflector times and amplitudes, which produces a plausible texture but not a real one. Genuine mass transport deposits, slumps and gas chimneys have internal geometry that a random wobble does not reproduce, and their co-occurrence matrices are not as symmetric as the ones on this page. The model also has no lateral velocity variation, so nothing here is distorted by the imaging, and on real data some of what a texture attribute reports is a property of the processing rather than of the rock.
Trace spacing. The line is a fixed 1875 m of ground and the trace count follows from the spacing, so changing the spacing resamples the same section rather than generating a new one. The window radius stays a number of traces, which is how it is set in the software, and its footprint changes accordingly. At the coarsest spacing the widest window would reach past both ends of the section, so the radius is capped; that cap is a real property of a coarse survey rather than a limitation of the page.
Fault dip, and why the drawn one is steeper. The dip is specified in the ground and converted to a slope on the section through the velocity and the bin spacing, so the plane is at 65° in the rock rather than 65° on the screen. The section is vertically exaggerated, as nearly every seismic display is, and the scale panel reports the drawn dip alongside the true one so the difference can be seen rather than inferred. Fault dips measured off a section are routinely too steep for this reason alone.
Next up
Eight numbers squeezed out of the matrix built in this module, and how few of them are really saying different things.
Open module 05 → All modules