new video(id)
Creates a video object
Parameters:
| Name | Type | Description |
|---|---|---|
id |
string | The id of the dom element containing the video |
Methods
GetAvailHeight()
gets available height (6.14.06)
GetAvailWidth()
gets available width (6.14.06)
GetDirName()
Gets mode
GetFileInfo()
Returns self object in order to be compliant with the functions from file_info
GetFullName()
Gets full image name
GetImagePath()
Gets image path
GetImName()
Gets image name
GetImRatio()
Returns the ratio of the available width/height to the original
width/height. For now, it is always 1
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 |
GetNewVideo()
Fetches a new video based on the URL string. Creates a div container to store the video
GetTemplatePath()
Gets template path
GetURLField()
String is assumed to have field=value form. Parses string to
return the field.
GetURLValue()
String is assumed to have field=value form. Parses string to
return the value.
IsFitImage()
Returns true if the image is zoomed to the original (fitted) resolution.
IsPointVisible()
Returns true if (x,y) is viewable.
ParseURL()
Parses url again, knowing that is a video. The function is almost a replica of that in file_info
ScaleFrame()
Tells the picture to take up the available space in the browser, if it needs it. 6.29.06
ScrollbarsOff()
Turn off image scrollbars if zoomed in.
ScrollbarsOn()
Turn on image scrollbars if zoomed in.
SetImageDimensions()
Sets the dimensions of the image based on browser setup. For now it sets 640x480
SetOrigImDims(im)
Retrieves and sets the original image's dimensions (width/height).
Parameters:
| Name | Type | Description |
|---|---|---|
im |
image |
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 |
Returns:
- Type
- intarray
SubmitEditObject()
Submits an edited object, stored in select_anno
SubmitObject()
Submits an object for the first time. It is the equivalent of SubmitQuery for video
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 |
Zoom()
Not working now