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, setCurrentFrameIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public KinectStream(KinectController controller)
controller
- The controllerpublic T getNextFrame()
Video
getNextFrame
in class Video<T extends Image<?,T>>
public T getCurrentFrame()
Video
getCurrentFrame
in class Video<T extends Image<?,T>>
public int getWidth()
Video
public int getHeight()
Video
public boolean hasNextFrame()
Video
hasNextFrame
in class Video<T extends Image<?,T>>
public long countFrames()
Video
countFrames
in class Video<T extends Image<?,T>>
public void reset()
Video
public void stop()
public long getTimeStamp()
getTimeStamp
in class Video<T extends Image<?,T>>