T - public abstract class KinectStream<T extends Image<?,T>> extends Video<T>
currentFrame| Constructor and Description |
|---|
KinectStream(KinectController controller)
Construct with a reference to the controller
|
| Modifier and Type | Method and Description |
|---|---|
long |
countFrames()
Return the number of frames in the whole video.
|
T |
getCurrentFrame()
Get the current frame
|
double |
getFPS()
Get the frame rate
|
int |
getHeight()
Get the height of the video frame.
|
T |
getNextFrame()
Get the next frame.
|
long |
getTimeStamp()
Get the timestamp of the current frame
|
int |
getWidth()
Get the width of the video frame
|
boolean |
hasNextFrame()
Returns whether this video has another frame to provide.
|
void |
reset()
Reset the video - putting the frame counter back to the start.
|
void |
stop()
Stop the stream
|
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndexclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic KinectStream(KinectController controller)
controller - The controllerpublic T getNextFrame()
VideogetNextFrame in class Video<T extends Image<?,T>>public T getCurrentFrame()
VideogetCurrentFrame in class Video<T extends Image<?,T>>public int getWidth()
Videopublic int getHeight()
Videopublic boolean hasNextFrame()
VideohasNextFrame in class Video<T extends Image<?,T>>public long countFrames()
VideocountFrames in class Video<T extends Image<?,T>>public void reset()
Videopublic void stop()
public long getTimeStamp()
getTimeStamp in class Video<T extends Image<?,T>>