-
Notifications
You must be signed in to change notification settings - Fork 27
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
imresize
/imrotate
fixed point
#121
Comments
Hi! I'm currently investigating your code and looking forward to contribute to it. But I can't understand, should those functions with |
Yes, I think This is also why we have to set |
Actually, I think the fixed point concept can be introduced to imrotate as well, in which case it's normally understood as the rotation center. |
Alright, I got it. Should be easy enough.
Yeah, it totally makes sense. |
I think it makes sense to introduce the concept of fixed point to better enhance the
imresize
function.A fixedpoint
p
is whereimgr[p] == img[p]
holds.Three new methods will be introduced as new API:
There are many use cases of this, I'll just list one thing that made me propose the idea:
With this, we can improve (change) the behavior to
OffsetArray
. Currently, when the input is anOffsetArray
:This loss the axes information of our
OffsetArray
, we could change the behavior of it toUse top left point as the default value because it is consistent with the case that the fixed point for
imresize(img::Array, sz)
is also the topleft. (1-based indexing).The text was updated successfully, but these errors were encountered: