Convolution and 2D Up Sampling Operator

DESCRIPTION:

Horizontal or vertical convolution and up sampling operator.

USAGE:

hor.convup(x, filter, boundary=attr(x, "boundary"), odd=F, fast=F) 
ver.convup(x, filter, boundary=attr(x, "boundary"), odd=F, fast=F) 

REQUIRED ARGUMENTS:

x
an image or a matrix.
filter
a vector of filter coefficients.

OPTIONAL ARGUMENTS:

boundary
a character string or a character vector of length two giving the name(s) of the boundary rule. All the boundary rules listed for convdown are available except for "infinite". See convdown for the definitions of these rules.
odd
logical flag indicating if the number of rows/columns of the outcome matrix should be odd.
fast
logical flag indicating if fast algorithm should be used.

VALUE:

If odd=FALSE, hor.convup returns a 2nrow(x) by ncol(x) matrix, otherwise it returns a 2nrow(x)-1 by ncol(x) matrix. If odd=FALSE, ver.convup returns an nrow(x) by 2ncol(x) matrix, otherwise it returns an nrow(x) by 2ncol(x)-1 matrix .

SEE ALSO:

, , , , , .