1.1.1 • Published 2 months ago

@itk-wasm/mesh-io v1.1.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 months ago

@itk-wasm/mesh-io

npm version

Input and output for mesh file formats.

💻 Live API Demo

🕮 Documentation 📚

Installation

npm install @itk-wasm/mesh-io

Usage

Browser interface

Import:

import {
  readMesh,
  writeMesh,
  byuReadMesh,
  byuWriteMesh,
  freeSurferAsciiReadMesh,
  freeSurferAsciiWriteMesh,
  freeSurferBinaryReadMesh,
  freeSurferBinaryWriteMesh,
  objReadMesh,
  objWriteMesh,
  offReadMesh,
  offWriteMesh,
  stlReadMesh,
  stlWriteMesh,
  swcReadMesh,
  swcWriteMesh,
  vtkPolyDataReadMesh,
  vtkPolyDataWriteMesh,
  wasmReadMesh,
  wasmWriteMesh,
  wasmZstdReadMesh,
  wasmZstdWriteMesh,
  setPipelinesBaseUrl,
  getPipelinesBaseUrl,
} from "@itk-wasm/mesh-io"

readMesh

Read a mesh file format and convert it to the itk-wasm file format

async function readMesh(
  serializedMesh: File | BinaryFile,
  options: ReadMeshOptions = {}
) : Promise<ReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

ReadMeshOptions 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.

ReadMeshResult interface:

PropertyTypeDescription
webWorkerWorkerWebWorker used for computation.
meshMeshOutput mesh

writeMesh

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

async function writeMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: WriteMeshOptions = {}
) : Promise<WriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

WriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

WriteMeshResult interface:

PropertyTypeDescription
webWorkerWorkerWebWorker used for computation.
serializedMeshBinaryFileOutput mesh

byuReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function byuReadMesh(
  serializedMesh: File | BinaryFile,
  options: ByuReadMeshOptions = {}
) : Promise<ByuReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

ByuReadMeshOptions 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.

ByuReadMeshResult interface:

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

byuWriteMesh

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

async function byuWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: ByuWriteMeshOptions = {}
) : Promise<ByuWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

ByuWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

ByuWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

freeSurferAsciiReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function freeSurferAsciiReadMesh(
  serializedMesh: File | BinaryFile,
  options: FreeSurferAsciiReadMeshOptions = {}
) : Promise<FreeSurferAsciiReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

FreeSurferAsciiReadMeshOptions 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.

FreeSurferAsciiReadMeshResult interface:

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

freeSurferAsciiWriteMesh

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

async function freeSurferAsciiWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: FreeSurferAsciiWriteMeshOptions = {}
) : Promise<FreeSurferAsciiWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

FreeSurferAsciiWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

FreeSurferAsciiWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

freeSurferBinaryReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function freeSurferBinaryReadMesh(
  serializedMesh: File | BinaryFile,
  options: FreeSurferBinaryReadMeshOptions = {}
) : Promise<FreeSurferBinaryReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

FreeSurferBinaryReadMeshOptions 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.

FreeSurferBinaryReadMeshResult interface:

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

freeSurferBinaryWriteMesh

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

async function freeSurferBinaryWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: FreeSurferBinaryWriteMeshOptions = {}
) : Promise<FreeSurferBinaryWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

FreeSurferBinaryWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

FreeSurferBinaryWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

objReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function objReadMesh(
  serializedMesh: File | BinaryFile,
  options: ObjReadMeshOptions = {}
) : Promise<ObjReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

ObjReadMeshOptions 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.

ObjReadMeshResult interface:

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

objWriteMesh

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

async function objWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: ObjWriteMeshOptions = {}
) : Promise<ObjWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

ObjWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

ObjWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

offReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function offReadMesh(
  serializedMesh: File | BinaryFile,
  options: OffReadMeshOptions = {}
) : Promise<OffReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

OffReadMeshOptions 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.

OffReadMeshResult interface:

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

offWriteMesh

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

async function offWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: OffWriteMeshOptions = {}
) : Promise<OffWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

OffWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

OffWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

stlReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function stlReadMesh(
  serializedMesh: File | BinaryFile,
  options: StlReadMeshOptions = {}
) : Promise<StlReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

StlReadMeshOptions 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.

StlReadMeshResult interface:

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

stlWriteMesh

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

async function stlWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: StlWriteMeshOptions = {}
) : Promise<StlWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

StlWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

StlWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

swcReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function swcReadMesh(
  serializedMesh: File | BinaryFile,
  options: SwcReadMeshOptions = {}
) : Promise<SwcReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

SwcReadMeshOptions 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.

SwcReadMeshResult interface:

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

swcWriteMesh

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

async function swcWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: SwcWriteMeshOptions = {}
) : Promise<SwcWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

SwcWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

SwcWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

vtkPolyDataReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function vtkPolyDataReadMesh(
  serializedMesh: File | BinaryFile,
  options: VtkPolyDataReadMeshOptions = {}
) : Promise<VtkPolyDataReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

VtkPolyDataReadMeshOptions 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.

VtkPolyDataReadMeshResult interface:

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

vtkPolyDataWriteMesh

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

async function vtkPolyDataWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: VtkPolyDataWriteMeshOptions = {}
) : Promise<VtkPolyDataWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

VtkPolyDataWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

VtkPolyDataWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

wasmReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function wasmReadMesh(
  serializedMesh: File | BinaryFile,
  options: WasmReadMeshOptions = {}
) : Promise<WasmReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

WasmReadMeshOptions 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.

WasmReadMeshResult interface:

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

wasmWriteMesh

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

async function wasmWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: WasmWriteMeshOptions = {}
) : Promise<WasmWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

WasmWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

WasmWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
webWorkerWorkerWebWorker used for computation.

wasmZstdReadMesh

Read a mesh file format and convert it to the itk-wasm file format

async function wasmZstdReadMesh(
  serializedMesh: File | BinaryFile,
  options: WasmZstdReadMeshOptions = {}
) : Promise<WasmZstdReadMeshResult>
ParameterTypeDescription
serializedMesh*FileBinaryFile*Input mesh serialized in the file format

WasmZstdReadMeshOptions 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.

WasmZstdReadMeshResult interface:

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

wasmZstdWriteMesh

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

async function wasmZstdWriteMesh(
  mesh: Mesh,
  serializedMesh: string,
  options: WasmZstdWriteMeshOptions = {}
) : Promise<WasmZstdWriteMeshResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

WasmZstdWriteMeshOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported
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.

WasmZstdWriteMeshResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh
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 {
  byuReadMeshNode,
  byuWriteMeshNode,
  freeSurferAsciiReadMeshNode,
  freeSurferAsciiWriteMeshNode,
  freeSurferBinaryReadMeshNode,
  freeSurferBinaryWriteMeshNode,
  objReadMeshNode,
  objWriteMeshNode,
  offReadMeshNode,
  offWriteMeshNode,
  stlReadMeshNode,
  stlWriteMeshNode,
  swcReadMeshNode,
  swcWriteMeshNode,
  vtkPolyDataReadMeshNode,
  vtkPolyDataWriteMeshNode,
  wasmReadMeshNode,
  wasmWriteMeshNode,
  wasmZstdReadMeshNode,
  wasmZstdWriteMeshNode,
} from "@itk-wasm/mesh-io"

byuReadMeshNode

Read a mesh file format and convert it to the itk-wasm file format

async function byuReadMeshNode(
  serializedMesh: string,
  options: ByuReadMeshNodeOptions = {}
) : Promise<ByuReadMeshNodeResult>
ParameterTypeDescription
serializedMeshstringInput mesh serialized in the file format

ByuReadMeshNodeOptions interface:

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

ByuReadMeshNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output mesh is not valid.
meshMeshOutput mesh

byuWriteMeshNode

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

async function byuWriteMeshNode(
  mesh: Mesh,
  serializedMesh: string,
  options: ByuWriteMeshNodeOptions = {}
) : Promise<ByuWriteMeshNodeResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

ByuWriteMeshNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported

ByuWriteMeshNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh

freeSurferAsciiReadMeshNode

Read a mesh file format and convert it to the itk-wasm file format

async function freeSurferAsciiReadMeshNode(
  serializedMesh: string,
  options: FreeSurferAsciiReadMeshNodeOptions = {}
) : Promise<FreeSurferAsciiReadMeshNodeResult>
ParameterTypeDescription
serializedMeshstringInput mesh serialized in the file format

FreeSurferAsciiReadMeshNodeOptions interface:

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

FreeSurferAsciiReadMeshNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output mesh is not valid.
meshMeshOutput mesh

freeSurferAsciiWriteMeshNode

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

async function freeSurferAsciiWriteMeshNode(
  mesh: Mesh,
  serializedMesh: string,
  options: FreeSurferAsciiWriteMeshNodeOptions = {}
) : Promise<FreeSurferAsciiWriteMeshNodeResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

FreeSurferAsciiWriteMeshNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported

FreeSurferAsciiWriteMeshNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh

freeSurferBinaryReadMeshNode

Read a mesh file format and convert it to the itk-wasm file format

async function freeSurferBinaryReadMeshNode(
  serializedMesh: string,
  options: FreeSurferBinaryReadMeshNodeOptions = {}
) : Promise<FreeSurferBinaryReadMeshNodeResult>
ParameterTypeDescription
serializedMeshstringInput mesh serialized in the file format

FreeSurferBinaryReadMeshNodeOptions interface:

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

FreeSurferBinaryReadMeshNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output mesh is not valid.
meshMeshOutput mesh

freeSurferBinaryWriteMeshNode

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

async function freeSurferBinaryWriteMeshNode(
  mesh: Mesh,
  serializedMesh: string,
  options: FreeSurferBinaryWriteMeshNodeOptions = {}
) : Promise<FreeSurferBinaryWriteMeshNodeResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

FreeSurferBinaryWriteMeshNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported

FreeSurferBinaryWriteMeshNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh

objReadMeshNode

Read a mesh file format and convert it to the itk-wasm file format

async function objReadMeshNode(
  serializedMesh: string,
  options: ObjReadMeshNodeOptions = {}
) : Promise<ObjReadMeshNodeResult>
ParameterTypeDescription
serializedMeshstringInput mesh serialized in the file format

ObjReadMeshNodeOptions interface:

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

ObjReadMeshNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output mesh is not valid.
meshMeshOutput mesh

objWriteMeshNode

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

async function objWriteMeshNode(
  mesh: Mesh,
  serializedMesh: string,
  options: ObjWriteMeshNodeOptions = {}
) : Promise<ObjWriteMeshNodeResult>
ParameterTypeDescription
meshMeshInput mesh
serializedMeshstringOutput mesh

ObjWriteMeshNodeOptions interface:

PropertyTypeDescription
informationOnlybooleanOnly write image metadata -- do not write pixel data.
useCompressionbooleanUse compression in the written file, if supported
binaryFileTypebooleanUse a binary file type in the written file, if supported

ObjWriteMeshNodeResult interface:

PropertyTypeDescription
couldWriteJsonCompatibleWhether the input could be written. If false, the output mesh is not valid.
serializedMeshBinaryFileOutput mesh

offReadMeshNode

Read a mesh file format and convert it to the itk-wasm file format

async function offReadMeshNode(
  serializedMesh: string,
  options: OffReadMeshNodeOptions = {}
) : Promise<OffReadMeshNodeResult>
ParameterTypeDescription
serializedMeshstringInput mesh serialized in the file format

OffReadMeshNodeOptions interface:

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

OffReadMeshNodeResult interface:

PropertyTypeDescription
couldReadJsonCompatibleWhether the input could be read. If false, the output mesh is not valid.
meshMeshOutput mesh

offWriteMeshNode

*Write an i

1.1.1

2 months ago

1.1.0

4 months ago

1.0.0

4 months ago

0.2.2

5 months ago

0.2.1

5 months ago

0.2.0

5 months ago

0.1.0

5 months ago