zoom_image with nearest neighbor "scaling" #896
AnderBiguri
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For a particular thing, I needed to use zoom_image to do nearest neighbor scaling (this is a bit of a misnomer, perhaps "None" scaling is a better name?). Essentially I am doing
zoom_image
on anImageData
that contains labels, and thus they need to keep their pixel values unchanged.I have modified
zoom_image
such that allows this. I post it here in case this is not a "just for me" solution, and there is interest on having it in some form or another in SIRF. If the answer is "no", thats great, we can close the issue but have it as reference. If its yes, let me know, I can do a PR.My
zoom_image
reads:Beta Was this translation helpful? Give feedback.
All reactions