~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Tina6/tina-libs/tina/geometry/geomGen_3from2.c

Version: ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /**********
  2  * 
  3  * This file is part of the TINA Open Source Image Analysis Environment
  4  * henceforth known as TINA
  5  *
  6  * TINA is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License as 
  8  * published by the Free Software Foundation.
  9  *
 10  * TINA is distributed in the hope that it will be useful,
 11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 13  * GNU General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU General Public License
 16  * along with TINA; if not, write to the Free Software Foundation, Inc., 
 17  * 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 18  *
 19  * ANY users of TINA who require exemption from the existing licence must
 20  * negotiate a new licence with Dr. Neil.A.Thacker, the sole agent for
 21  * the University of Manchester.
 22  *
 23  **********
 24  * 
 25  * Program :    TINA
 26  * File    :  $Source: /home/tina/cvs/tina-libs/tina/geometry/geomGen_3from2.c,v $
 27  * Date    :  $Date: 2008/10/30 09:43:59 $
 28  * Version :  $Revision: 1.3 $
 29  * CVS Id  :  $Id: geomGen_3from2.c,v 1.3 2008/10/30 09:43:59 neil Exp $
 30  *
 31  * Notes :
 32  *
 33  *********
 34 */
 35 
 36 
 37 #include "geomGen_3from2.h"
 38 
 39 #if HAVE_CONFIG_H
 40   #include <config.h>
 41 #endif
 42 
 43 #include <tina/sys/sysDef.h>
 44 #include <tina/sys/sysPro.h>
 45 #include <tina/geometry/geomDef.h>
 46 #include <tina/geometry/geom_LineDef.h>
 47 #include <tina/geometry/geom_LinePro.h>
 48 #include <tina/geometry/geom_CurveDef.h>
 49 #include <tina/geometry/geom_CurvePro.h>
 50 
 51 
 52 void   *geom3_from_geom2(void *geom, int *type, double *thres)
 53 {
 54     switch (*type)
 55     {
 56         case LINE2:
 57         *type = LINE3;
 58         return ((void *) line3_from_line2((Line2 *) geom));
 59     case CONIC2:
 60         *type = CONIC3;
 61         return ((void *) conic3_from_conic2((Conic *) geom, *thres));
 62     }
 63     return (NULL);
 64 }
 65 
 66 void   *geom3_from_geom2_rect(void *geom, int *type, double *thres)
 67 {
 68     switch (*type)
 69     {
 70         case LINE2:
 71         *type = LINE3;
 72         return ((void *) line3_from_line2_rect((Line2 *) geom));
 73         case CONIC2:
 74         *type = LIST;
 75         return ((void *) conic3_from_conic2_rect((Conic *) geom, *thres));
 76     }
 77     return (NULL);
 78 }
 79 
 80 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.