/* * Processor.h * * Created on: Jun 13, 2010 * Author: ethan */ #ifndef PROCESSOR_H_ #define PROCESSOR_H_ #include #include #include #include #include #include #include "image_pool.h" #define DETECT_FAST 0 #define DETECT_STAR 1 #define DETECT_SURF 2 class Processor { cv::StarFeatureDetector stard; cv::FastFeatureDetector fastd; cv::SurfFeatureDetector surfd; std::vector keypoints; vector > imagepoints; cv::Mat K; cv::Mat distortion; cv::Size imgsize; //image_pool pool; public: Processor(); virtual ~Processor(); void detectAndDrawFeatures(int idx, image_pool* pool, int feature_type); bool detectAndDrawChessboard(int idx,image_pool* pool); void resetChess(); int getNumberDetectedChessboards(); void calibrate(const char* filename); void drawText(int idx, image_pool* pool, const char* text); }; #endif /* PROCESSOR_H_ */