FastWarp
Copyright 2026 Wyss Center for Bio and Neuroengineering

Licensed under the Apache License, Version 2.0 (LICENSE).

The registration engine (crates/fastwarp-core, fastwarp-niftiio, fastwarp-matfile, fastwarp-reg,
fastwarp-gpu) is copied from Wyss DBS Localizer, the project in which the code was first developed, written by
Richard Köhler and Jan Philipp Payonk.

Portions of fastwarp-reg, fastwarp-gpu and fastwarp-py are derived from the Insight Toolkit
(ITK) v5.4.4 and from ANTs (Advanced Normalization Tools) v2.6.5, both licensed under the
Apache License, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0). Each derived file
carries the upstream copyright line and the Apache header and states what was changed;
docs/THIRD_PARTY_PORTS.md lists the upstream files and the changes.

ITK Software Licenses
The copyright of the Insight Toolkit (ITK) is held by:
  Copyright 1999-2019    Insight Software Consortium
  Copyright 2020-present NumFOCUS
This software is distributed under the Apache 2.0 License.

ANTs: Copyright the ANTs developers, https://github.com/ANTsX/ANTs,
licensed under the Apache License, Version 2.0.

Mersenne Twister (BSD-3-Clause)
The sample-point generator (crates/fastwarp-reg/src/sampling.rs) is derived from ITK's
itkMersenneTwisterRandomVariateGenerator.h, which is itself derived from the Mersenne
Twister code of Makoto Matsumoto, Takuji Nishimura, Shawn Cokus and Richard J. Wagner.
The notice of that code:

  Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
  Copyright (C) 2000 - 2003, Richard J. Wagner
  All rights reserved.

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
  are met:

    1. Redistributions of source code must retain the above copyright
       notice, this list of conditions and the following disclaimer.

    2. Redistributions in binary form must reproduce the above copyright
       notice, this list of conditions and the following disclaimer in the
       documentation and/or other materials provided with the distribution.

    3. The names of its contributors may not be used to endorse or promote
       products derived from this software without specific prior written
       permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

FastWarp is an independent implementation. It is not affiliated with or
endorsed by the ITK or ANTs projects.
