Package pyvision :: Package point :: Module DetectorROI :: Class DetectorROI
[hide private]
[frames] | no frames]

Class DetectorROI

source code

Known Subclasses:

This class defines an interface to a Region Of Interest (ROI) detector.

Instance Methods [hide private]
 
__init__(self, n=250, selector='bins', bin_size=50)
n - is the approximate number of points requested.
source code
 
detect(self, image, **kwargs)
Returns a list of region of interest.
source code
 
_detect(self) source code
Method Details [hide private]

__init__(self, n=250, selector='bins', bin_size=50)
(Constructor)

source code 

n - is the approximate number of points requested. bin_size - the width and height of each bin in pixels. selector - ('all', 'bins', or 'best') stratagy for point selection.

When corner_selector is set to bins, the image is subdivided in to bins of size <bin_size>X<bin_size> pixels and an equal number of points will be taken from each of those bins. This insures that points are found in all parts of the image not just where the corners are strongest.

detect(self, image, **kwargs)

source code 

Returns a list of region of interest. Each element in the list is a tuple of (score,centerpoint,radius). Radius of "None" is used for point detectors. Higher scores are better and scores of "None" indicate no score is avalible.