c_rotcor - Calculates rotated projection coordinates of an image window

SYNTAX

FUNCTION c_rotcor (proj_coord, image_coord, window, window_proj_coord)

     double               proj_coord[8];
     long                 image_coord[8];
     double               window[4];
     double               window_proj_coord[8];

PARAMETERS

proj_coord (input, double, length (8))

Input image corner projection coordinates. The eight elements are ordered as follows:

          [0] = upper left y
          [1] = upper left x
          [2] = lower left y
          [3] = lower left x
          [4] = upper right y
          [5] = upper right x
          [6] = lower right y
          [7] = lower right x

image_coord (input, long, length (8))

Input image corner line, sample coordinates. The eight elements are ordered as follows:

          [0] = upper left y
          [1] = upper left x
          [2] = lower left y
          [3] = lower left x
          [4] = upper right y
          [5] = upper right x
          [6] = lower right y
          [7] = lower right x

window (input, double, length (4))

Window applied to image.

window_proj_coord (output, double, length (8))

Output image corner projection coordinates. The eight elements are ordered as follows:

          [0] = upper left y
          [1] = upper left x
          [2] = lower left y
          [3] = lower left x
          [4] = upper right y
          [5] = upper right x
          [6] = lower right y
          [7] = lower right x

DESCRIPTION

c_rotcor() calculates output projection coordinates of a rotated projection space based upon the input projection coordinates, the input image coordinates, and the input image window specification.

RETURN VALUE

c_rotcor() returns

     E_SUCC (0)  --> successful completion
     E_FAIL (-1) --> operation failed