-
Notifications
You must be signed in to change notification settings - Fork 28
Conversation
I'm okay with 1. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an improvement over my initial code. I added some comments for discussion
Codecov Report
@@ Coverage Diff @@
## master #31 +/- ##
=========================================
Coverage ? 98.69%
=========================================
Files ? 34
Lines ? 1301
Branches ? 0
=========================================
Hits ? 1284
Misses ? 17
Partials ? 0
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, left some comments and questions
Nother thing that came to my mind, but is not essential: We should include description text in our notebooks :) |
Currently, the notebook is more like a visual test of the transformations. :) When the GridTransforms are ready, I will refactor it to be pretty :D |
Short Description
This PR performs a refactoring of the affine transformations.
In the following X refers to 'scale', 'rotation', 'translation'
Proposed steps:
rename
_format_X
inutils.affine
to_create_X
and move them totransforms.function.affine
refactor _format_X/_create_X a little bit for easier understanding ...
dim, scalar per batch element, scalar per batch element per dim
Double check all doc strings and make them more precise
double check if scale needs to be inverted
translation: I would like to pass in the number of pixels to shift (right now it only supports a float which shifts the image by that percentage -> shift depend on image size)
How to perform rotation around multiple axis (behaviour should replicate bg for compatibility and we may add additional options, e.g. different rotation orders/format, rorate around a unit vector ... )
additional unit tests where the behaviour is tested for some special cases: test intensity values not only shape
What do you think about this @justusschock ?
PR Checklist
PR Implementer
This is a small checklist for the implementation details of this PR.
If you submit a PR, please look at these points (don't worry about the
RisingTeam
and
Reviewer
workflows, the only purpose of those is to have a compact view ofthe steps)
If there are any questions regarding code style or other conventions check out our
summary.
__all__
sections and__init__
RisingTeam
RisingTeam workflow
Please make sure to communicate the current status of the pr.)
closes #IssueNumber
at the bottom ifnot already in description)
Reviewer
Reviewer workflow
rising
design conventions?Can you think of critical points which should be covered in an additional test?