25 #ifndef __LEDDETECTOR_HH__
26 #define __LEDDETECTOR_HH__
28 #include <bias_config.h>
30 #ifndef BIAS_HAVE_OPENCV
31 # error Please recompile BIAS with USE_OPENCV to use this code.
34 #include <Base/Common/W32Compat.hh>
35 #include <Base/Image/Image.hh>
36 #include <Base/Math/Vector3.hh>
77 void GetAttributes(std::vector<double> &minX, std::vector<double> &maxX,
78 std::vector<double> &maxValues);
89 int CheckNeighboursIfWhite_(
int x,
int y,
int& a,
int& b);
91 int CheckNeighboursIfWhite_inter_(
int x,
int y);
93 void Search_(
int x,
int y);
97 void TemplateMatching_();
99 int CheckNeighbours_(
int a,
int b);
109 std::vector<std::vector<BIAS::Vector3<double> > >
nextpixel;
132 #endif // __LEDDetector_hh__
std::vector< BIAS::Vector3< double > > resultpixel_old
std::vector< double > minxcoords
This class contains methods to detect (IR)-LED-Spots, with template matching (new search) or in "recy...
std::vector< BIAS::Vector3< double > > resultpixel
std::vector< std::vector< BIAS::Vector3< double > > > nextpixel
std::vector< BIAS::Vector3< double > > whitepixel
IplImage * gray_threshold