Data.Array.Repa.Algorithms.Convolve
Description
Old support for stencil based convolutions.
NOTE: This is slated to be merged with the new Stencil support in the next version
of Repa. We'll still expose the convolve function though.
Documentation
Arguments
| :: (Elt a, Num a) | |
| => (DIM2 -> a) | Use this function to get border elements where the kernel apply. |
| -> Array DIM2 a | Kernel to use in the convolution. |
| -> Array DIM2 a | Input image. |
| -> Array DIM2 a |
Image-kernel convolution, which takes a function specifying what value to return when the kernel doesn't apply.
Arguments
| = (DIM2 -> a) | The original get function. |
| -> DIM2 | The shape of the image. |
| -> DIM2 | Index of element we were trying to get. |
| -> a |
A function that gets out of range elements from an image.
If the requested element is out of range use the closest one from the real image.