Comments (6)
I believe you have to specify registration parameters that include point based metrics.
Developer docs on the metric: https://elastix.lumc.nl/doxygen/classelastix_1_1CorrespondingPointsEuclideanDistanceMetric.html
This link has some info and code from simpleelastix which is, N.B., not fully transferable but the principle is the same: https://simpleelastix.readthedocs.io/PointBasedRegistration.html
A good strategy may be to make to make two rigid parameter maps, the first with the corresponding points distance metric, and the second without. This workflow assumes your first rigid will use the corresponding points, find a good registration, then proceed with fully automatic approaches.
Heath
I added the following line and the problem was solved! Thank you very much for your help.
parameter_map_rigid['Metric'] = [original_metric[0],
'CorrespondingPointsEuclideanDistanceMetric']
from itkelastix.
If fixed and moving images are provided, maybe the point sets are ignored? Somebody who knows elastix better could answer this authoritatively. You can also test it by removing fixed_image, moving_image,
parameters.
from itkelastix.
If fixed and moving images are provided, maybe the point sets are ignored? Somebody who knows elastix better could answer this authoritatively. You can also test it by removing
fixed_image, moving_image,
parameters.
Thank you for your quick reply. But in examples 5 and 9, the images and point sets are given together. I get this error when I remove fixed_image
and moving_image
:
ITK ERROR: ElastixRegistrationMethod(0x654ae30): Input FixedImage is required but not set.
I get this error when I only add fixed_image
:
TypeError: Expecting argument of type itkImageF2 or itkImageSourceIF2.
from itkelastix.
I believe you have to specify registration parameters that include point based metrics.
Developer docs on the metric:
https://elastix.lumc.nl/doxygen/classelastix_1_1CorrespondingPointsEuclideanDistanceMetric.html
This link has some info and code from simpleelastix which is, N.B., not fully transferable but the principle is the same:
https://simpleelastix.readthedocs.io/PointBasedRegistration.html
A good strategy may be to make to make two rigid parameter maps, the first with the corresponding points distance metric, and the second without. This workflow assumes your first rigid will use the corresponding points, find a good registration, then proceed with fully automatic approaches.
Heath
from itkelastix.
Indeed, example 5 shows how to create a parameter map with the correct metrics in this case.
Keep in mind that example 5 shows how to use a point set to help the registration of images, and example 9 shows how to transform the point sets.
from itkelastix.
Indeed, example 5 shows how to create a parameter map with the correct metrics in this case. Keep in mind that example 5 shows how to use a point set to help the registration of images, and example 9 shows how to transform the point sets.
You were absolutely right. I didn't notice this difference.
from itkelastix.
Related Issues (20)
- Latest ITKElastix crashes HOT 6
- How to minimise non-rigid distortion when using groupwise registration HOT 3
- pip install itk-elastix does not work HOT 3
- register these two dicom file HOT 1
- Extraction deformation field after 3D registration.
- Error loading initial transform and applying mask
- Error when multiprocessing coregistration HOT 1
- Groupwise registration of 4D objects and registration with mask
- Applying series of registrations to moving image label map HOT 4
- Reset random seed for deterministic registration HOT 7
- Data format differs from the example HOT 1
- Data format differs from the example HOT 1
- itk.ParameterObject -> seg fault in fresh env HOT 5
- Issue with image format HOT 1
- Elastix Model Zoo site cannot be opened HOT 1
- Inverse transform HOT 11
- ErodeMask and dilating mask
- GroupwiseRegistration notebook: ERROR: the direction cosines matrix of the fixed image is invalid! HOT 5
- Transform coordinates from moving images space to fixed images space HOT 1
- Error of multi-metric and multi-channel image registration HOT 1
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 itkelastix.