I’ve been using a custom build of ITK (v5.4.2) with python wrapping for some time. We also happen to wrap some extra types, image and vector dimensions as part of the build, i.e.,
However, I’ve recently upgraded the build to v5.4.4 and in addition to the itk.FixedArray warnings we’re now getting a bunch of new ones, which I assume related to our use of ITKMontage. See attached text file.
I tried looking into modifying some wrap files, however haven’t had much success. I’d really like to know if it is possible to eliminate these warnings, or failing that can someone suggest a way we can at least suppress their display?
Hi @dzenanz, thanks for pointing me to the wrap file.
After some experimentation, I think I found a solution by adding an additional double parameter to the template parameter list for the interpolation functions.
What file/compilation unit tries to compile FixedArray? Can you provide a bit of build log around:
Template itk::FixedArray<double,4>
already defined as <class 'itk.itkFixedArrayPython.itkFixedArrayD4'>
is redefined as <class 'itk.itkFixedArrayPython.itkFixedArrayD4'>
Warning: template already defined 'itk::FixedArray<double,4>'