Skip to content

make random affine matrix#1621

Merged
wyli merged 2 commits into
Project-MONAI:masterfrom
rijobro:rand_affine_matrix
Feb 23, 2021
Merged

make random affine matrix#1621
wyli merged 2 commits into
Project-MONAI:masterfrom
rijobro:rand_affine_matrix

Conversation

@rijobro

@rijobro rijobro commented Feb 23, 2021

Copy link
Copy Markdown
Contributor

create random affine matrix (will be required for inverse transform)
#1515

@wyli

wyli commented Feb 23, 2021

Copy link
Copy Markdown
Contributor

thanks, need some constraints about the invertibility?

@rijobro

rijobro commented Feb 23, 2021

Copy link
Copy Markdown
Contributor Author

No, I don't use these for inverting anything, I just use it to write nifti images for the purposes of testing. I need them to have affines along the lines of:

 0, 1,  0, 0
-1, 0,  0, 0
 0, 0, -1, 0
 0, 0,  0, 1

At any rate, this is trivially invertible.

Comment thread tests/utils.py Outdated
Comment thread tests/utils.py Outdated
@rijobro rijobro force-pushed the rand_affine_matrix branch 2 times, most recently from dab1ae5 to f40b84a Compare February 23, 2021 15:51
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
@wyli wyli enabled auto-merge (squash) February 23, 2021 15:55
@wyli wyli merged commit a894adc into Project-MONAI:master Feb 23, 2021
@rijobro rijobro deleted the rand_affine_matrix branch February 23, 2021 18:25
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