Learn R Programming

retistruct (version 0.6.3)

interpolate.image: Interpolate values in image

Description

Interpolate values in image

Usage

interpolate.image(im, P, invert.y = FALSE)

Arguments

im

image to interpolate

P

N by 2 matrix of x, y values at which to interpolate. x is in range [0, ncol(im)] and y is in range [0, nrow(im)]

invert.y

If FALSE (the default), the y coordinate is zero at the top of the image. TRUE the zero y coordinate is at the bottom.

Value

Vector of N interpolated values