resize: Resize an 'Image'

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/geometry.R

Description

resize returns a resized version of an Image.

Usage

1
2
resize(image, height = NULL, width = NULL, fx = NULL, fy = NULL,
  interpolation = "linear")

Arguments

image

An Image object.

height

A positive integer representing the new height in pixels of the image (default: NULL).

width

A positive integer representing the new width in pixels of the image (default: NULL).

fx

A positive numeric representing the ratio by which the width of the image must be resized (default: NULL). Ignored if width is set.

fy

A positive numeric representing the ratio by which the height of the image must be resized (default: NULL). Ignored if height is set.

interpolation

A character string representing the type of interpolation to use during resizing (default: "linear"). See notes for all accepted interpolation methods.

Value

An Image object.

Note

The following interpolation methods are supported:

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image

Examples

1
# TODO

neuroconductor-devel/Rvision documentation built on May 16, 2021, 5:16 p.m.