Generates grid for constructing frequency domain filters.
Generates grid for constructing frequency domain filters. See the original filtergrid Matlab code for details. This uses the same naming convention to make it easier to correlate with the original.
Number of rows in filter.
Number of columns in filter.
Tuple(radius, u1, u2). Radius: Grid of size [rows cols] containing normalised radius values from 0 to 0.5. Grid is quadrant shifted so that 0 frequency is at radius(1,1). u1, u2: Grids containing normalised frequency values ranging from -0.5 to 0.5 in x and y directions respectively. u1 and u2 are quadrant shifted.
Clip off last column of matrix m
.
Clip off last column of matrix m
.
Clip off last row of matrix m
.
Clip off last row of matrix m
.
Matlab's side-by-side matrix concatenation operator.
Matlab's side-by-side matrix concatenation operator.
Does a convolution of two matrices.
Does a convolution of two matrices.
Image to be convolved.
Convolution filter.
"full", "same", or "valid"
Matlab's fliplr operator.
Matlab's fliplr operator.
Matlab's flipup operator.
Matlab's flipup operator.
Matlab spec says this produces a "row vector", which is a matrix with a single row in Cog.
Matlab spec says this produces a "row vector", which is a matrix with a single row in Cog.
Implement Matlab's repmat.
Implement Matlab's repmat.
Matrix to be replicated.
Row replication factor.
Column replication factor.
Matlab's top-on-bottom matrix concatenation operator.
Matlab's top-on-bottom matrix concatenation operator.
Lower triangular part of (square) matrix.
Lower triangular part of (square) matrix.
Implements Peter Kovesi's filtergrid function from his computer vision library: http://www.csse.uwa.edu.au/~pk/research/matlabfns/