Create a set of directional filters in the frequency domain.
Create a set of directional filters in the frequency domain.
Shape of the images to be processed by the filterbank.
Number of channels (directions) supported by the filterbank. Legal values are 2, 4, 8.
An array of filters, one per channel, in the frequency domain.
Each filter will have the shape shape
. The filters are
zero-phase, so they are represented with matrices rather than
complex matrices.
Checkerboard filters, space domain.
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"
Diamond filters, space domain.
Fan filters, space domain.
Matlab's fliplr operator.
Matlab's fliplr operator.
Matlab's flipup operator.
Matlab's flipup operator.
Create a set of inverse directional filters in the frequency domain.
Create a set of inverse directional filters in the frequency domain. This is the inverse of apply.
Shape of the images to be processed by the filterbank.
Number of channels (directions) supported by the filterbank. Legal values are 2, 4, 8.
An array of filters, one per channel, in the frequency domain.
Each filter will have the shape shape
. The filters are
zero-phase, so they are represented with matrices rather than
complex matrices.
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.
Octet filters, space domain.
Parallelogram filters, space domain.
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.
Directional filterbank and its inverse.
Implements the filter construction part of nsdfbdec.m and nsdfbrec.m, but does not do the convolution. Although the matlab code supports an arbitrary number of channels (that are a power of 2), I cut this off at 8 channels. This makes the code much more readable. If you need more channels, you may add the code for that.