Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ARToolKitMarkerDetector.h

Go to the documentation of this file.
00001 
00045 #ifndef _AMIRE_COMMON_AR_TOOL_KIT_MARKER_DETECTOR_H
00046 #define _AMIRE_COMMON_AR_TOOL_KIT_MARKER_DETECTOR_H
00047 
00048 #include <amire/common/Defines.h>
00049 
00050 #include <amire/common/Matrix.h>
00051 
00052 #include <AR/param.h>
00053 #include <AR/ar.h>
00054 
00055 #include <amire/common/MarkerDetector.h>
00056 #include <amire/common/MarkerLoader.h>
00057 
00058 namespace amire {
00059   namespace common {
00063     class ARToolKitMarkerDetector : public virtual MarkerDetector {
00064     private:
00065       ARMarkerInfo *markers;
00066       int numberOfMarkers;
00067       long imageId;
00068 
00069       void detectMarkers();
00070 
00071     public:
00075       ARToolKitMarkerDetector(const osg::ref_ptr<Image> &image);
00076 
00077       virtual ~ARToolKitMarkerDetector();
00078 
00079       virtual bool detect(const osg::ref_ptr<Marker> &marker, float *transformation, float &confidenceFactor) ;
00080       virtual bool detect(const osg::ref_ptr<Marker> &marker, double *transformation, double &confidenceFactor);
00081       virtual bool detect(const std::vector<osg::ref_ptr<Marker> > &markers, float *transformation, int &index, float &confidenceFactor);
00082       virtual bool detect(const std::vector<osg::ref_ptr<Marker> > &markers, double *transformation, int &index, double &confidenceFactor);
00083     };
00084 
00085 
00089     class AMIRE_EXPORT_API ARToolKitMarkerLoader : public virtual MarkerLoader {
00090     public:
00094       ARToolKitMarkerLoader();
00095 
00096       virtual ~ARToolKitMarkerLoader();
00097 
00098       virtual bool supportsFile(const std::string &filename) const;
00099       virtual int loadMarker(const std::string &filename) const;
00100     };
00101   }
00102 }
00103 
00104 #endif

Generated on Tue May 20 17:23:52 2003 for AMIRE-Framework by doxygen1.3