Static Public Member Functions | Static Public Attributes

OpenLoopPolicies Class Reference
[Auxilliary Tools]

Auxilliary Tool: A static class for some open-loop fixation strategies, which can be used as points of comparison to more sophisticated search strategies. More...

#include <OpenLoopPolicies.h>

List of all members.

Static Public Member Functions

static CvPoint getFixationPoint (int fixationNumber, int policyType, CvSize gridSize)
 Get a fixation point on some open loop trajectory.

Static Public Attributes

static const int RANDOM = 0
 Generate fixation point from the Random policy, picking the next point randomly.
static const int ORDERED = 1
 Generate fixation point from the Ordered policy, scanning left-to-right, top-to-bottom.
static const int SPIRAL = 2
 Generate the next fixation as the next-closest-cell-to-center. As of the current implementation, this does not yield a proper spiral, but some approximation.

Detailed Description

Auxilliary Tool: A static class for some open-loop fixation strategies, which can be used as points of comparison to more sophisticated search strategies.

Since the policies are all open loop, they can all be indexed by a point on a trajectory and so no state is needed, hence the class is static. Fixation points can be generated via the OpenLoopPolicies::getFixationPoint() function, which requires a fixation number (point on the trajectory), a policy type, and the size of the the visual field.

The following policies are implemented:

Author:
Nicholas Butko
Date:
2010
Version:
0.4

Member Function Documentation

CvPoint OpenLoopPolicies::getFixationPoint ( int  fixationNumber,
int  policyType,
CvSize  gridSize 
) [static]

Get a fixation point on some open loop trajectory.

Parameters:
fixationNumberThe discrete point along the trajectory, indexed from 0. To get the next fixation point on the trajectory, this parameter should be incremented, keeping the other parameters fixed.
policyTypeThe specific trajectory to find a point on. Current choices are OpenLoopPolicy::RANDOM, OpenLoopPolicy::ORDERED, OpenLoopPolicy::SPIRAL.
gridSizeThe number of available locations that could be fixated.
Returns:
A point on the grid to fixate next.

The documentation for this class was generated from the following files: