Skip to content

Instantly share code, notes, and snippets.

@fepegar
Created October 14, 2021 16:04
Show Gist options
  • Save fepegar/5d9e66d8302a110975efa932cd1ab2a0 to your computer and use it in GitHub Desktop.
Save fepegar/5d9e66d8302a110975efa932cd1ab2a0 to your computer and use it in GitHub Desktop.
TorchIO Resize demo
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@romainVala
Copy link

romainVala commented Oct 15, 2021

i may miss the point, but why not using resample, that will keep the ratio unchanged (even for a picture, it is better that having a deformed image ... no?

@fepegar
Copy link
Author

fepegar commented Oct 15, 2021

I have, say, 800x600 videos and I want them to be, say, 200x200. I could resample and crop or pad, or I could just resize, if I don't mind the distortion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment