Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regarding the issue of inconsistent results of the itk registration #4025

Open
jianjun0407 opened this issue Apr 24, 2023 · 6 comments
Open
Labels
type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances

Comments

@jianjun0407
Copy link

I used the setup shown below to ensure the consistency of the sampling points. However, the result of each registration is still different.
What other operations need to be done to ensure the consistency of registration results?
itk-question

@jianjun0407 jianjun0407 added the type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances label Apr 24, 2023
@github-actions
Copy link

Thank you for contributing an issue! 🙏

Welcome to the ITK community! 🤗👋☀️

We are glad you are here and appreciate your contribution. Please keep in mind our community participation guidelines. 📜
Also, please check existing open issues and consider discussion on the ITK Discourse. 📖

@dzenanz
Copy link
Member

dzenanz commented Apr 24, 2023

Are you using mutual information? Take a look here, here and here.

@jianjun0407
Copy link
Author

Thank you for your answer. I have now made the following changes:
(1)
2

(2)
1

The problem now found is that if the console is not turned off, the result of each registration is the same. However, if the console is turned off and the program is run again, the results will be inconsistent. Do you have any suggestions on this issue?
3

@jianjun0407
Copy link
Author

Thank you for your answer.I have now made some changes as above .
The problem now found is that if the console is not turned off, the result of each registration is the same. However, if the console is turned off and the program is run again, the results will be inconsistent. Do you have any suggestions on this issue?
3

@dzenanz
Copy link
Member

dzenanz commented May 16, 2023

@blowekamp @zivy do you have some suggestions?

@zivy
Copy link
Member

zivy commented May 16, 2023

Hello @jianjun0407,
Not sure what you mean by "console is not turned off".

Based on the settings:
1. Fixed random seed.
2. REGULAR sampling strategy (note that this [includes a random location perturbation (https://github.com/InsightSoftwareConsortium/ITK/blob/a01f9fc26fd603a6adb617cc603e31ccfcd73d09/Modules/Registration/RegistrationMethodsv4/include/itkImageRegistrationMethodv4.hxx#L968-L997), but should be repeatable after the fixed random seed is set).
3. Default number of threads and mean squares metric (multiple threads shouldn't effect this metric but does effect MI).

You should get repeatable results. Possibly print the ImageRegistrationMethod to see that all the settings are as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:Bug Inconsistencies or issues which will cause an incorrect result under some or all circumstances
Projects
None yet
Development

No branches or pull requests

3 participants