🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

@itk-wasm/image-io

Package Overview
Dependencies
Maintainers
0
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@itk-wasm/image-io

Input and output for scientific and medical image file formats.

1.6.0
latest
Source
npm
Version published
Weekly downloads
537
-28.02%
Maintainers
0
Weekly downloads
 
Created
Source

@itk-wasm/image-io

npm version

Input and output for scientific and medical image file formats.

💻 Live API Demo

🕮 Documentation 📚

Installation

npm install @itk-wasm/image-io

Usage

Browser interface

Import:

import {
  readImage,
  writeImage,
  bioRadReadImage,
  bioRadWriteImage,
  bmpReadImage,
  bmpWriteImage,
  fdfReadImage,
  fdfWriteImage,
  gdcmReadImage,
  gdcmWriteImage,
  geAdwReadImage,
  geAdwWriteImage,
  ge4ReadImage,
  ge4WriteImage,
  ge5ReadImage,
  ge5WriteImage,
  giplReadImage,
  giplWriteImage,
  hdf5ReadImage,
  hdf5WriteImage,
  jpegReadImage,
  jpegWriteImage,
  lsmReadImage,
  lsmWriteImage,
  metaReadImage,
  metaWriteImage,
  mghReadImage,
  mghWriteImage,
  mincReadImage,
  mincWriteImage,
  mrcReadImage,
  mrcWriteImage,
  niftiReadImage,
  niftiWriteImage,
  nrrdReadImage,
  nrrdWriteImage,
  pngReadImage,
  pngWriteImage,
  scancoReadImage,
  scancoWriteImage,
  tiffReadImage,
  tiffWriteImage,
  vtkReadImage,
  vtkWriteImage,
  wasmReadImage,
  wasmWriteImage,
  wasmZstdReadImage,
  wasmZstdWriteImage,
  setPipelinesBaseUrl,
  getPipelinesBaseUrl,
} from "@itk-wasm/image-io"

readImage

Read an image file format and convert it to an itk-wasm Image.

async function readImage(
  serializedImage: File | BinaryFile,
  options: ReadImageOptions = {}
) : Promise<ReadImageResult>
ParameterTypeDescription
serializedImageFile or BinaryFileInput image serialized in the file format.

ReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
componentTypetypeof IntTypes or typeof FloatTypesComponent type, from itk-wasm IntTypes, FloatTypes, for the output pixel components. Defaults to the input component type.
pixelTypetypeof PixelTypesPixel type, from itk-wasm PixelTypes, for the output pixels. Defaults to the input pixel type.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

ReadImageResult interface:

PropertyTypeDescription
webWorkerWorkerWebWorker used for computation
imageImageOutput image

writeImage

Write an itk-wasm Image converted to an image file format

async function writeImage(
  image: Image,
  serializedImage: string,
  options: WriteImageOptions = {}
) : Promise<WriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

WriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
mimeTypestringMime type of the output image file.
componentTypetypeof IntTypes or typeof FloatTypesComponent type, from itk-wasm IntTypes, FloatTypes, for the output pixel components. Defaults to the input component type.
pixelTypetypeof PixelTypesPixel type, from itk-wasm PixelTypes, for the output pixels. Defaults to the input pixel type.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

WriteImageResult interface:

PropertyTypeDescription
webWorkerWorkerWebWorker used for computation
serializedImageBinaryFileOutput image serialized in the file format.

bioRadReadImage

Read an image file format and convert it to the itk-wasm file format

async function bioRadReadImage(
  serializedImage: File | BinaryFile,
  options: BioRadReadImageOptions = {}
) : Promise<BioRadReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

BioRadReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

BioRadReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

bioRadWriteImage

Write an itk-wasm file format converted to an image file format

async function bioRadWriteImage(
  image: Image,
  serializedImage: string,
  options: BioRadWriteImageOptions = {}
) : Promise<BioRadWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

BioRadWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

BioRadWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

bmpReadImage

Read an image file format and convert it to the itk-wasm file format

async function bmpReadImage(
  serializedImage: File | BinaryFile,
  options: BmpReadImageOptions = {}
) : Promise<BmpReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

BmpReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

BmpReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

bmpWriteImage

Write an itk-wasm file format converted to an image file format

