Package pype :: Module lzones
[frames] | no frames]

Module lzones

source code

Pure python/pype landing zone (aka fixwin) implementation.

Not really for public consumption.

Author -- James A. Mazer (mazerj@gmail.com)

Classes
  LandingZone
Circular Landing zone detector -- this is sort of like a FixWin, but all done in pype (vs comedi_server subproc). A landing zone is circular region located at (x,y) with a radius of size pixels. Once the eyes enter the landing zone, a counter is started. If the eyes are still in the landing zone after fixtime, then it's considered a landing event the .inside() method returns one.
  SectorLandingZone
Sector-style Landing zone detector -- landing zone is defined as an angular sector of an annular zone around a fixation spot (xo, yo). Annular sector runs from inner_pix to outer_pix and has an angular subtense of angle_deg +- subtense_deg.