This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Repository navigation
Replies: 2 comments 1 reply
|
FWIW, I added this to stackoverflow. https://stackoverflow.com/questions/71224256/how-to-rotate-an-image-using-only-the-mxnet-ndarray-and-contrib-nd-array-apis And if you are interested in the original code https://github.com/rtp-aws/devpost_aws_disaster_response/blob/main/python/gray_rotate_two.ipynb |
0 replies
|
Hi, these coding lines should prove useful in your implementation. https://www.sciencedirect.com/topics/computer-science/image-rotation PS See also here https://stackoverflow.com/questions/64197754/how-do-i-rotate-a-pytorch-image-tensor-around-its-center-in-a-way-that-supports for pytorch implementation to get ideas. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I tried to post this on the mxnet forum, but it was marked as spam and hidden. 8-/
Hello
I hate it, but I could not figure this out so I'm hoping I might find some help here. I am trying to rotate images for a given rotation using mxnet. I know I can do it more easily in other frameworks, but if nothing else this is a good learning exercise. With that said, here is what I have got so far.
Given a simple 4x4 pixel image,
Also given a simple rotation matrix,
This is what I have so far:
The result of the data after this step looks like this.
So, my problem is that in the last step, I can not figure out how to assign the output based upon the
given results. I have the rotated indices, the original data and the original indices. I thought it might
just be somethine like this:
But this is a fail
I also tried some with the other contrib api
But that is not quite it either.
Any advice is appreciated.
All reactions