classify
Description
classify performs supervised/unsupervised acoustic seafloor classification from three co-registered angular-sector backscatter mosaics created by splitting a swath into near-nadir (<prefix>.nad), mid-range mean (<prefix>.mea), and outer-swath tail (<prefix>.tai) grazing-angle sectors. From these three inputs, it derives a weighted mean backscatter intensity image (<prefix>.int), an angular response slope image (<prefix>.slp), a 256ร256 intensity-vs-slope 2D histogram (DumpHist), a 2D class lookup table (DumpLut), and a classified seafloor map (<prefix>.cls).
CLI Options & Usage
classify -in <Prefix> [-show]
-in <Prefix>: Input/output filename prefix. Reads<Prefix>.nad,<Prefix>.mea, and<Prefix>.tai(all 8-bitOMG1arrays of identical dimensions) and outputs<Prefix>.int,<Prefix>.slp,<Prefix>.cls,DumpLut, andDumpHist.-show: Prints progress diagnostics while building the lookup table and histograms.
Algorithm
- Intensity & Angular Slope Calculation: For every pixel where all three sector mosaics have valid data (
nad != 255,mea != 255,tai != 255):- Computes weighted intensity:
intensity = (nad + 3 * mea + 2 * tai) / 6. - Computes angular roll-off slope between near-nadir and outer swath:
slope = 128 + (nad - tai) / 2(clamped0..254).
- Computes weighted intensity:
- 2D Feature Space Lookup (
DumpLut&DumpHist):- Constructs a 256ร256 Intensity-vs-Slope lookup table (
lut[int][slp]) partitioned into a 4ร4 grid of 16 acoustic classes (centered around mean128and standard deviation32, mapping each class to a 3-3-2 RGB color byte) and accumulates the 2D feature-space density histogram (DumpHist, log-stretched to0..254).
- Constructs a 256ร256 Intensity-vs-Slope lookup table (
- Spatial Classification:
- Maps each pixelโs
(int, slp)pair throughlut[int][slp]to produce<Prefix>.cls.
- Maps each pixelโs