collapseSeisStack
Overview
collapseSeisStack composites multiple map-projected sub-bottom fence/curtain images (JHC_header rasters produced by makeSeisPlot with -map) into a single stacked output image (-comp). By default, it reads the companion <kseisfile>.perspect file for each input image and performs z-buffer hidden-surface removal so that closer survey lines occlude farther survey lines in 3D perspective views (or performs a simple painterβs overwrite when -simple is specified).
Usage
collapseSeisStack (-v) (-simple) -comp out_filename kseisfile(s)
CLI Options
| Flag | Arguments | Default | Description |
|---|---|---|---|
-comp | <out_filename> | required | Output composite JHC_header image file. |
<kseisfile(s)> | <file1> [file2 ...] | required | One or more input JHC_header sub-bottom curtain images of identical dimensions (dx by dy). |
-simple | none | 0 | Ignore .perspect files and composite non-zero pixels in file order (Stack_perspect reset to 0). |
-v | none | 0 | Enable verbose flag. |
How It Works
- Header & Perspective Weight Loading: Opens all input files, verifies that
header.dxandheader.dymatch across every file, and (unless-simpleis set) reads<name[j]>.perspectcontainingdylines ofrow_index perspective_weightintothis_persp[j]. - Row-by-Row Z-Buffered Compositing: Writes the output
JHC_headerand iterates through each column/tracej = 0 .. header.dy - 1. For each input fileithat has non-zero perspective weight at tracej, reads theheader.dx-byte vertical traceThis_trace. For each vertical samplek, ifThis_trace[k] != 0andthis_persp[i][j] > Stack_perspect[k], updatesStack_trace[k] = This_trace[k]andStack_perspect[k] = this_persp[i][j]. - Output: Writes each composited
Stack_traceto the-compoutput file.
Practical Examples
Composite a set of perspective sub-bottom lines using z-buffer occlusion
collapseSeisStack -comp survey_fence.i1 line01.seis line02.seis line03.seis