Class: video

video

new video(id)

Creates a video object
Parameters:
Name Type Description
id string The id of the dom element containing the video
Source:

Methods

GetAvailHeight()

gets available height (6.14.06)
Source:

GetAvailWidth()

gets available width (6.14.06)
Source:

GetDirName()

Gets mode
Source:

GetFileInfo()

Returns self object in order to be compliant with the functions from file_info
Source:

GetFullName()

Gets full image name
Source:

GetImagePath()

Gets image path
Source:

GetImName()

Gets image name
Source:

GetImRatio()

Returns the ratio of the available width/height to the original width/height. For now, it is always 1
Source:

GetInterpolatedPoints(xinit, yinit, xend, yend, tinit, tend, tcurrent)

Computes a set of points representing a linearly interpolated polygon.
Parameters:
Name Type Description
xinit array xcoordinates of the polygon at tinit
yinit array ycoordinates of the polygon at tinit
xend array xcoordinates of the polygon at tend
yend array ycoordinates of the polygon at tend
tinit int first ground truth frame number
tend int last ground truth frame number
tcurrent int frame that has to be interpolated
Source:

GetNewVideo()

Fetches a new video based on the URL string. Creates a div container to store the video
Source:

GetTemplatePath()

Gets template path
Source:

GetURLField()

String is assumed to have field=value form. Parses string to return the field.
Source:

GetURLValue()

String is assumed to have field=value form. Parses string to return the value.
Source:

IsFitImage()

Returns true if the image is zoomed to the original (fitted) resolution.
Source:

IsPointVisible()

Returns true if (x,y) is viewable.
Source:

ParseURL()

Parses url again, knowing that is a video. The function is almost a replica of that in file_info
Source:

ScaleFrame()

Tells the picture to take up the available space in the browser, if it needs it. 6.29.06
Source:

ScrollbarsOff()

Turn off image scrollbars if zoomed in.
Source:

ScrollbarsOn()

Turn on image scrollbars if zoomed in.
Source:

SetImageDimensions()

Sets the dimensions of the image based on browser setup. For now it sets 640x480
Source:

SetOrigImDims(im)

Retrieves and sets the original image's dimensions (width/height).
Parameters:
Name Type Description
im image
Source:

SlideWindow(x, y) → {intarray}

If (x,y) is not in view, then scroll it into view. Return adjusted (x,y) point that takes into account the slide offset.
Parameters:
Name Type Description
x int
y int
Source:
Returns:
Type
intarray

SubmitEditObject()

Submits an edited object, stored in select_anno
Source:

SubmitObject()

Submits an object for the first time. It is the equivalent of SubmitQuery for video
Source:

UpdateObjectPosition(anno)

Update the position of an annotation. Modifies the xml file information about a given annotation.
Parameters:
Name Type Description
anno annotation annotation containing the info about the polygon
Source:

Zoom()

Not working now
Source: