@itk-wasm/image-io
Version:
Input and output for scientific and medical image file formats.
15 lines (14 loc) • 866 B
TypeScript
import { IntTypes, FloatTypes, PixelTypes, WorkerPoolFunctionOption } from 'itk-wasm';
interface WriteImageOptions extends WorkerPoolFunctionOption {
/** Component type, from itk-wasm IntTypes, FloatTypes, for the output pixel components. Defaults to the input component type. */
componentType?: typeof IntTypes[keyof typeof IntTypes] | typeof FloatTypes[keyof typeof FloatTypes];
/** Pixel type, from itk-wasm PixelTypes, for the output pixels. Defaults to the input pixel type. */
pixelType?: typeof PixelTypes[keyof typeof PixelTypes];
/** Use compression when writing the image if the IO formt supports it. */
useCompression?: boolean;
/** Mime type of the output image file. */
mimeType?: string;
/** Only write the image information, not the pixel data. */
informationOnly?: boolean;
}
export default WriteImageOptions;