Definition at line 127 of file detectors.cc.
Public Member Functions | |
virtual void | operator() (const Image< byte > &im, vector< ImageRef > &corners, unsigned int N) const |
virtual void | operator() (const CVD::Image< CVD::byte > &i, std::vector< CVD::ImageRef > &c, unsigned int N) const =0 |
virtual void Random::operator() | ( | const Image< byte > & | im, | |
vector< ImageRef > & | corners, | |||
unsigned int | N | |||
) | const [inline, virtual] |
Detect corners by scattering points around at random.
im | Image in which to detect corners | |
corners | Detected corners are inserted in to this array | |
N | number of corners to detect |
Definition at line 133 of file detectors.cc.
00134 { 00135 for(unsigned int i=0; i < N; i++) 00136 corners.push_back(ImageRef(rand() % im.size().x, rand() % im.size().y)); 00137 }
virtual void DetectN::operator() | ( | const CVD::Image< CVD::byte > & | i, | |
std::vector< CVD::ImageRef > & | c, | |||
unsigned int | N | |||
) | const [pure virtual, inherited] |
Detect corners.
i | Image in which to detect corners | |
c | Detected corners are inserted in to this container | |
N | Number of corners to detect |
Implemented in dog, harrisdog, ShiTomasiDetect, and HarrisDetect.