-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1270 from thewtex/transform-io-high-level
transform io high level
- Loading branch information
Showing
28 changed files
with
583 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const defaultImageTag = '20241107-53b18ede' | ||
const defaultImageTag = '20241111-d4fcf16c' | ||
export default defaultImageTag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,41 @@ | ||
import vtkPolyDataReadMeshNode from './vtk-poly-data-read-mesh-node.js' | ||
import vtkPolyDataWriteMeshNode from './vtk-poly-data-write-mesh-node.js' | ||
import objReadMeshNode from './obj-read-mesh-node.js' | ||
import objWriteMeshNode from './obj-write-mesh-node.js' | ||
import stlReadMeshNode from './stl-read-mesh-node.js' | ||
import stlWriteMeshNode from './stl-write-mesh-node.js' | ||
import offReadMeshNode from './off-read-mesh-node.js' | ||
import offWriteMeshNode from './off-write-mesh-node.js' | ||
import wasmReadMeshNode from './wasm-read-mesh-node.js' | ||
import wasmWriteMeshNode from './wasm-write-mesh-node.js' | ||
import wasmZstdReadMeshNode from './wasm-zstd-read-mesh-node.js' | ||
import wasmZstdWriteMeshNode from './wasm-zstd-write-mesh-node.js' | ||
import swcReadMeshNode from './swc-read-mesh-node.js' | ||
import swcWriteMeshNode from './swc-write-mesh-node.js' | ||
import byuReadMeshNode from './byu-read-mesh-node.js' | ||
import byuWriteMeshNode from './byu-write-mesh-node.js' | ||
import freeSurferAsciiReadMeshNode from './free-surfer-ascii-read-mesh-node.js' | ||
import freeSurferAsciiWriteMeshNode from './free-surfer-ascii-write-mesh-node.js' | ||
import freeSurferBinaryReadMeshNode from './free-surfer-binary-read-mesh-node.js' | ||
import freeSurferBinaryWriteMeshNode from './free-surfer-binary-write-mesh-node.js' | ||
import vtkPolyDataReadMeshNode from "./vtk-poly-data-read-mesh-node.js"; | ||
import vtkPolyDataWriteMeshNode from "./vtk-poly-data-write-mesh-node.js"; | ||
import objReadMeshNode from "./obj-read-mesh-node.js"; | ||
import objWriteMeshNode from "./obj-write-mesh-node.js"; | ||
import stlReadMeshNode from "./stl-read-mesh-node.js"; | ||
import stlWriteMeshNode from "./stl-write-mesh-node.js"; | ||
import offReadMeshNode from "./off-read-mesh-node.js"; | ||
import offWriteMeshNode from "./off-write-mesh-node.js"; | ||
import wasmReadMeshNode from "./wasm-read-mesh-node.js"; | ||
import wasmWriteMeshNode from "./wasm-write-mesh-node.js"; | ||
import wasmZstdReadMeshNode from "./wasm-zstd-read-mesh-node.js"; | ||
import wasmZstdWriteMeshNode from "./wasm-zstd-write-mesh-node.js"; | ||
import swcReadMeshNode from "./swc-read-mesh-node.js"; | ||
import swcWriteMeshNode from "./swc-write-mesh-node.js"; | ||
import byuReadMeshNode from "./byu-read-mesh-node.js"; | ||
import byuWriteMeshNode from "./byu-write-mesh-node.js"; | ||
import freeSurferAsciiReadMeshNode from "./free-surfer-ascii-read-mesh-node.js"; | ||
import freeSurferAsciiWriteMeshNode from "./free-surfer-ascii-write-mesh-node.js"; | ||
import freeSurferBinaryReadMeshNode from "./free-surfer-binary-read-mesh-node.js"; | ||
import freeSurferBinaryWriteMeshNode from "./free-surfer-binary-write-mesh-node.js"; | ||
|
||
const meshIoIndexNode = new Map([ | ||
['vtk', [vtkPolyDataReadMeshNode, vtkPolyDataWriteMeshNode]], | ||
['obj', [objReadMeshNode, objWriteMeshNode]], | ||
['stl', [stlReadMeshNode, stlWriteMeshNode]], | ||
['off', [offReadMeshNode, offWriteMeshNode]], | ||
['wasm', [wasmReadMeshNode, wasmWriteMeshNode]], | ||
['wasm-zst', [wasmZstdReadMeshNode, wasmZstdWriteMeshNode]], | ||
['swc', [swcReadMeshNode, swcWriteMeshNode]], | ||
['byu', [byuReadMeshNode, byuWriteMeshNode]], | ||
['free-surfer-ascii', [freeSurferAsciiReadMeshNode, freeSurferAsciiWriteMeshNode]], | ||
['free-surfer-binary', [freeSurferBinaryReadMeshNode, freeSurferBinaryWriteMeshNode]], | ||
]) | ||
["vtk", [vtkPolyDataReadMeshNode, vtkPolyDataWriteMeshNode]], | ||
["obj", [objReadMeshNode, objWriteMeshNode]], | ||
["stl", [stlReadMeshNode, stlWriteMeshNode]], | ||
["off", [offReadMeshNode, offWriteMeshNode]], | ||
["wasm", [wasmReadMeshNode, wasmWriteMeshNode]], | ||
["wasmZstd", [wasmZstdReadMeshNode, wasmZstdWriteMeshNode]], | ||
["swc", [swcReadMeshNode, swcWriteMeshNode]], | ||
["byu", [byuReadMeshNode, byuWriteMeshNode]], | ||
[ | ||
"freeSurferAscii", | ||
[freeSurferAsciiReadMeshNode, freeSurferAsciiWriteMeshNode], | ||
], | ||
[ | ||
"freeSurferBinary", | ||
[freeSurferBinaryReadMeshNode, freeSurferBinaryWriteMeshNode], | ||
], | ||
]); | ||
|
||
export default meshIoIndexNode | ||
export default meshIoIndexNode; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
import vtkPolyDataReadMesh from './vtk-poly-data-read-mesh.js' | ||
import vtkPolyDataWriteMesh from './vtk-poly-data-write-mesh.js' | ||
import objReadMesh from './obj-read-mesh.js' | ||
import objWriteMesh from './obj-write-mesh.js' | ||
import stlReadMesh from './stl-read-mesh.js' | ||
import stlWriteMesh from './stl-write-mesh.js' | ||
import offReadMesh from './off-read-mesh.js' | ||
import offWriteMesh from './off-write-mesh.js' | ||
import wasmReadMesh from './wasm-read-mesh.js' | ||
import wasmWriteMesh from './wasm-write-mesh.js' | ||
import wasmZstdReadMesh from './wasm-zstd-read-mesh.js' | ||
import wasmZstdWriteMesh from './wasm-zstd-write-mesh.js' | ||
import swcReadMesh from './swc-read-mesh.js' | ||
import swcWriteMesh from './swc-write-mesh.js' | ||
import byuReadMesh from './byu-read-mesh.js' | ||
import byuWriteMesh from './byu-write-mesh.js' | ||
import freeSurferAsciiReadMesh from './free-surfer-ascii-read-mesh.js' | ||
import freeSurferAsciiWriteMesh from './free-surfer-ascii-write-mesh.js' | ||
import freeSurferBinaryReadMesh from './free-surfer-binary-read-mesh.js' | ||
import freeSurferBinaryWriteMesh from './free-surfer-binary-write-mesh.js' | ||
import vtkPolyDataReadMesh from "./vtk-poly-data-read-mesh.js"; | ||
import vtkPolyDataWriteMesh from "./vtk-poly-data-write-mesh.js"; | ||
import objReadMesh from "./obj-read-mesh.js"; | ||
import objWriteMesh from "./obj-write-mesh.js"; | ||
import stlReadMesh from "./stl-read-mesh.js"; | ||
import stlWriteMesh from "./stl-write-mesh.js"; | ||
import offReadMesh from "./off-read-mesh.js"; | ||
import offWriteMesh from "./off-write-mesh.js"; | ||
import wasmReadMesh from "./wasm-read-mesh.js"; | ||
import wasmWriteMesh from "./wasm-write-mesh.js"; | ||
import wasmZstdReadMesh from "./wasm-zstd-read-mesh.js"; | ||
import wasmZstdWriteMesh from "./wasm-zstd-write-mesh.js"; | ||
import swcReadMesh from "./swc-read-mesh.js"; | ||
import swcWriteMesh from "./swc-write-mesh.js"; | ||
import byuReadMesh from "./byu-read-mesh.js"; | ||
import byuWriteMesh from "./byu-write-mesh.js"; | ||
import freeSurferAsciiReadMesh from "./free-surfer-ascii-read-mesh.js"; | ||
import freeSurferAsciiWriteMesh from "./free-surfer-ascii-write-mesh.js"; | ||
import freeSurferBinaryReadMesh from "./free-surfer-binary-read-mesh.js"; | ||
import freeSurferBinaryWriteMesh from "./free-surfer-binary-write-mesh.js"; | ||
|
||
const meshIoIndex = new Map([ | ||
['vtk', [vtkPolyDataReadMesh, vtkPolyDataWriteMesh]], | ||
['obj', [objReadMesh, objWriteMesh]], | ||
['stl', [stlReadMesh, stlWriteMesh]], | ||
['off', [offReadMesh, offWriteMesh]], | ||
['wasm', [wasmReadMesh, wasmWriteMesh]], | ||
['wasm-zst', [wasmZstdReadMesh, wasmZstdWriteMesh]], | ||
['swc', [swcReadMesh, swcWriteMesh]], | ||
['byu', [byuReadMesh, byuWriteMesh]], | ||
['free-surfer-ascii', [freeSurferAsciiReadMesh, freeSurferAsciiWriteMesh]], | ||
['free-surfer-binary', [freeSurferBinaryReadMesh, freeSurferBinaryWriteMesh]], | ||
]) | ||
["vtk", [vtkPolyDataReadMesh, vtkPolyDataWriteMesh]], | ||
["obj", [objReadMesh, objWriteMesh]], | ||
["stl", [stlReadMesh, stlWriteMesh]], | ||
["off", [offReadMesh, offWriteMesh]], | ||
["wasm", [wasmReadMesh, wasmWriteMesh]], | ||
["wasmZstd", [wasmZstdReadMesh, wasmZstdWriteMesh]], | ||
["swc", [swcReadMesh, swcWriteMesh]], | ||
["byu", [byuReadMesh, byuWriteMesh]], | ||
["freeSurferAscii", [freeSurferAsciiReadMesh, freeSurferAsciiWriteMesh]], | ||
["freeSurferBinary", [freeSurferBinaryReadMesh, freeSurferBinaryWriteMesh]], | ||
]); | ||
|
||
export default meshIoIndex | ||
export default meshIoIndex; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.43 KB
(100%)
...m-transform-io-wasi/itkwasm_transform_io_wasi/wasm_modules/hdf5-write-transform.wasi.wasm
Binary file not shown.
Binary file modified
BIN
+1.43 KB
(100%)
...sm-transform-io-wasi/itkwasm_transform_io_wasi/wasm_modules/mat-write-transform.wasi.wasm
Binary file not shown.
Binary file modified
BIN
+1.43 KB
(100%)
...sm-transform-io-wasi/itkwasm_transform_io_wasi/wasm_modules/mnc-write-transform.wasi.wasm
Binary file not shown.
Binary file modified
BIN
+1.43 KB
(100%)
...sm-transform-io-wasi/itkwasm_transform_io_wasi/wasm_modules/txt-write-transform.wasi.wasm
Binary file not shown.
Binary file modified
BIN
+1.44 KB
(100%)
...m-transform-io-wasi/itkwasm_transform_io_wasi/wasm_modules/wasm-write-transform.wasi.wasm
Binary file not shown.
Binary file modified
BIN
+1.44 KB
(100%)
...nsform-io-wasi/itkwasm_transform_io_wasi/wasm_modules/wasm-zstd-write-transform.wasi.wasm
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/transform-io/typescript/src/extension-to-transform-io.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const extensionToTransformIo = new Map([ | ||
["h5", "hdf5"], | ||
["hdf5", "hdf5"], | ||
["txt", "txt"], | ||
["mat", "mat"], | ||
["xfm", "mnc"], | ||
["iwt", "wasm"], | ||
["iwt.cbor", "wasm"], | ||
["iwt.cbor.zst", "wasm-zstd"], | ||
]); | ||
|
||
export default extensionToTransformIo; |
Oops, something went wrong.