Giter VIP home page Giter VIP logo

Comments (6)

sepidehamiri avatar sepidehamiri commented on September 25, 2024 1

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.

dzenanz avatar dzenanz commented on September 25, 2024

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.

sepidehamiri avatar sepidehamiri commented on September 25, 2024

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.

NHPatterson avatar NHPatterson commented on September 25, 2024

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.

ViktorvdValk avatar ViktorvdValk commented on September 25, 2024

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.

sepidehamiri avatar sepidehamiri commented on September 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.