If the dimension arguments are negative, they are interpreted as a proportion of the original image.
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)
an image
Number of columns (new size along the X-axis).
Number of rows (new size along the Y-axis).
Number of slices (new size along the Z-axis).
Number of vector-channels (new size along the C-axis).
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 = grid interpolation. 5 = cubic interpolation. 6 = lanczos interpolation.
Border condition type.
Set centering type (only if interpolation_type=0).
Set centering type (only if interpolation_type=0).
Set centering type (only if interpolation_type=0).
Set centering type (only if interpolation_type=0).
See imresize for an easier interface.