poIImagePlane CalcVidTracking

Calculates the data needed to track an image plane video.

Syntax

Imageplane_handle CalcVidTrackingx y

Application

HyperView Tcl Modify

Description

This command calculates the data needed to track an image plane video. The calculation is based on the x and y pixel coordinates.

Inputs

x
The number of pixels from the left edge of the image to the tracking point.
y
The number of pixels from the top edge of the image to the tracking point.

Example

To calculate the video tracking of an image plane:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetImagePlaneCtrlHandle ipc_handle
ipc_handle GetImagePlaneHandle image_plane_handle 1
image_plane_handle CalcVidTracking “10 10”
hwi CloseStack

Errors

Returns HW_InvalidHandle if the image plane handle is invalid, or PO_InvalidNode if good data not able to be calculated, or HW_Warning if the data returned does not correspond with the number of frames in the video.