imager (version 0.42.7)

imshift: Shift image content.

Description

Shift image content.

Usage

imshift(
  im,
  delta_x = 0L,
  delta_y = 0L,
  delta_z = 0L,
  delta_c = 0L,
  boundary_conditions = 0L
)

Arguments

im

an image

delta_x

Amount of displacement along the X-axis.

delta_y

Amount of displacement along the Y-axis.

delta_z

Amount of displacement along the Z-axis.

delta_c

Amount of displacement along the C-axis.

boundary_conditions

can be: - 0: Zero border condition (Dirichlet). - 1: Nearest neighbors (Neumann). - 2: Repeat Pattern (Fourier style).

Examples

Run this code
# NOT RUN {
imshift(boats,10,50) %>% plot
# }

Run the code above in your browser using DataCamp Workspace