async function bmpWriteImage(
  image: Image,
  serializedImage: string,
  options: BmpWriteImageOptions = {}
) : Promise<BmpWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

BmpWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

BmpWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

fdfReadImage

Read an image file format and convert it to the itk-wasm file format

async function fdfReadImage(
  serializedImage: File | BinaryFile,
  options: FdfReadImageOptions = {}
) : Promise<FdfReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

FdfReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

FdfReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

fdfWriteImage

Write an itk-wasm file format converted to an image file format

async function fdfWriteImage(
  image: Image,
  serializedImage: string,
  options: FdfWriteImageOptions = {}
) : Promise<FdfWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

FdfWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

FdfWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

gdcmReadImage

Read an image file format and convert it to the itk-wasm file format

async function gdcmReadImage(
  serializedImage: File | BinaryFile,
  options: GdcmReadImageOptions = {}
) : Promise<GdcmReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

GdcmReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

GdcmReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

gdcmWriteImage

Write an itk-wasm file format converted to an image file format

async function gdcmWriteImage(
  image: Image,
  serializedImage: string,
  options: GdcmWriteImageOptions = {}
) : Promise<GdcmWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

GdcmWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

GdcmWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

geAdwReadImage

Read an image file format and convert it to the itk-wasm file format

async function geAdwReadImage(
  serializedImage: File | BinaryFile,
  options: GeAdwReadImageOptions = {}
) : Promise<GeAdwReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

GeAdwReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

GeAdwReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

geAdwWriteImage

Write an itk-wasm file format converted to an image file format

async function geAdwWriteImage(
  image: Image,
  serializedImage: string,
  options: GeAdwWriteImageOptions = {}
) : Promise<GeAdwWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

GeAdwWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

GeAdwWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

ge4ReadImage

Read an image file format and convert it to the itk-wasm file format

async function ge4ReadImage(
  serializedImage: File | BinaryFile,
  options: Ge4ReadImageOptions = {}
) : Promise<Ge4ReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

Ge4ReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

Ge4ReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

ge4WriteImage

Write an itk-wasm file format converted to an image file format

async function ge4WriteImage(
  image: Image,
  serializedImage: string,
  options: Ge4WriteImageOptions = {}
) : Promise<Ge4WriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

Ge4WriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

Ge4WriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

ge5ReadImage

Read an image file format and convert it to the itk-wasm file format

async function ge5ReadImage(
  serializedImage: File | BinaryFile,
  options: Ge5ReadImageOptions = {}
) : Promise<Ge5ReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

Ge5ReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

Ge5ReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

ge5WriteImage

Write an itk-wasm file format converted to an image file format

async function ge5WriteImage(
  image: Image,
  serializedImage: string,
  options: Ge5WriteImageOptions = {}
) : Promise<Ge5WriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

Ge5WriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

Ge5WriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

giplReadImage

Read an image file format and convert it to the itk-wasm file format

async function giplReadImage(
  serializedImage: File | BinaryFile,
  options: GiplReadImageOptions = {}
) : Promise<GiplReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

GiplReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

GiplReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

giplWriteImage

Write an itk-wasm file format converted to an image file format

async function giplWriteImage(
  image: Image,
  serializedImage: string,
  options: GiplWriteImageOptions = {}
) : Promise<GiplWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

GiplWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

GiplWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

hdf5ReadImage

Read an image file format and convert it to the itk-wasm file format

async function hdf5ReadImage(
  serializedImage: File | BinaryFile,
  options: Hdf5ReadImageOptions = {}
) : Promise<Hdf5ReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

Hdf5ReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

Hdf5ReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

hdf5WriteImage

Write an itk-wasm file format converted to an image file format

async function hdf5WriteImage(
  image: Image,
  serializedImage: string,
  options: Hdf5WriteImageOptions = {}
) : Promise<Hdf5WriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

Hdf5WriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

Hdf5WriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

jpegReadImage

Read an image file format and convert it to the itk-wasm file format

async function jpegReadImage(
  serializedImage: File | BinaryFile,
  options: JpegReadImageOptions = {}
) : Promise<JpegReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

JpegReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

JpegReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

jpegWriteImage

