Image & Raster Processing Tools (image)
The image subsystem (code/image/) provides 52 command-line utilities for manipulating, reprojecting, mosaicking, filtering, classifying, and converting 8-bit greyscale and 32-bit floating-point (.r4) OMG1 (JHC_header / ACRES) raster arrays, multibeam water-column echograms (.vert_prof, .wcim), and satellite/airborne remote sensing imagery.
Tool Categories
1. Contrast Stretching, Color Composites & Radial/Cloud Filtering
stretchacresâ Stretches 8-bitOMG1arrays (.vert_prof,.8bit,.mos), applies piecewise-linear or dB curves, draws borders/fixes, and exports Netpbm.pgmor.ppmimages.makecolcompâ Combines three 8-bitOMG1band files (-red,-green,-blue) into an 8-bit 3-3-2 RGB composite or exports the 256-entry RGB colormap.removeRadialâ Compensates radial illumination drop-off (vignetting/hotspot) around a specified pixel center using additive or multiplicative power laws.removecloud&replacecloudâ Extracts and restores bright cloud pixels (> thresh) around spatial filtering operations.
2. Resampling, Cropping & Geometric Transformation
subimageâ Extracts rectangular sub-grids by pixel coordinates (-left_x,-top_y) or geographic center (-geocentre) from 8-bit or.r4OMG1rasters.decimate&decr4â Downsamples 8-bit (decimate) or 32-bit float (decr4)OMG1grids by integer factors using boxcar mean, minimum (-lowest), or shoal-biased (-shoal_bias) rules.expand&expandr4â Upsamples (or decimates) 8-bit (expand) or 32-bit float (expandr4)OMG1grids using block replication or masked bilinear interpolation (-interp -mask).changeAspectâ Rescales horizontal and vertical dimensions of 8-bit or.r4grids independently (-xfactor,-yfactor,-xdim,-ydim).rotateimageâ Rotates 8-bitOMG1images by 90° clockwise, flips horizontally (-hflip), or rotates by an arbitrary angle (-rotate_angle).distortImageâ Warps and registers an 8-bitOMG1image onto a reference image (-ref) or Mercator grid (-geo) using a 2-point control file.shoalBias&removeOverplotâ Downsamples.r4bathymetric DTMs to shoal-biased hydrographic bins while tracking exact sub-bin(lat, lon)sounding offsets.getShiftsâ Computes per-column vertical valid-data bounds for compacting oblique strip mosaics.
3. Mosaicking, Map Patching & Tiling
patchArea&patchArea_MercOnlyâ Reprojects and patches multiple georeferenced 8-bit or.r4(.gz)OMG1mapsheets across projections with automatic anti-alias downsampling.pastemos&paster4â Pastes 8-bit (pastemos) or.r4float (paster4) sub-images onto a composite canvas, including 24-bit.ppmMagnitude/Azimuth color wheels and Temperature/Salinity encoding.
4. Polygon Masking & Stenciling
mask_make,jb_mask_make&mask_rayâ Generates 8-bit filled polygon mask files from ASCII vertex lists using scanline parity or 4-way ray-casting.stencil&stencilIPVâ Masks 8-bit,.r4float, or multi-plane.ipvimages using an 8-bit mask and optional underlay image (-under).
5. Multibeam Water Column & Acoustic Coverage Modeling
TAtoXZâ Projects SM2000 water-column Time-Angle (.TA_inten,.TA_phase) frames into Cartesian across-track/depth (.XZ_inten,.XZ_phase) fan coordinates.comboTAs,comboVPs&patchTAâ Combines and resamples.time_angle,.vert_prof, and.wcimwater-column files into unified along-track echograms.stackPIEsâ Stacks and averages sliding windows of.wcimwater-column fan images with graticules, timestamps, tide shifts, and curtain slices.projectForwardVideoâ Orthorectifies shipboard forward-looking video frames onto a sea-surface Mercator grid for correlation with water-column data.embedBeamSpacing&showCoverageâ Simulates multibeam beam footprints, dual-swath/multi-sector spacing, and 2D sonar equation SNR coverage.
6. Spectral, Histogram & Backscatter Classification Analysis
fft2dimageâ Performs single-window or sliding-window 2D FFT spectral sandwave analysis on.r4bathymetric DTMs, outputting wavelength (.wav.r4), azimuth (.azi.r4), and amplitude (.mag.r4) maps.MSpecBS_Xplotâ Cross-plots multi-frequency backscatter mosaics (*.mos) constrained by bathymetry (-dep) and maps 2D spectral clusters (-class_mask).classifyâ Classifies seafloor backscatter from three angular-sector mosaics (.nad,.mea,.tai) into intensity (.int), slope (.slp), and 16-class (.cls) maps.histimageâ Extracts normalized 256-bin histograms across up to 10 rectangular sub-regions.
7. Format Conversion & Satellite / SAR Processing
8bit2acres,PCItoJHC&OMGtoPSâ Converts raw 8-bit/float, PGM/PPM, PCI/CASI (.COR), SIF, and World File (.tfw) rasters toOMG1and exports Encapsulated PostScript (.eps).jplSARtojhcâ Imports JPL AIRSAR / SIR-C VAX float and Compressed Stokes Matrix (-CM) polarimetric radar imagery into.r4OMG1files.landsat2acres,czcs2acres,addheader,readheader&control_pointsâ De-interleaves and georeferences 4-band BIL Landsat MSS and Nimbus-7 CZCS imagery.destripe,fix_zigzag,lsfilter,add_hilo&limit_changeâ Removes 6-detector striping and 12-line mirror-sweep zigzag artifacts from ACRES Landsat imagery.
Table of contents
- stretchacres
- 8bit2acres
- MSpecBS_Xplot
- OMGtoPS
- PCItoJHC
- TAtoXZ
- add_hilo
- addheader
- changeAspect
- classify
- comboTAs
- comboVPs
- control_points
- czcs2acres
- decimate
- decr4
- destripe (image)
- distortImage
- embedBeamSpacing
- expand
- expandr4
- fft2dimage
- fix_zigzag
- getShifts
- histimage
- jb_mask_make
- jplSARtojhc
- landsat2acres
- limit_change
- lsfilter
- makecolcomp
- mask_make
- mask_ray
- pastemos
- paster4
- patchArea
- patchArea_MercOnly
- patchTA
- projectForwardVideo
- readheader
- removeOverplot
- removeRadial
- removecloud
- replacecloud
- rotateimage
- shoalBias
- showCoverage
- stackPIEs
- stencil
- stencilIPV
- subimage