GPULib API

Tech-X Corporation

single page | use frames     summary     class     fields     routine details     file attributes

lib/

gpucongrid.pro


Routines

result = gpuCongrid(x_gpu, nx, ny [, INTERP=integer] [, LHS=GPUVariable object] [, ERROR=integer])

Changes the resolution of an array, either using interpolation or nearest grid point sampling.

gpuCongrid, x_gpu, nx, ny, res_gpu [, INTERP=integer] [, ERROR=integer]

Changes the resolution of an array, either using interpolation or nearest grid point sampling.

Routine details

top gpuCongrid

result = gpuCongrid(x_gpu, nx, ny [, INTERP=integer] [, LHS=GPUVariable object] [, ERROR=integer])

Changes the resolution of an array, either using interpolation or nearest grid point sampling.

Return value

GPUVariable object

Parameters

x_gpu in required type=GPUVariable object

GPU array to change resolution of. Currently only supports 2D

nx in required type=long

X resolution of resulting image

ny in required type=long

Y resolution of resulting image

Keywords

INTERP in optional type=integer

if set, use bilinear interpolation. Otherwise use nearest grid point.

LHS in optional type=GPUVariable object

pass GPU variable to use as return value

ERROR out optional type=integer

error status

top gpuCongrid

gpuCongrid, x_gpu, nx, ny, res_gpu [, INTERP=integer] [, ERROR=integer]

Changes the resolution of an array, either using interpolation or nearest grid point sampling.

Parameters

x_gpu in required type=GPUVariable object

GPU array to change resolution of. Currently only supports 2D

nx in required type=long

X resolution of resulting image

ny in required type=long

Y resolution of resulting image

res_gpu out required type=GPUVariable object

resulting array.

Keywords

INTERP in optional type=integer

if set, use bilinear interpolation. Otherwise use nearest grid point.

ERROR out optional type=integer

error status

File attributes

Modification date: Fri Nov 12 11:07:45 2010
Lines: 123
Docformat: rst rst