Write an itk-wasm file format converted to an image file format

async function jpegWriteImage(
  image: Image,
  serializedImage: string,
  options: JpegWriteImageOptions = {}
) : Promise<JpegWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

JpegWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

JpegWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

lsmReadImage

Read an image file format and convert it to the itk-wasm file format

async function lsmReadImage(
  serializedImage: File | BinaryFile,
  options: LsmReadImageOptions = {}
) : Promise<LsmReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

LsmReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

LsmReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

lsmWriteImage

Write an itk-wasm file format converted to an image file format

async function lsmWriteImage(
  image: Image,
  serializedImage: string,
  options: LsmWriteImageOptions = {}
) : Promise<LsmWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

LsmWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

LsmWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

metaReadImage

Read an image file format and convert it to the itk-wasm file format

async function metaReadImage(
  serializedImage: File | BinaryFile,
  options: MetaReadImageOptions = {}
) : Promise<MetaReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

MetaReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MetaReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

metaWriteImage

Write an itk-wasm file format converted to an image file format

async function metaWriteImage(
  image: Image,
  serializedImage: string,
  options: MetaWriteImageOptions = {}
) : Promise<MetaWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MetaWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MetaWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

mghReadImage

Read an image file format and convert it to the itk-wasm file format

async function mghReadImage(
  serializedImage: File | BinaryFile,
  options: MghReadImageOptions = {}
) : Promise<MghReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

MghReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MghReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

mghWriteImage

Write an itk-wasm file format converted to an image file format

async function mghWriteImage(
  image: Image,
  serializedImage: string,
  options: MghWriteImageOptions = {}
) : Promise<MghWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MghWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MghWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

mincReadImage

Read an image file format and convert it to the itk-wasm file format

async function mincReadImage(
  serializedImage: File | BinaryFile,
  options: MincReadImageOptions = {}
) : Promise<MincReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

MincReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MincReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

mincWriteImage

Write an itk-wasm file format converted to an image file format

async function mincWriteImage(
  image: Image,
  serializedImage: string,
  options: MincWriteImageOptions = {}
) : Promise<MincWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MincWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MincWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

mrcReadImage

Read an image file format and convert it to the itk-wasm file format

async function mrcReadImage(
  serializedImage: File | BinaryFile,
  options: MrcReadImageOptions = {}
) : Promise<MrcReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

MrcReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MrcReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

mrcWriteImage

Write an itk-wasm file format converted to an image file format

async function mrcWriteImage(
  image: Image,
  serializedImage: string,
  options: MrcWriteImageOptions = {}
) : Promise<MrcWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MrcWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

MrcWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

niftiReadImage

Read an image file format and convert it to the itk-wasm file format

async function niftiReadImage(
  serializedImage: File | BinaryFile,
  options: NiftiReadImageOptions = {}
) : Promise<NiftiReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

NiftiReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

NiftiReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

niftiWriteImage

Write an itk-wasm file format converted to an image file format

async function niftiWriteImage(
  image: Image,
  serializedImage: string,
  options: NiftiWriteImageOptions = {}
) : Promise<NiftiWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

NiftiWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

NiftiWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

nrrdReadImage

Read an image file format and convert it to the itk-wasm file format

async function nrrdReadImage(
  serializedImage: File | BinaryFile,
  options: NrrdReadImageOptions = {}
) : Promise<NrrdReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

NrrdReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

NrrdReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

nrrdWriteImage

Write an itk-wasm file format converted to an image file format

async function nrrdWriteImage(
  image: Image,
  serializedImage: string,
  options: NrrdWriteImageOptions = {}
) : Promise<NrrdWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

NrrdWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

NrrdWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

pngReadImage

Read an image file format and convert it to the itk-wasm file format

async function pngReadImage(
  serializedImage: File | BinaryFile,
  options: PngReadImageOptions = {}
) : Promise<PngReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

PngReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

PngReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

pngWriteImage

Write an itk-wasm file format converted to an image file format

async function pngWriteImage(
  image: Image,
  serializedImage: string,
  options: PngWriteImageOptions = {}
) : Promise<PngWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

PngWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

PngWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

scancoReadImage

