Learn R Programming

ProFound (version 1.0.1)

profoundInterp2d: 2D image interpolation

Description

A low level routine to interpolate a 2D image matrix at an arbitrary x/y pixel location. This function is unlikely to be used by the user, but it used internally to ensure that point sources defined by empirical point spread functions (PSFs) are accurately generated on an image.

Usage

profoundInterp2d(x, y, image)

Arguments

x

The x position at which to make the interpolation with respect to the x centre of image.

y

The x position at which to make the interpolation with respect to the x centre of image.

image

The image matrix to be used for the interpolation.

Value

Matrix; a three column matrix where column 1 is the requested x interpolation locations, column 2 is the requested y interpolation locations and column 3 is the interpolated values.

Details

In practice this is a low level routine unlikely to be used by the user.

For this function (and really, it is for user ease when interpolating a PSF) [0,0] is always the R image centre of the input image. This means it would be at the usual [1.5,2] position of a 3x4 image matrix.

See Also

profoundMakeSkyMap, profoundMakeSkyGrid

Examples

Run this code
# NOT RUN {
# Nothing here
# }

Run the code above in your browser using DataLab