Third-Party Notice: nibabel
===========================

odx-rs incorporates portions of source code derived from nibabel
(https://nipy.org/nibabel/), copyright (c) 2009-2024 the nibabel
developers. Those portions are line-by-line ports from the
`nibabel.orientations` module and are made available under the MIT
License, the verbatim text of which follows.

Files in odx-rs containing nibabel-derived code:

  - odx-rs/src/nifti_canon.rs
      `nibabel_io_orientation` is ported from
      `nibabel.orientations.io_orientation` (SVD-based voxel-axis to
      world-axis mapping).
      `nibabel_ornt_transform` is ported from
      `nibabel.orientations.ornt_transform` (composing two orientation
      transforms).
      `nibabel_inv_ornt_aff` is ported from
      `nibabel.orientations.inv_ornt_aff` (the affine update that
      accompanies a voxel-grid reorientation).

  - odx-rs/src/formats/dsistudio.rs
      `build_dsistudio_export_geometry` calls through to the helpers
      above to compute the LPS+ voxel reordering used when writing DSI
      Studio (.fib.gz / .fz) files.

The remainder of odx-rs (i.e., files that are not derivative works of
nibabel) is distributed under odx-rs's own license terms; see the
project root for details.

------------------------------------------------------------------------

The MIT License

Copyright (c) 2009-2019 Matthew Brett <matthew.brett@gmail.com>
Copyright (c) 2010-2013 Stephan Gerhard <git@unidesign.ch>
Copyright (c) 2006-2014 Michael Hanke <michael.hanke@gmail.com>
Copyright (c) 2011 Christian Haselgrove <christian.haselgrove@umassmed.edu>
Copyright (c) 2010-2011 Jarrod Millman <jarrod.millman@gmail.com>
Copyright (c) 2011-2019 Yaroslav Halchenko <debian@onerussian.com>
Copyright (c) 2015-2019 Chris Markiewicz <effigies@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
