/** * 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 { PDSImageBase } from '../../core/pdsImageBase.js'; import { type PDS4DataType } from '../parser/dataType.js'; /** * Parses and provides pixel-level access to a PDS4 `Array_2D_Image` product. * * A PDS4 product consists of an XML label (parsed by {@link parseXML}) and a * binary data file. The constructor reads geometry, data type and scaling * from the first `Array_2D_Image` element in the label. */ export declare class PDS4Image extends PDSImageBase { readonly width: number; readonly height: number; /** Sample data type (`Element_Array/data_type`). */ readonly dataType: PDS4DataType; private readonly view; private readonly sampleBytes; private readonly offsetBytes; private readonly scaling; private readonly valueOffset; /** * @param xml - Parsed PDS4 label. * @param buffer - Contents of the data file referenced by the label. * @throws {Error} If the label has no `Array_2D_Image` or the data is truncated. */ constructor(xml: Document, buffer: ArrayBuffer); /** * Returns the calibrated pixel value at column `x`, row `y`: * `raw × scaling_factor + value_offset`. * * @param x - Zero-based column index. * @param y - Zero-based row index. */ getPixel(x: number, y: number): number; }