public class KinectDepthSnapshot extends Video<MBFImage> implements KeyListener
Modifier and Type | Field and Description |
---|---|
protected ResizeProcessor |
fullScreenResizeProcessor |
Constructor and Description |
---|
KinectDepthSnapshot(int id)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
long |
countFrames()
Return the number of frames in the whole video.
|
MBFImage |
getCurrentFrame()
Get the current frame
|
VideoDisplay<MBFImage> |
getDisplay()
Get the display showing the kinect video
|
double |
getFPS()
Get the frame rate
|
int |
getHeight()
Get the height of the video frame.
|
MBFImage |
getNextFrame()
Get the next frame.
|
long |
getTimeStamp()
Get the timestamp of the current frame in milliseconds
|
int |
getWidth()
Get the width of the video frame
|
boolean |
hasNextFrame()
Returns whether this video has another frame to provide.
|
void |
keyPressed(KeyEvent e) |
void |
keyReleased(KeyEvent e) |
void |
keyTyped(KeyEvent e) |
static void |
main(String[] args)
Default main
|
void |
reset()
Reset the video - putting the frame counter back to the start.
|
close, getCurrentFrameIndex, iterator, seek, setCurrentFrameIndex
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected ResizeProcessor fullScreenResizeProcessor
public KinectDepthSnapshot(int id) throws KinectException
id
- of kinect controllerKinectException
public MBFImage getNextFrame()
Video
getNextFrame
in class Video<MBFImage>
public MBFImage getCurrentFrame()
Video
getCurrentFrame
in class Video<MBFImage>
public int getWidth()
Video
public int getHeight()
Video
public boolean hasNextFrame()
Video
hasNextFrame
in class Video<MBFImage>
public long countFrames()
Video
countFrames
in class Video<MBFImage>
public void reset()
Video
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void keyPressed(KeyEvent e)
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public static void main(String[] args) throws KinectException
args
- Command-line argumentsKinectException
public long getTimeStamp()
Video
getTimeStamp
in class Video<MBFImage>
public VideoDisplay<MBFImage> getDisplay()