import type { AbstractImageWrapper, VivLoaderType, VivLoaderDataType, ImageOptions, ChannelObject, ResolutionObject, BoundingCube, ResolutionLevel, ChannelWindow } from '@vitessce/types'; /** * A wrapper around the Viv loader, to provide a common interface for * all image file types. */ export default class ImageWrapper implements AbstractImageWrapper { vivLoader: VivLoaderType; options: ImageOptions; modelMatrix: number[] | null; constructor(vivLoader: VivLoaderType, options: ImageOptions); getType(): 'ome-tiff' | 'ome-zarr'; hasPhysicalSize(): boolean; getData(stripPhysicalSizes?: boolean): VivLoaderDataType; getModelMatrix(): number[]; _getModelMatrix(): number[]; getDefaultTargetT(): number; getDefaultTargetZ(): number; getName(): string; getNumChannels(): number; getChannelNames(): string[]; getChannelIndex(channelSpecifier: string | number): number; getChannelObjects(): ChannelObject[]; getDtype(): string | undefined; hasZStack(): boolean; hasTStack(): boolean; hasCStack(): boolean; hasDimZ(): boolean; hasDimT(): boolean; hasDimC(): boolean; getNumZ(): number; /** * Clamp a z target to a valid plane index. * spatialTargetZ can hold a 3D camera target in scene units, which may * exceed the number of planes; geotiff throws on out-of-range indices. */ getClampedZIndex(targetZ: number | null | undefined): number; getNumT(): number; getNumC(): number; getNumResolutions(): number; isMultiResolution(): boolean; getMultiResolutionStats(): ResolutionObject[]; /** * Compute an index of an array element returned by getMultiResolutionStats() * which corresponds to a "good" automatic target resolution to select. * In the future, we could make this more sophisticated, for example * to take into account the network speed. */ getAutoTargetResolution(): number | null; getBoundingCube(): BoundingCube; /** * Whether the last dimension holds interleaved RGB(A) samples. * viv labels it '_c' (OME-TIFF). When the last label is 'x', * the image is not interleaved, even if it is 3 or 4 pixels wide. */ isInterleaved(): boolean; getPhotometricInterpretation(): 'RGB' | 'BlackIsZero'; /** * The unit of the 3D scene, i.e. of getModelMatrix() and getVoxelSpacing(). * OME-TIFF: physicalSizeToMatrix divides by 1 µm, so the scene is in µm, * whatever PhysicalSizeXUnit is (only when physical sizes exist; * otherwise pixels, unit unknown → null). * OME-Zarr: the model matrix is in the units of the NGFF axes, as spelled * there (e.g. 'micrometer'). */ getSpatialUnit(): string | null; /** * Meters per 3D scene unit, i.e. the unit of getModelMatrix(). * Null when the unit is unknown. */ getSceneMetersPerUnit(): number | null; /** * Level-0 voxel size, ZYX, in units of getSpatialUnit(): the scale of each * axis of getModelMatrix() (including transforms from the file options), * times the scale of the non-standard root-level coordinateTransformations * that some converted OME-Zarr datasets (e.g. kingsnake, f8ii, melanoma) use * for their physical spacing. getModelMatrix() itself ignores the latter. */ getVoxelSpacing(): [number, number, number]; /** * Every resolution level as stored, finest first, with its chunk shape * and, for OME-Zarr, the scale of its multiscales dataset. * For OME-TIFF, the chunk is each level's own TIFF tile, read from its TIFF * directory (viv's tileSize is level 0's for every level). */ getResolutionLevels(): Promise; /** * Value range of each channel from the image metadata, in the order of * getChannelObjects(): its defaultWindow, or for OME-TIFF the sample range * the writer recorded in the TIFF (see readTiffSampleRange), which needs a * read of the first TIFF directory. Undefined for channels without either. */ getChannelWindows(): Promise; } //# sourceMappingURL=ImageWrapper.d.ts.map