CircularShift: Circular Shifting of a matrix/image

Description Usage Arguments Value See Also Examples

View source: R/CircularShift.R

Description

Pixels that get shifted off one side of the image are put back on the other side.

Usage

1
CircularShift(matrix, colshift = 0, rowshift = 0)

Arguments

matrix

2-d signal (matrix).

colshift

column shift index (integer).

rowshift

row shift index (integer).

Value

result 2-d shifted signal.

See Also

FWT2_TI, IWT2_TI.

Examples

1
2
A <- matrix(1:4, ncol=2, byrow=TRUE)
CircularShift(A, 0, -1)

Example output

     [,1] [,2]
[1,]    3    4
[2,]    1    2

rwavelet documentation built on Jan. 13, 2021, 10:38 a.m.