## NAME

         solve_c - solves the bilinear equation

## SYNOPSIS

          #include "CVIPtoolkit.h"
          #include "CVIPdef.h"
          #include "CVIPimage.h"
          #include "CVIPhisto.h"
          #include "CVIPfs.h"
          #include "CVIPmesh.h"

         int  solve_c(struct  mesh_node   intie[4],struct   mesh_node
         outtie[4],float *c)

          <intie> - input tie points
          <outtie> - output tie points
          <c> - pointer to result array

## PATH

         $CVIPHOME/GEOMETRY/warp.c

## DESCRIPTION

         This function solves the following bilinear equation:
             c[0]X_in + c[1]Y_in + (c[2]X_in Y_in) + c[3] = X_out
             c[4]X_in + c[5]Y_in + (c[6]X_in Y_in) + c[7] = Y_out
         where (X_in,Y_in) and (X_out,Y_out) are the  coordinates  of
         each  tie point. It is called internally within mesh warping
         functions.

## TYPES AND CONSTANTS

         struct mesh_node {
              int x;
              int y;
         }

         struct mesh {
              int width;
              int height;
              struct mesh_node** nodes;
         }

## RETURN VALUES

         Returns 1 upon successful completion

## HISTORY

         History information recorded: None

## SEE ALSO

         libgeometry

## AUTHOR

         Copyright (C) 1996 SIUE - by Scott E.  Umbaugh  and  Jianxin
         Tan.