setup_filter | R Documentation |
upfirdn2d()
.Convenience function to setup 2D FIR filter for upfirdn2d()
.
setup_filter( f, device = torch_device("cpu"), normalize = TRUE, flip_filter = FALSE, gain = 1, separable = NULL )
f |
Torch tensor, or R array of the shape: |
device |
Result device (default: cpu). |
normalize |
Normalize the filter so that it retains the magnitude for constant input signal (DC)? (default: TRUE). |
flip_filter |
Flip the filter? (default: FALSE). |
gain |
Overall scaling factor for signal magnitude (default: 1). |
separable |
Return a separable filter? (default: select automatically). |
Float32 tensor of the shape: c(filter_height, filter_width)
(non-separable) or
filter_taps
(separable).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.