mAllocTrans.c
Go to the documentation of this file.
00001 /*******************************************************
00002  *
00003  * Author: Shinsaku Hiura, Hirokazu Kato
00004  *
00005  *         shinsaku@sys.es.osaka-u.ac.jp
00006  *         kato@sys.im.hiroshima-cu.ac.jp
00007  *
00008  * Revision: 2.1
00009  * Date: 99/07/16
00010  *
00011 *******************************************************/
00012 #include <stdio.h>
00013 #include <math.h>
00014 #ifndef __APPLE__
00015 #include <malloc.h>
00016 #else
00017 #include <stdlib.h>
00018 #endif
00019 #include <AR/matrix.h>
00020 
00021 ARMat *arMatrixAllocTrans(ARMat *source)
00022 {
00023         ARMat *dest;
00024 
00025         dest = arMatrixAlloc(source->clm, source->row);
00026         if( dest == NULL ) return NULL;
00027 
00028         if( arMatrixTrans(dest, source) < 0 ) {
00029                 arMatrixFree(dest);
00030                 return NULL;
00031         }
00032 
00033         return dest;
00034 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:00