ITK
ITK copied to clipboard
Insight Toolkit (ITK) -- Official Repository. ITK builds on a proven, spatially-oriented architecture for processing, segmentation, and registration of scientific images in two, three, or more dimens...
## Description ITK's NRRD reader uses locale-dependent `sscanf`/`sprintf` to parse floating-point metadata (spacing, origin, direction vectors). In locales using comma as decimal separator (e.g., `de_DE.UTF-8`), values like `0.878906` parse as...
### Description ITK’s NRRD reader parses floating-point metadata (such as spacing, direction vectors, and other numeric header fields) using locale-dependent number parsing (`strtod`). In numeric locales where the decimal separator...
## Description Implements PEP 688 buffer protocol support for ITK Images and ImportImageContainers, enabling zero-copy NumPy interoperability in Python 3.12+. Based on #5665 by @blowekamp with fixes for test failures...
Sharing code I wrote to play around with [PEP 688](https://peps.python.org/pep-0688/) in ITK Python.
### Description The `Get` function of an iterator on an `itk::Image` of `itk::VariableLengthVector` returns an `itk::VariableLengthVector` which data points to a pixel of the `itk::Image`. This is because the `DefaultVectorPixelAccessor::Get`...
Instead of introducing a new virtual member function, `DataObjectError::PrintSelf`. It is essential that DataObjectError overrides `ExceptionObject::Print`, because that is the member function that is called, when doing `std::cerr
`castxml` fails to configure ITK properly ```log FAILED: [code=1] Wrapping/Modules/ITKCommon/itkVersorPython.cpp Wrapping/Generators/Python/itk/itkVersorPython.py /Wrapping/Modules/ITKCommon/itkVersorPython.cpp /Wrapping/Generators/Python/itk/itkVersorPython.py cd /Wrapping/Typedefs/python && \ /opt/homebrew/bin/ccache /Wrapping/Generators/SwigInterface/swigmacos-arm64-2024-03-26-master/bin/swig \ -c++ -python -fastdispatch -fvirtual -features autodoc=2 -doxygen -Werror -w302 -w303...
### Description When an error message appears, saying something like `Requested region is (at least partially) outside the largest possible region`, it would be very helpful to also print some...
ObjectToObjectMultiMetricv4 was not wrapped for Python, limiting multi-metric registration to third-party libraries like ANTsPy. Additionally, ImageToImageMetricv4 classes were wrapped without explicit TVirtualImage parameter specification. ## Description This PR adds Python...
### Description ObjectToObjectMultiMetricv4 is currently not wrapped (to Python). Multimetric registration is currently only possible via thirdparty registration codes, like AntsPy. ### Expected behavior Add wrap instructions for ObjectToObjectMultiMetricv4 (dimensions...