Comments (1)
I found my mistake. The argument that is causing the error is not the output filename for WriteParameterFile, but the parameter map itself. It didn't occur to me that WriteParameter also passes "self" as an argument and therefore that "argument 2" refers to the "parameterMap" and not the "filename" argument.
In the toy example I posted above, the solution is simply to use the first element of the structure returned by GetTransformParameterMap:
transformParameterMap = elastixImageFilter.GetTransformParameterMap()[0]
Apologies if this was something obvious, but it wasn't to me and so maybe this information will be useful to someone else in the future.
from elastix.
Related Issues (20)
- ComputeImageExtremaFilter SameGeometry should include Index, Spacing, and Direction HOT 1
- ComputeImageExtremaFilter should reset SameGeometry when image and mask have different image domains HOT 2
- Unreachable error handling, "Consider using the ImageRandomSampler", in ImageRandomSamplerSparseMask
- AdvancedImageToImageMetric, AdvancedMeanSquaresImageToImageMetric estimating min and max twice, redundantly
- Why my C++ project which uses ITK_Elastix, Opencv library with .net frame work does not in window7 but works fine on window10. HOT 6
- How to create c++ dll files of ITK- elastix libraries because static one making executable high size? HOT 5
- How to mitigate process variation between fixed and moving image , while doing itk::ElastixRegistrationMethod using elastix-ITK c++ code?
- OpenCLContext::Create(method:4):CL_INVALID_PLATFORM when run OpenCLResampler HOT 4
- `AdvancedCombinationTransform::GetNumberOfTransforms()` returns zero when initial transform is not a combination! HOT 1
- itk::ElastixRegistrationMethod UpdateLargestPossibleRegion() APi in C++ taking more than 15 seconds to find the Coarse Edge detection for fixed and moving edge
- Clarify direction of JacobianDet and Deformation fields?
- Elastix should stop running (and fail) when initial transform is not supported
- Can you provide a demo of OpenCL GPUBSplineInterpolateImageFunction?
- Initial translation between images when using masks HOT 1
- Registration of Different Slice Numbers
- Document difference between `SetExternalInitialTransform` and `SetInitialTransform` HOT 5
- ElastixRegistrationMethod GetNumberOfTransforms, GetCombinationTransform, etc. does not work with non-float ImageType HOT 1
- make registration deterministic? HOT 5
- PCA-based metrics for T1 mapping
- Error in C++ project while initializing Pointer object of type using itk::TransformixFilter<ImageType>; HOT 9
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 elastix.