Tracking
"vision/correlation" defines functions to find
correlation between window-image and tracking-image.
tracking-window [class]
:super pixel-image
:slots x-pos y-pos x-vel y-vel
pattern-size window-size
x-win y-win window window-margin
update threshold half-pattern correlation
-
- This class defines tracking window.
:correlation [method]
-
-
returns correlation between window-image and this image.
:grab &optional (x x-pos) (y y-pos) (sampling 2) [method]
-
-
grabs video image and returns grabbed pixel-image.
:window-rectangle val [method]
-
-
draws rectangle on xwindow.
:rectangle val [method]
-
-
draws rectangle on xwindow.
:move newpos &aux (newx (aref newpos 0)) (newy (aref newpos 1)) [method]
-
-
moves tracking-window to newpos and grabs video image.
:track display-window &optional th [method]
-
-
tracks this image from window image.
:search display-window &optional th [method]
-
-
searches this image from window image.
:track-and-search flag &optional th [method]
-
-
tracks this image. If mistake tracking, searches this image from window image.
:pos [method]
-
-
returns up-left position of window.
:vel [method]
-
-
returns tracking velocity.
:insidep pos &aux (x (aref pos 0)) (y (aref pos 1)) [method]
-
-
checks pos that is contained with tracking window.
:update &optional (flag :get) [method]
-
-
sets flag as update. if flag doesn't exist, returns update.
:prin1 strm &rest mesg [method]
-
-
prints this tracking-window object with its name and dimensions.
:init x y size win-size [method]
-
-
creates tracking-window object and sets slots.
k-okada
2013-05-21