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
ENH: Add a random affine transformation matrix generation util. #1709
base: master
Are you sure you want to change the base?
ENH: Add a random affine transformation matrix generation util. #1709
Conversation
Hello @jhlegarreta, Thank you for updating ! Cheers ! There are no PEP8 issues in this Pull Request. 🍻 Comment last updated at 2019-03-16 21:25:21 UTC |
So here it goes. Still WIP. A few comments:
Got some inspiration from here and here. Thanks. |
694b047
to
ebde10d
Compare
Codecov Report
@@ Coverage Diff @@
## master #1709 +/- ##
=======================================
Coverage 91.21% 91.21%
=======================================
Files 250 250
Lines 31803 31845 +42
Branches 3340 3342 +2
=======================================
+ Hits 29008 29048 +40
- Misses 2074 2077 +3
+ Partials 721 720 -1
|
Hi @jhlegarreta - thanks for writing this. I think that this belongs in dipy.core.geometry. Could you please move it there? Otherwise, this looks good to me, but it would be good to add some more testing. |
ebde10d
to
60e9998
Compare
@arokem Moved the methods to
A big thanks. |
Sorry: would you mind pointing out where in @matthew-brett's code there is code that generates random affines? Do you mean this? Would that always create an affine? |
@arokem Yes, that's the test. I guess it would: https://github.com/matthew-brett/transforms3d/blob/master/transforms3d/affines.py |
I am not sure that I understand the question: "if not, I'd like to hear how do you propose to test the transformation methods." Are you asking how to test that it's really an affine? |
@arokem Yes. |
@arokem should the transformation matrix (rotation, shear,etc) be 3x3 or 4x4? because the 3x3 implementation can be extended for 4x4 matrices, I read the source codes for geometry.py, and most of the transformations are implemeted for 3x3 |
@arokem is this issue still useful? |
60e9998
to
40ba7d1
Compare
Add a random affine transformation matrix generation util. Resolves dipy#1687.
Move the geometry utils methods to `dipy.core.geometry`.
Test if the random affine matrix is of full-rank.
40ba7d1
to
122bcbd
Compare
I had this on my ToDo list since a few months. Sorry for the delay @arokem. @sidkapoor97 Having this in DIPY may turn out to be useful at some point I guess. |
What is the status of this PR @jhlegarreta? Should I tag it for this release? Next one? |
Still on my ToDo list. Not likely to be ready for the next release. |
Hi @jhlegarreta, We plan to talk about your PR during the DIPY online meeting tomorrow (October 7th, 2021 | 1pm EST / 7pm CET / 10am PT). It would be great if you could attend this meeting to provide us a short update. More information on #2398 Thank you! |
@skoudoro Thanks for the heads up. I have not been able to attend to the meetings lately because I have another overlapping recurrent meeting at the DIPY meetings. Unfortunately, tomorrow I still have the same issue. Happy to discuss at another time. I have not forgotten about the issue. Still on my ToDo list. |
a8ad35d
to
afae75f
Compare
1419292
to
ca6268a
Compare
5935e1e
to
765963e
Compare
Add a random affine transformation matrix generation util.
Resolves #1687.