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>
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. |
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:
CvPoint OpenLoopPolicies::getFixationPoint | ( | int | fixationNumber, |
int | policyType, | ||
CvSize | gridSize | ||
) | [static] |
Get a fixation point on some open loop trajectory.
fixationNumber | The 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. |
policyType | The specific trajectory to find a point on. Current choices are OpenLoopPolicy::RANDOM, OpenLoopPolicy::ORDERED, OpenLoopPolicy::SPIRAL. |
gridSize | The number of available locations that could be fixated. |