Comments (8)
Corrected link to build.log: https://github.com/ANTsX/ANTs/files/13956078/build.log
from ants.
Error message:
In file included from /Users/xeniagrande/ANTs/Examples/antsRegistration2DDouble.cxx:1:
In file included from /Users/xeniagrande/ANTs/Examples/antsRegistrationTemplateHeader.h:14:
In file included from /Users/xeniagrande/ANTs/Examples/itkantsRegistrationHelper.h:21:
In file included from /Users/xeniagrande/ANTs/Utilities/ReadWriteData.h:26:
In file included from /Users/xeniagrande/ANTs/Tensor/itkLogTensorImageFilter.hIn file included from :/Users/xeniagrande/ANTs/Examples/antsRegistrationTemplateHeader.cxx20::
1:
/Users/xeniagrande/ANTs/Tensor/TensorFunctions.hIn file included from :/Users/xeniagrande/ANTs/Examples/antsRegistrationTemplateHeader.h441::1414:
:In file included from /Users/xeniagrande/ANTs/Examples/itkantsRegistrationHelper.h:error: no viable conversion from 'vnl_matrix_inverse<double>' to 'MatrixType' (aka 'vnl_matrix<double>')
21:
In file included from /Users/xeniagrande/ANTs/Utilities/ReadWriteData.h:26:
In file included from /Users/xeniagrande/ANTs/Tensor/itkLogTensorImageFilter.h:20:
/Users/xeniagrande/ANTs/Tensor/TensorFunctions.h:441 MatrixType inv = vnl_matrix_inverse<double>(DT);:
14 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~:
error: no viable conversion from 'vnl_matrix_inverse<double>' to 'MatrixType' (aka 'vnl_matrix<double>')
MatrixType inv = vnl_matrix_inverse<double>(DT);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:141:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'const vnl_matrix<double> &' for 1st argument
vnl_matrix(vnl_matrix<T> const&); // from another matrix.
^
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:141:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'const vnl_matrix<double> &' for 1st argument
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:148:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'vnl_matrix<double> &&' for 1st argument
vnl_matrix(vnl_matrix<T> const&); // from another matrix.
^ vnl_matrix(vnl_matrix<T> &&);
^
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/algo/vnl_matrix_inverse.h/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:148:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'vnl_matrix<double> &&' for 1st argument
:40: vnl_matrix(vnl_matrix<T> &&);12
: ^
note: explicit conversion function is not a candidate
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/algo/vnl_matrix_inverse.h:40:12: note: explicit conversion function is not a candidate
explicit operator vnl_matrix<T>() const { return this->inverse(); }
^
explicit operator vnl_matrix<T>() const { return this->inverse(); }
^
In file included from /Users/xeniagrande/ANTs/Examples/antsRegistration2DDouble.cxx:1:
In file included from /Users/xeniagrande/ANTs/Examples/antsRegistrationTemplateHeader.h:14:
In file included from /Users/xeniagrande/ANTs/Examples/itkantsRegistrationHelper.h:21:
In file included from /Users/xeniagrande/ANTs/Utilities/ReadWriteData.h:26:
In file included from /Users/xeniagrande/ANTs/Tensor/itkLogTensorImageFilter.h:20:
/Users/xeniagrande/ANTs/Tensor/TensorFunctions.h:840:14: error: no viable conversion from 'vnl_matrix_inverse<double>' to 'MatrixType' (aka 'vnl_matrix<double>')
MatrixType inv = vnl_matrix_inverse<double>(DT);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:141:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'const vnl_matrix<double> &' for 1st argument
vnl_matrix(vnl_matrix<T> const&); // from another matrix.
^
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:148:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'vnl_matrix<double> &&' for 1st argument
vnl_matrix(vnl_matrix<T> &&);
^
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/algo/vnl_matrix_inverse.h:40:12: note: explicit conversion function is not a candidate
explicit operator vnl_matrix<T>() const { return this->inverse(); }
^
In file included from /Users/xeniagrande/ANTs/Examples/antsRegistrationTemplateHeader.cxx:1:
In file included from /Users/xeniagrande/ANTs/Examples/antsRegistrationTemplateHeader.h:14:
In file included from /Users/xeniagrande/ANTs/Examples/itkantsRegistrationHelper.h:21:
In file included from /Users/xeniagrande/ANTs/Utilities/ReadWriteData.h:26:
In file included from /Users/xeniagrande/ANTs/Tensor/itkLogTensorImageFilter.h:20:
/Users/xeniagrande/ANTs/Tensor/TensorFunctions.h:840:14: error: no viable conversion from 'vnl_matrix_inverse<double>' to 'MatrixType' (aka 'vnl_matrix<double>')
MatrixType inv = vnl_matrix_inverse<double>(DT);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:141:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'const vnl_matrix<double> &' for 1st argument
vnl_matrix(vnl_matrix<T> const&); // from another matrix.
^
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/vnl_matrix.h:148:3: note: candidate constructor not viable: no known conversion from 'vnl_matrix_inverse<double>' to 'vnl_matrix<double> &&' for 1st argument
vnl_matrix(vnl_matrix<T> &&);
^
/Users/xeniagrande/build/staging/include/ITK-5.4/vnl/algo/vnl_matrix_inverse.h:40:12: note: explicit conversion function is not a candidate
explicit operator vnl_matrix<T>() const { return this->inverse(); }
^
from ants.
Reproduced on my Intel Mac. Result of recent ITK changes perhaps. I will find where the problem begins
from ants.
ITK bump in #1651 causes this error on Mac but not Linux
from ants.
Compiles fine on Mac with previous ITK (fabc102c520bcbd21ea35e7303e3756c223e10d7), from June 2023. I don't see any changes to the ITK matrix classes that would have caused this.
from ants.
OK so the problem looks to be conversion between matrix types in a function added a long time ago by @stnava
Line 441 in 62550fc
I don't get why it stopped working now, but the compile error goes away if I explicitly get the inverse matrix with
MatrixType inv = vnl_matrix_inverse<double>(DT).inverse();
It doesn't look like the enclosing function GetMetricTensorCost
is used anywhere, so I can't test it further.
from ants.
@x-avent could you try building #1659? It works on my Intel Mac
from ants.
Many thanks for the quick help! It works fine now.
from ants.
Related Issues (20)
- antsRegistrationSyN.sh -t so fail HOT 4
- To do: Check all allocated memory is initialized HOT 1
- Unclosed brackets not detected in antsRegistration command line parameters HOT 3
- iMath TruncateImageIntensity segfaults on certain input HOT 3
- Workflow for building registration using docker HOT 4
- Ubuntu ANTs build is broken (repository version) HOT 1
- Jacobian through single-subject template HOT 15
- antsApplyTransforms on 4D BOLD images HOT 6
- ANTs apply transform for template construction has hardcoded dimension = 3 HOT 2
- antsApplyTransforms allows `-d 4` with a 3D warp field HOT 2
- Use ants image in docker to complete registration HOT 19
- Can't extract brain from skull on T1-weighed MRI images HOT 13
- Segmentation-aware template building HOT 3
- ANTs and SPM compatibility HOT 3
- Running into "error while loading shared libraries" while using antsApplyTransforms HOT 2
- Multivariate template construction with > 10 modalities HOT 2
- Deprecation of LabelGeometryImageFilter (used in LabelGeometryMeasures) HOT 12
- Optimizing EPI to T1 MPRAGE registration HOT 4
- Error message at antsApplyTransform HOT 6
- running ANTs binaries on a windows laptop reports error: "could not find VCRUNTIME140_1.dll" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ants.