mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
939 B
54 lines
939 B
/* |
|
* Processor.h |
|
* |
|
* Created on: Jun 13, 2010 |
|
* Author: ethan |
|
*/ |
|
|
|
#ifndef PROCESSOR_H_ |
|
#define PROCESSOR_H_ |
|
|
|
#include <opencv2/core/core.hpp> |
|
#include <opencv2/features2d/features2d.hpp> |
|
#include <opencv2/highgui/highgui.hpp> |
|
#include <opencv2/imgproc/imgproc.hpp> |
|
#include <opencv2/calib3d/calib3d.hpp> |
|
|
|
#include <vector> |
|
|
|
#include "image_pool.h" |
|
|
|
#define DETECT_FAST 0 |
|
#define DETECT_STAR 1 |
|
#define DETECT_SURF 2 |
|
|
|
class Calibration |
|
{ |
|
public: |
|
|
|
Calibration(); |
|
virtual ~Calibration(); |
|
|
|
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); |
|
|
|
cv::Size patternsize; |
|
private: |
|
std::vector<cv::KeyPoint> keypoints; |
|
|
|
std::vector<std::vector<cv::Point2f> > imagepoints; |
|
|
|
cv::Mat K; |
|
cv::Mat distortion; |
|
cv::Size imgsize; |
|
|
|
}; |
|
|
|
#endif /* PROCESSOR_H_ */
|
|
|