Read an image file format and convert it to the itk-wasm file format

async function scancoReadImage(
  serializedImage: File | BinaryFile,
  options: ScancoReadImageOptions = {}
) : Promise<ScancoReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

ScancoReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

ScancoReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

scancoWriteImage

Write an itk-wasm file format converted to an image file format

async function scancoWriteImage(
  image: Image,
  serializedImage: string,
  options: ScancoWriteImageOptions = {}
) : Promise<ScancoWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

ScancoWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

ScancoWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

tiffReadImage

Read an image file format and convert it to the itk-wasm file format

async function tiffReadImage(
  serializedImage: File | BinaryFile,
  options: TiffReadImageOptions = {}
) : Promise<TiffReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

TiffReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

TiffReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

tiffWriteImage

Write an itk-wasm file format converted to an image file format

async function tiffWriteImage(
  image: Image,
  serializedImage: string,
  options: TiffWriteImageOptions = {}
) : Promise<TiffWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

TiffWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

TiffWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

vtkReadImage

Read an image file format and convert it to the itk-wasm file format

async function vtkReadImage(
  serializedImage: File | BinaryFile,
  options: VtkReadImageOptions = {}
) : Promise<VtkReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

VtkReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

VtkReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

vtkWriteImage

Write an itk-wasm file format converted to an image file format

async function vtkWriteImage(
  image: Image,
  serializedImage: string,
  options: VtkWriteImageOptions = {}
) : Promise<VtkWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

VtkWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

VtkWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

wasmReadImage

Read an image file format and convert it to the itk-wasm file format

async function wasmReadImage(
  serializedImage: File | BinaryFile,
  options: WasmReadImageOptions = {}
) : Promise<WasmReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

WasmReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

WasmReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

wasmWriteImage

Write an itk-wasm file format converted to an image file format

async function wasmWriteImage(
  image: Image,
  serializedImage: string,
  options: WasmWriteImageOptions = {}
) : Promise<WasmWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

WasmWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

WasmWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

wasmZstdReadImage

Read an image file format and convert it to the itk-wasm file format

async function wasmZstdReadImage(
  serializedImage: File | BinaryFile,
  options: WasmZstdReadImageOptions = {}
) : Promise<WasmZstdReadImageResult>
ParameterTypeDescription
serializedImage*FileBinaryFile*

WasmZstdReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

WasmZstdReadImageResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image
webWorkerWorkerWebWorker used for computation.

wasmZstdWriteImage

Write an itk-wasm file format converted to an image file format

async function wasmZstdWriteImage(
  image: Image,
  serializedImage: string,
  options: WasmZstdWriteImageOptions = {}
) : Promise<WasmZstdWriteImageResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

WasmZstdWriteImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file
webWorkernull or Worker or booleanWebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to false to run in the current thread / worker.
noCopybooleanWhen SharedArrayBuffer's are not available, do not copy inputs.

WasmZstdWriteImageResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.
webWorkerWorkerWebWorker used for computation.

setPipelinesBaseUrl

Set base URL for WebAssembly assets when vendored.

function setPipelinesBaseUrl(
  baseUrl: string | URL
) : void

getPipelinesBaseUrl

Get base URL for WebAssembly assets when vendored.

function getPipelinesBaseUrl() : string | URL

Node interface

Import:

import {
  readImageNode,
  writeImageNode,
  bioRadReadImageNode,
  bioRadWriteImageNode,
  bmpReadImageNode,
  bmpWriteImageNode,
  fdfReadImageNode,
  fdfWriteImageNode,
  gdcmReadImageNode,
  gdcmWriteImageNode,
  geAdwReadImageNode,
  geAdwWriteImageNode,
  ge4ReadImageNode,
  ge4WriteImageNode,
  ge5ReadImageNode,
  ge5WriteImageNode,
  giplReadImageNode,
  giplWriteImageNode,
  hdf5ReadImageNode,
  hdf5WriteImageNode,
  jpegReadImageNode,
  jpegWriteImageNode,
  lsmReadImageNode,
  lsmWriteImageNode,
  metaReadImageNode,
  metaWriteImageNode,
  mghReadImageNode,
  mghWriteImageNode,
  mincReadImageNode,
  mincWriteImageNode,
  mrcReadImageNode,
  mrcWriteImageNode,
  niftiReadImageNode,
  niftiWriteImageNode,
  nrrdReadImageNode,
  nrrdWriteImageNode,
  pngReadImageNode,
  pngWriteImageNode,
  scancoReadImageNode,
  scancoWriteImageNode,
  tiffReadImageNode,
  tiffWriteImageNode,
  vtkReadImageNode,
  vtkWriteImageNode,
  wasmReadImageNode,
  wasmWriteImageNode,
  wasmZstdReadImageNode,
  wasmZstdWriteImageNode,
} from "@itk-wasm/image-io"

