The WARP_TRI function returns an image array with a specified geometric correction applied. Images are warped using control (tie) points such that locations ( Xi, Yi ) are shifted to ( Xo, Yo ).
The irregular grid defined by ( Xo, Yo ) is triangulated using TRIANGULATE. Then the surfaces defined by ( Xo, Yo, Xi ) and ( Xo, Yo, Yi ) are interpolated using TRIGRID to get the locations in the input image of each pixel in the output image. Finally, INTERPOLATE is called to obtain the result. Linear interpolation is used by default. Smooth quintic interpolation is used if the QUINTIC keyword is set.
This routine is written in the IDL language. Its source code can be found in the file
warp_tri.pro
in the
lib
subdirectory of the IDL distribution.
Set this keyword equal to a 2-element vector containing the size of the output image. If omitted, the output image is the same size as Image .