00001 #ifndef KLT_H 00002 #define KLT_H 00003 /* DO NOT USE */ 00004 00005 /* This is a dumbass function */ 00006 00007 // To be completed http://vision.stanford.edu/~birch/klt/ 00008 /* 00009 #include "object.h" 00010 #include "image.h" 00011 00012 extern "C" 00013 { 00014 #include "../klt/klt.h" 00015 #include "../klt/pnmio.h" 00016 } 00017 00018 00019 class klt: public image<int> 00020 { 00021 private: 00022 KLT_TrackingContext tc; 00023 KLT_FeatureList fl; 00024 int nFeatures; 00025 00026 public: 00027 00028 klt(void) : object( TYPE_KLT ) 00029 { 00030 nFeatures=100; 00031 tc=KLTCreateTrackingContext(); 00032 fl = KLTCreateFeatureList(nFeatures); 00033 } 00034 00035 klt(const int nf) : object( TYPE_KLT ) 00036 { 00037 nFeatures=nf; 00038 tc=KLTCreateTrackingContext(); 00039 fl = KLTCreateFeatureList(nFeatures); 00040 } 00041 00042 void klt_selectGoodFeatures(void) 00043 { 00044 KLTSelectGoodFeatures(tc, getHeight(), getWidth(), fl); 00045 } 00046 00047 00048 // KLT functions 00049 00050 } */ 00051 00052 #endif