readImageNode

Read an image file format and convert it to an itk-wasm Image.

async function readImageNode(
  serializedImage: string,
  options: ReadImageOptions = {}
) : Promise<Image>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format.

ReadImageOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.
componentTypetypeof IntTypes or typeof FloatTypesComponent type, from itk-wasm IntTypes, FloatTypes, for the output pixel components. Defaults to the input component type.
pixelTypetypeof PixelTypesPixel type, from itk-wasm PixelTypes, for the output pixels. Defaults to the input pixel type.

writeImageNode

Write an itk-wasm Image converted to an image file format

async function writeImageNode(
  image: Image,
  serializedImage: string,
  options: WriteImageOptions = {}
) : void
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

bioRadReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function bioRadReadImageNode(
  serializedImage: string,
  options: BioRadReadImageNodeOptions = {}
) : Promise<BioRadReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

BioRadReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

BioRadReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

bioRadWriteImageNode

Write an itk-wasm file format converted to an image file format

async function bioRadWriteImageNode(
  image: Image,
  serializedImage: string,
  options: BioRadWriteImageNodeOptions = {}
) : Promise<BioRadWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

BioRadWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

BioRadWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

bmpReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function bmpReadImageNode(
  serializedImage: string,
  options: BmpReadImageNodeOptions = {}
) : Promise<BmpReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

BmpReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

BmpReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

bmpWriteImageNode

Write an itk-wasm file format converted to an image file format

async function bmpWriteImageNode(
  image: Image,
  serializedImage: string,
  options: BmpWriteImageNodeOptions = {}
) : Promise<BmpWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

BmpWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

BmpWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

fdfReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function fdfReadImageNode(
  serializedImage: string,
  options: FdfReadImageNodeOptions = {}
) : Promise<FdfReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

FdfReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

FdfReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

fdfWriteImageNode

Write an itk-wasm file format converted to an image file format

async function fdfWriteImageNode(
  image: Image,
  serializedImage: string,
  options: FdfWriteImageNodeOptions = {}
) : Promise<FdfWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

FdfWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

FdfWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

gdcmReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function gdcmReadImageNode(
  serializedImage: string,
  options: GdcmReadImageNodeOptions = {}
) : Promise<GdcmReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

GdcmReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

GdcmReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

gdcmWriteImageNode

Write an itk-wasm file format converted to an image file format

async function gdcmWriteImageNode(
  image: Image,
  serializedImage: string,
  options: GdcmWriteImageNodeOptions = {}
) : Promise<GdcmWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

GdcmWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

GdcmWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

geAdwReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function geAdwReadImageNode(
  serializedImage: string,
  options: GeAdwReadImageNodeOptions = {}
) : Promise<GeAdwReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

GeAdwReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

GeAdwReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

geAdwWriteImageNode

Write an itk-wasm file format converted to an image file format

async function geAdwWriteImageNode(
  image: Image,
  serializedImage: string,
  options: GeAdwWriteImageNodeOptions = {}
) : Promise<GeAdwWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

GeAdwWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

GeAdwWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

ge4ReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function ge4ReadImageNode(
  serializedImage: string,
  options: Ge4ReadImageNodeOptions = {}
) : Promise<Ge4ReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

Ge4ReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

Ge4ReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

ge4WriteImageNode

Write an itk-wasm file format converted to an image file format

async function ge4WriteImageNode(
  image: Image,
  serializedImage: string,
  options: Ge4WriteImageNodeOptions = {}
) : Promise<Ge4WriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

Ge4WriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

Ge4WriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

