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

Linux Cross Reference
Tina5/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 Lesser 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 Lesser General Public License for more details.
 14  *
 15  * You should have received a copy of the GNU Lesser 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  **********
 20  * 
 21  * Program :    TINA
 22  * File    :  $Source: /home/tina/cvs/tina-libs/tina/geometry/geomGen_3from2.c,v $
 23  * Date    :  $Date: 2008/10/30 09:43:59 $
 24  * Version :  $Revision: 1.3 $
 25  * CVS Id  :  $Id: geomGen_3from2.c,v 1.3 2008/10/30 09:43:59 neil Exp $
 26  *
 27  * Notes :
 28  *
 29  *********
 30 */
 31 
 32 
 33 #include "geomGen_3from2.h"
 34 
 35 #if HAVE_CONFIG_H
 36   #include <config.h>
 37 #endif
 38 
 39 #include <tina/sys/sysDef.h>
 40 #include <tina/sys/sysPro.h>
 41 #include <tina/geometry/geomDef.h>
 42 #include <tina/geometry/geom_LineDef.h>
 43 #include <tina/geometry/geom_LinePro.h>
 44 #include <tina/geometry/geom_CurveDef.h>
 45 #include <tina/geometry/geom_CurvePro.h>
 46 
 47 
 48 void   *geom3_from_geom2(void *geom, int *type, double *thres)
 49 {
 50     switch (*type)
 51     {
 52         case LINE2:
 53         *type = LINE3;
 54         return ((void *) line3_from_line2((Line2 *) geom));
 55     case CONIC2:
 56         *type = CONIC3;
 57         return ((void *) conic3_from_conic2((Conic *) geom, *thres));
 58     }
 59     return (NULL);
 60 }
 61 
 62 void   *geom3_from_geom2_rect(void *geom, int *type, double *thres)
 63 {
 64     switch (*type)
 65     {
 66         case LINE2:
 67         *type = LINE3;
 68         return ((void *) line3_from_line2_rect((Line2 *) geom));
 69         case CONIC2:
 70         *type = LIST;
 71         return ((void *) conic3_from_conic2_rect((Conic *) geom, *thres));
 72     }
 73     return (NULL);
 74 }
 75 
 76 

~ [ 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.