You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
valvedetect/3part/Cyclops/include/OneDollar/OneDollarWithCornerRec.h

51 lines
1.4 KiB
C

#ifndef OneDollarWithCornerRec_h__
#define OneDollarWithCornerRec_h__
#include "OneDollarRec.h"
#include "SimpleCornerDetector.h"
#include "D2CornerDetector.h"
#include "OnlineCornerDetector.h"
namespace pagic
{
class OneDollarWithCornerRec : public OneDollarRec
{
public:
OneDollarWithCornerRec();
int getSampleNum4EachSegment() const { return m_sampleNum4EachSegment; }
void setSampleNum4EachSegment(int val) { m_sampleNum4EachSegment = val; }
vector<CornerInfo*> getCurCorners() const { return m_curCorners; }
RecResult recognize(const vector<Point2d>& tarPosVec);
virtual RecResult recognize(const vector<Point2d>& tarPosVec,
const vector<CornerInfo>& corners);
virtual void resampleAccordingDetectedCorners(
vector< vector<Point2d> >& templates,
OnlineCornerDetector* pCDet,
int sampleSegNum);
virtual void resampleAccordingDetectedCorners(
vector<Point2d>& posVec,
OnlineCornerDetector* pCDet,
int sampleSegNum);
virtual void resampleAccordingDetectedCorners(
vector<Point2d>& posVec,
vector<CornerInfo*>& corners,
int sampleSegNum);
virtual void resampleAccordingDetectedCorners(
vector<Point2d>& posVec,
const vector<CornerInfo>& corners,
int sampleSegNum);
protected:
int m_sampleNum4EachSegment;
OnlineCornerDetector m_cornerDetector;
vector<CornerInfo*> m_curCorners;
};
}
#endif // OneDollarWithCornerRec_h__