Skip to content

Instantly share code, notes, and snippets.

@WolframRhodium
Last active December 30, 2018 13:55
Show Gist options
  • Save WolframRhodium/5adfc8157da38b0d3469c76446f23b9c to your computer and use it in GitHub Desktop.
Save WolframRhodium/5adfc8157da38b0d3469c76446f23b9c to your computer and use it in GitHub Desktop.
fmtc.resample(kernel='impulse') cheatsheet
fmtconv equivalent remarks
impulse=[1, 1, 1], fv=-1, fh=-1 std.Convolution([1]*9) or rgvs.RemoveGrain(20) Radius=1 box filtering. fv and fh are required to force the processing.
scale=1/2, kernel='box' scale=1/2, kernel='impulse', impulse=[1]*3, kovrspl=3 Box downscaling with a factor of 2
scale=1/4, kernel='box' scale=1/4, kernel='impulse', impulse=[1]*5, kovrspl=5 Box downscaling with a factor of 4
scale=1/2, kernel='bilinear' scale=1/2, impulse=[0.5, 1, 0.5], kovrspl=2 Bilinear downscaling with a factor of 2
scale=1/3, kernel='bilinear' scale=1/3, impulse=[0.5, 1, 0.5], kovrspl=2 Bilinear downscaling with a factor of 3
scale=1/4, kernel='bilinear' scale=1/4, impulse=[0.5, 1, 0.5], kovrspl=2 Bilinear downscaling with a factor of 4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment