Skip to content

convert to itk.AffineTransform#88

Open
dyollb wants to merge 2 commits into
uncbiag:masterfrom
dyollb:save_affine_insteadof_centeredaffine
Open

convert to itk.AffineTransform#88
dyollb wants to merge 2 commits into
uncbiag:masterfrom
dyollb:save_affine_insteadof_centeredaffine

Conversation

@dyollb

@dyollb dyollb commented Jul 11, 2025

Copy link
Copy Markdown

fixes #87

  • creating an itk.AffineTransform on line 302 changed the result
  • instead this PR simply copies the matrix to an itk.AffineTransform for both 2d/3d

@HastingsGreer

Copy link
Copy Markdown
Collaborator

This looks good! I need to read over the itk documentation to make sure that SetMatrix works exactly like that for all possible images- spacing and orientation are a proper nightmare!

@HastingsGreer

Copy link
Copy Markdown
Collaborator

Ah, dependency hell. Give me a minute to fix this in upstream

@HastingsGreer

Copy link
Copy Markdown
Collaborator

Unfortunately this pull request doesn't quite work right: I think the issue is that the offset needs to be copied over as well as the matrix. I'll get back to it when possible.

@dyollb

dyollb commented Aug 4, 2025

Copy link
Copy Markdown
Author

Unfortunately this pull request doesn't quite work right: I think the issue is that the offset needs to be copied over as well as the matrix. I'll get back to it when possible.

The CI seems happy now. Locally this works for me and follows the documentation

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.

Does it need to be a CenteredAffineTransform or could it be a AffineTransform?

2 participants