Learn R Programming

imager (version 0.14)

resize: Resize image to new dimensions. If pd[x,y,z,v]

Description

Resize image to new dimensions. If pd[x,y,z,v]

Usage

resize(im, size_x = -100L, size_y = -100L, size_z = -100L,
  size_c = -100L, interpolation_type = 1L, boundary_conditions = 0L,
  centering_x = 0, centering_y = 0, centering_z = 0, centering_c = 0)

Arguments

im
an image
size_x
Number of columns (new size along the X-axis).
size_y
Number of rows (new size along the Y-axis).
size_z
Number of slices (new size along the Z-axis).
size_c
Number of vector-channels (new size along the C-axis).
interpolation_type
Method of interpolation: -1 = no interpolation: raw memory resizing. 0 = no interpolation: additional space is filled according to boundary_conditions. 1 = nearest-neighbor interpolation. 2 = moving average interpolation. 3 = linear interpolation. 4 = gr
boundary_conditions
Border condition type.
centering_x
Set centering type (only if interpolation_type=0).
centering_y
Set centering type (only if interpolation_type=0).
centering_z
Set centering type (only if interpolation_type=0).
centering_c
Set centering type (only if interpolation_type=0).