Random Struct Reference
[Functions for detecting corners of various types.]

Inheritance diagram for Random:

DetectN

List of all members.


Detailed Description

Detector which randomly scatters corners around an image.

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

Member Function Documentation

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.

Parameters:
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.

Parameters:
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.


The documentation for this struct was generated from the following file:
Generated on Mon Mar 2 12:47:15 2009 for FAST-ER by  doxygen 1.5.3