ITKElastix

repository·main·Indexed 42 days ago

https://github.com/insightsoftwareconsortium/itkelastix

Provides Python, JavaScript, and WebAssembly interfaces to elastix, a toolbox for rigid and non-rigid medical image registration based on the Insight Toolkit (ITK). It includes native Python binaries via itk-elastix, WebAssembly support via itkwasm-elastix, and JavaScript/TypeScript bindings via @itk-wasm/elastix for both browser and Node.js environments.

Tokens
44K
Snippets
130
Records
145
Agent score
53%

What's inside ITKElastix

  1. Use the @itk-wasm/elastix Node interface

    main

    The Node interface of @itk-wasm/elastix provides asynchronous functions for image registration and transformation optimized for Node.js environments. Unlike the browser interface, these functions do not use WebWorkers for computation (as they run in the Node environment directly).

    Key functions include:

    • defaultParameterMapNode: Generates default Elastix parameter maps.
    • elastixNode: Performs image registration.
    • readParameterFilesNode: Reads Elastix parameter text files.
    • transformixNode: Applies transforms to images.
    • writeParameterFilesNode: Writes parameter objects to text files.

    Import these functions from @itk-wasm/elastix using the *Node suffix.

    import {
      defaultParameterMapNode,
      elastixNode,
      readParameterFilesNode,
      transformixNode,
      writeParameterFilesNode,
    } from "@itk-wasm/elastix"