Skip to content

BUG: Workaround "direction cosines matrix of the fixed image is invalid" #328

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

Conversation

N-Dekker
Copy link
Collaborator

Set direction matrix to the identity matrix, as a workaround for issue #291 "GroupwiseRegistration notebook: ERROR: the direction cosines matrix of the fixed image is invalid!", reported by Matt McCormick (@thewtex) on May 23, 2024.


@ViktorvdValk Do you remember that you saw those error messages (as reported by issue #291) when you originally made this notebook? Otherwise I wonder how the errors "sneaked in" afterwards. Could itk.imread("data/00", itk.F) possibly have changed after you made the notebook? 🤷

Set direction matrix to the identity matrix, as a workaround for
issue InsightSoftwareConsortium#291
"GroupwiseRegistration notebook: ERROR: the direction cosines matrix of the
fixed image is invalid!", reported by Matt McCormick on May 23, 2024.
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@N-Dekker
Copy link
Collaborator Author

@thewtex @stefanklein @mstaring I would very much like to have a proper solution for issue #291 ("GroupwiseRegistration notebook: ERROR: the direction cosines matrix of the fixed image is invalid!"), either by adjusting the error checking in elastix VarianceOverLastDimensionMetric or by adjusting the data set. But until we found the right solution, I propose to just merge this workaround, which simply sets the direction to the identity matrix. OK?

@N-Dekker N-Dekker marked this pull request as ready for review March 19, 2025 13:08
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@N-Dekker thanks for addressing this 🙏

I like your plan.

Would be good to get feedback from @mstaring @stefanklein

@N-Dekker N-Dekker merged commit 69fe7eb into InsightSoftwareConsortium:main Mar 19, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants