filter2d | R Documentation |
By default, the result is padded so that its shape matches the input. User-specified padding is applied on top of that, with negative values indicating cropping. Pixels outside the image are assumed to be zero.
filter2d( x, f, padding = 0, flip_filter = FALSE, gain = 1, impl = if (cuda_is_available()) "cuda" else "ref" )
x |
Float32/float64/float16 input tensor of the shape
|
f |
Float32 FIR filter of the shape
|
padding |
Padding with respect to the output. Can be a single number or a
vector |
flip_filter |
|
gain |
Overall scaling factor for signal magnitude (default: 1). |
impl |
Implementation to use. Can be |
Tensor of the shape c(batch_size, num_channels, out_height, out_width)
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.