Gaussian pyramid for an input image stream.
Implements a few Matlab functions to make it easier to translate Matlab code to Cog.
Implements a polynomial filter bank.
Implements a polynomial filter bank.
The "input" scalar field is projected locally onto a 2nd-order polynomial approximation, represented by a matrix field + vector field + scalar field. The basis set consists of the following 2-dimensional functions: 1, x, y, x*x, x*y, y*y.
Note that this filter bank introduces no delay.
This is from Gunnar Farneback's dissertation.
use libcog.filters.spatial.QuadraticExpansion.apply() instead
Implements the normalized convolution version of the "domain transform" filter.
Implements the normalized convolution version of the "domain transform" filter. This filter is "edge-aware" and able to filter without blurring edges. For a complete description, see "Domain transform for edge-aware image and video processing," Gastal and Oliveira, 2011.
Function object for creating a Gaussian pyramid.
Implements Moisan's periodic FFT.
Implements Moisan's periodic FFT. This is modeled on Peter Kovesi's Matlab implementation of the algorithm. See the paper "Periodic plus Smooth Image Decomposition," Journal of Mathematical Imaging and Vision, vol 39:2, pp. 161-179, 2011.
The input is an image that is suitable for the FFT (number of rows and columns are powers of 2). The output is the FFT of the "periodic" component of the input image with border effects suppressed.
NOTE: This could be sped up by writing a GPU kernel for
computeBoundaryImage
.
Test code for MatlabFunctions
Local polynomial expansion of a scalar field.
Local polynomial expansion of a scalar field.
use libcog.filters.spatial.QuadraticExpansion.apply() instead