-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
affine_transform
fails in simplest possible use case
#204
Comments
Also, I found that Otherwise l.126: |
In addition, the variable that is returned cannot be specified as I now have handcrafted my own |
This seems to be more tricky in cases with ndim>2 as this |
@martinschorb Thanks a lot for reporting this bug and the careful characterization :) I addressed what you found in #205. Feel free to check out the PR branch and see whether it fixes the problems you mentioned.
Fixed.
The
True, very good point. While this is an inconsistency with the |
What you could do of course is to convert your rotation parameters into an affine matrix and simply use the affine transform. Or is there something |
Yes, that's linked to the
|
Could you post an example of your usage that includes the slicing you mention? |
Let's move this discussion to #205 |
What happened:
Running
affine_transform
on a simple 2D image produces aTypeError
whenoffset
is Noneresults in:
Anything else we need to know?:
The problem is due to
offset
still beingNone
. In this case it is never touched, andoffset = np.asarray(offset).squeeze()
in l. 96 also yieldsNone
.Environment:
The text was updated successfully, but these errors were encountered: