/** * pds2img * * @description NASA Planetary Data System (PDS) to Image conversion library. * @author Logue * @license MIT * @version 0.3.0 * @see {@link https://github.com/logue/pds2img} */ import type { PDSLabel } from '../parser/types.js'; import { PDSImageBase } from '../../core/pdsImageBase.js'; /** * Parses and provides pixel-level access to a PDS3 image. * * A PDS3 product consists of a text label (parsed by {@link parseLBL}) and * binary image data, either in a separate file (detached label) or in the * same file (attached label). The constructor reads geometry and scaling * parameters from the first `IMAGE` object in the label. */ export declare class PDS3Image extends PDSImageBase { readonly width: number; readonly height: number; /** Sample bit depth (`SAMPLE_BITS`). */ readonly bits: number; private readonly reader; private readonly imageOffset; private readonly prefixBytes; private readonly lineBytes; private readonly scaling; private readonly offset; private readonly invalidValues; /** * @param label - Parsed PDS3 label. * @param buffer - Image data. For attached labels pass the whole file. * @throws {Error} If the label has no `IMAGE` object or the data is truncated. */ constructor(label: PDSLabel, buffer: ArrayBuffer); /** * Returns the calibrated pixel value at column `x`, row `y`: * `raw × SCALING_FACTOR + OFFSET`. Samples equal to `INVALID_CONSTANT` * or `MISSING_CONSTANT` are returned as `NaN`. * * @param x - Zero-based column index. * @param y - Zero-based row index. */ getPixel(x: number, y: number): number; }