[Motmot] fview plugin drawing with ROI
Andrew Straw
astraw at caltech.edu
Wed Dec 9 18:57:22 UTC 2009
John Bender wrote:
> I've got an fview plugin that returns a few points to be drawn on the
> image. When I use a hardware region of interest in the fview camera
> settings, the points are drawn on the fview window relative to the
> bottom of the window, not the bottom of my ROI. (E.g., I set "height"
> to 305 and "bottom" to 70, my plugin wants to draw a point at (50,50)
> relative to the ROI, fview should draw that point at (50,120) but
> actually draws it at (50,50).) Should I be adding the ROI offset to
> the points before returning them, or is this a bug in fview?
>
Hi John,
Change the points before returning them. The process_frame() method
takes a buf_offset argument that species the exact offset.
-Andrew
--
Andrew D. Straw, Ph.D.
California Institute of Technology
http://www.its.caltech.edu/~astraw/
More information about the Motmot
mailing list