|
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages
orientation.hGo to the documentation of this file.00001 /****************************************************** 00002 * orientation - header 00003 * 00004 * Description 00005 * estimate orientation of the ground object 00006 * 00007 ****************************************************** 00008 */ 00009 00010 #ifndef __ORIENTATION__H_ 00011 #define __ORIENTATION__H_ 00012 00013 #ifdef __cplusplus 00014 extern "C" 00015 { 00016 #endif 00017 00018 #include <stdio.h> 00019 #include <math.h> 00020 #include <opencv/cv.h> 00021 00022 00023 //Estimate the length between two points (cvpoint) 00024 double length(CvPoint *pnt1, CvPoint *pnt2); 00025 00026 //estimate direction of line 00027 int deltaline(CvPoint *pnt1, CvPoint *pnt2, char ch); 00028 00029 //estimate total difference between two lines (using delta x and delta y of 00030 //the the two points of a line) 00031 int difference(CvPoint *pnt1, CvPoint *pnt2, CvPoint *pnt3, CvPoint *pnt4, char ch); 00032 00033 //put length values of lines into array 00034 void fillarray(CvSeq *result); 00035 00036 //sort array 00037 void sortarray(); 00038 00039 //return centre point of two points 00040 CvPoint centralpoint(CvPoint pnt1, CvPoint pnt2); 00041 00042 //Get the central point between the two parallel lines 00043 CvPoint getcentralpoint(IplImage *image, CvSeq *res); 00044 00045 //pnt1 is center of mass of object, pnt2 is found central point 00046 //between parallel lines 00047 float getorientation(CvPoint pnt1, CvPoint pnt2); 00048 00049 #ifdef __cplusplus 00050 } 00051 #endif 00052 00053 #endif /* __ORIENTATION__H_ */ Generated on Tue May 3 14:15:34 2005 for Player by 1.3.6 |