ge5ReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function ge5ReadImageNode(
  serializedImage: string,
  options: Ge5ReadImageNodeOptions = {}
) : Promise<Ge5ReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

Ge5ReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

Ge5ReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

ge5WriteImageNode

Write an itk-wasm file format converted to an image file format

async function ge5WriteImageNode(
  image: Image,
  serializedImage: string,
  options: Ge5WriteImageNodeOptions = {}
) : Promise<Ge5WriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

Ge5WriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

Ge5WriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

giplReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function giplReadImageNode(
  serializedImage: string,
  options: GiplReadImageNodeOptions = {}
) : Promise<GiplReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

GiplReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

GiplReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

giplWriteImageNode

Write an itk-wasm file format converted to an image file format

async function giplWriteImageNode(
  image: Image,
  serializedImage: string,
  options: GiplWriteImageNodeOptions = {}
) : Promise<GiplWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

GiplWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

GiplWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

hdf5ReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function hdf5ReadImageNode(
  serializedImage: string,
  options: Hdf5ReadImageNodeOptions = {}
) : Promise<Hdf5ReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

Hdf5ReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

Hdf5ReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

hdf5WriteImageNode

Write an itk-wasm file format converted to an image file format

async function hdf5WriteImageNode(
  image: Image,
  serializedImage: string,
  options: Hdf5WriteImageNodeOptions = {}
) : Promise<Hdf5WriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

Hdf5WriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

Hdf5WriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

jpegReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function jpegReadImageNode(
  serializedImage: string,
  options: JpegReadImageNodeOptions = {}
) : Promise<JpegReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

JpegReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

JpegReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

jpegWriteImageNode

Write an itk-wasm file format converted to an image file format

async function jpegWriteImageNode(
  image: Image,
  serializedImage: string,
  options: JpegWriteImageNodeOptions = {}
) : Promise<JpegWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

JpegWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

JpegWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

lsmReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function lsmReadImageNode(
  serializedImage: string,
  options: LsmReadImageNodeOptions = {}
) : Promise<LsmReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

LsmReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

LsmReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

lsmWriteImageNode

Write an itk-wasm file format converted to an image file format

async function lsmWriteImageNode(
  image: Image,
  serializedImage: string,
  options: LsmWriteImageNodeOptions = {}
) : Promise<LsmWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

LsmWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

LsmWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

metaReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function metaReadImageNode(
  serializedImage: string,
  options: MetaReadImageNodeOptions = {}
) : Promise<MetaReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

MetaReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

MetaReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

metaWriteImageNode

Write an itk-wasm file format converted to an image file format

async function metaWriteImageNode(
  image: Image,
  serializedImage: string,
  options: MetaWriteImageNodeOptions = {}
) : Promise<MetaWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MetaWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

MetaWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

mghReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function mghReadImageNode(
  serializedImage: string,
  options: MghReadImageNodeOptions = {}
) : Promise<MghReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

MghReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

MghReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

mghWriteImageNode

Write an itk-wasm file format converted to an image file format

async function mghWriteImageNode(
  image: Image,
  serializedImage: string,
  options: MghWriteImageNodeOptions = {}
) : Promise<MghWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MghWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

MghWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

mincReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function mincReadImageNode(
  serializedImage: string,
  options: MincReadImageNodeOptions = {}
) : Promise<MincReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

MincReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

MincReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

mincWriteImageNode

Write an itk-wasm file format converted to an image file format

async function mincWriteImageNode(
  image: Image,
  serializedImage: string,
  options: MincWriteImageNodeOptions = {}
) : Promise<MincWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MincWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

MincWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

mrcReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function mrcReadImageNode(
  serializedImage: string,
  options: MrcReadImageNodeOptions = {}
) : Promise<MrcReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

MrcReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

MrcReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

mrcWriteImageNode

Write an itk-wasm file format converted to an image file format

async function mrcWriteImageNode(
  image: Image,
  serializedImage: string,
  options: MrcWriteImageNodeOptions = {}
) : Promise<MrcWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

MrcWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

MrcWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

niftiReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function niftiReadImageNode(
  serializedImage: string,
  options: NiftiReadImageNodeOptions = {}
) : Promise<NiftiReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

NiftiReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

NiftiReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

niftiWriteImageNode

Write an itk-wasm file format converted to an image file format

async function niftiWriteImageNode(
  image: Image,
  serializedImage: string,
  options: NiftiWriteImageNodeOptions = {}
) : Promise<NiftiWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

NiftiWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

NiftiWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

nrrdReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function nrrdReadImageNode(
  serializedImage: string,
  options: NrrdReadImageNodeOptions = {}
) : Promise<NrrdReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

NrrdReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

NrrdReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

nrrdWriteImageNode

Write an itk-wasm file format converted to an image file format

async function nrrdWriteImageNode(
  image: Image,
  serializedImage: string,
  options: NrrdWriteImageNodeOptions = {}
) : Promise<NrrdWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

NrrdWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

NrrdWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

pngReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function pngReadImageNode(
  serializedImage: string,
  options: PngReadImageNodeOptions = {}
) : Promise<PngReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

PngReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

PngReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

pngWriteImageNode

Write an itk-wasm file format converted to an image file format

async function pngWriteImageNode(
  image: Image,
  serializedImage: string,
  options: PngWriteImageNodeOptions = {}
) : Promise<PngWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

PngWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

PngWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

scancoReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function scancoReadImageNode(
  serializedImage: string,
  options: ScancoReadImageNodeOptions = {}
) : Promise<ScancoReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

ScancoReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

ScancoReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

scancoWriteImageNode

Write an itk-wasm file format converted to an image file format

async function scancoWriteImageNode(
  image: Image,
  serializedImage: string,
  options: ScancoWriteImageNodeOptions = {}
) : Promise<ScancoWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

ScancoWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

ScancoWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

tiffReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function tiffReadImageNode(
  serializedImage: string,
  options: TiffReadImageNodeOptions = {}
) : Promise<TiffReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

TiffReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

TiffReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

tiffWriteImageNode

Write an itk-wasm file format converted to an image file format

async function tiffWriteImageNode(
  image: Image,
  serializedImage: string,
  options: TiffWriteImageNodeOptions = {}
) : Promise<TiffWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

TiffWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

TiffWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

vtkReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function vtkReadImageNode(
  serializedImage: string,
  options: VtkReadImageNodeOptions = {}
) : Promise<VtkReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

VtkReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

VtkReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

vtkWriteImageNode

Write an itk-wasm file format converted to an image file format

async function vtkWriteImageNode(
  image: Image,
  serializedImage: string,
  options: VtkWriteImageNodeOptions = {}
) : Promise<VtkWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

VtkWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

VtkWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

wasmReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function wasmReadImageNode(
  serializedImage: string,
  options: WasmReadImageNodeOptions = {}
) : Promise<WasmReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

WasmReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

WasmReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

wasmWriteImageNode

Write an itk-wasm file format converted to an image file format

async function wasmWriteImageNode(
  image: Image,
  serializedImage: string,
  options: WasmWriteImageNodeOptions = {}
) : Promise<WasmWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

WasmWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

WasmWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

wasmZstdReadImageNode

Read an image file format and convert it to the itk-wasm file format

async function wasmZstdReadImageNode(
  serializedImage: string,
  options: WasmZstdReadImageNodeOptions = {}
) : Promise<WasmZstdReadImageNodeResult>
ParameterTypeDescription
serializedImagestringInput image serialized in the file format

WasmZstdReadImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly read image metadata -- do not read pixel data.

WasmZstdReadImageNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output image is not valid.
imageImageOutput image

wasmZstdWriteImageNode

Write an itk-wasm file format converted to an image file format

async function wasmZstdWriteImageNode(
  image: Image,
  serializedImage: string,
  options: WasmZstdWriteImageNodeOptions = {}
) : Promise<WasmZstdWriteImageNodeResult>
ParameterTypeDescription
imageImageInput image
serializedImagestringOutput image serialized in the file format.

WasmZstdWriteImageNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file

WasmZstdWriteImageNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output image is not valid.
serializedImageBinaryFileOutput image serialized in the file format.

Keywords

itk

FAQs

Package last updated on 24 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts