public class OpenKinectFrameGrabber extends FrameGrabber
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditor, FrameGrabber.SampleMode
aspectRatio, audioBitrate, audioChannels, audioCodec, audioCodecName, audioDisposition, audioMetadata, audioOptions, audioSideData, audioStream, bpp, charset, deinterlace, format, frameNumber, frameRate, gamma, imageHeight, imageMode, imageScalingFlags, imageWidth, list, maxDelay, metadata, numBuffers, options, pixelFormat, sampleFormat, sampleMode, sampleRate, SENSOR_PATTERN_BGGR, SENSOR_PATTERN_GBRG, SENSOR_PATTERN_GRBG, SENSOR_PATTERN_RGGB, sensorPattern, startTime, timeout, triggerMode, videoBitrate, videoCodec, videoCodecName, videoDisposition, videoMetadata, videoOptions, videoSideData, videoStream
Constructor and Description |
---|
OpenKinectFrameGrabber(int deviceNumber) |
Modifier and Type | Method and Description |
---|---|
static OpenKinectFrameGrabber |
createDefault(File deviceFile) |
static OpenKinectFrameGrabber |
createDefault(int deviceNumber) |
static OpenKinectFrameGrabber |
createDefault(String devicePath) |
protected void |
finalize() |
ByteOrder |
getByteOrder() |
int |
getDepthFormat() |
static String[] |
getDeviceDescriptions() |
double |
getGamma() |
int |
getVideoFormat() |
Frame |
grab()
Each call to grab stores the new image in the memory address for the previously returned frame.
|
IplImage |
grabDepth() |
IplImage |
grabIR() |
IplImage |
grabVideo() |
void |
release() |
void |
setByteOrder(ByteOrder byteOrder) |
void |
setDepthFormat(int depthFormat) |
void |
setImageMode(FrameGrabber.ImageMode imageMode) |
void |
setVideoFormat(int videoFormat) |
void |
start() |
void |
stop() |
void |
trigger() |
static void |
tryLoad() |
close, create, create, create, create, createArray, delayedGrab, flush, get, getAspectRatio, getAudioBitrate, getAudioChannels, getAudioCodec, getAudioCodecName, getAudioDisposition, getAudioMetadata, getAudioMetadata, getAudioOption, getAudioOptions, getAudioSideData, getAudioSideData, getAudioStream, getBitsPerPixel, getCharset, getDefault, getDelayedFrame, getDelayedTime, getFormat, getFrameNumber, getFrameRate, getImageHeight, getImageMode, getImageScalingFlags, getImageWidth, getLengthInFrames, getLengthInTime, getMaxDelay, getMetadata, getMetadata, getNumBuffers, getOption, getOptions, getPixelFormat, getSampleFormat, getSampleMode, getSampleRate, getSensorPattern, getTimeout, getTimestamp, getVideoBitrate, getVideoCodec, getVideoCodecName, getVideoDisposition, getVideoMetadata, getVideoMetadata, getVideoOption, getVideoOptions, getVideoSideData, getVideoSideData, getVideoStream, grabAtFrameRate, grabFrame, init, isDeinterlace, isTriggerMode, resetStartTime, restart, setAspectRatio, setAudioBitrate, setAudioChannels, setAudioCodec, setAudioCodecName, setAudioDisposition, setAudioMetadata, setAudioMetadata, setAudioOption, setAudioOptions, setAudioSideData, setAudioSideData, setAudioStream, setBitsPerPixel, setCharset, setDeinterlace, setFormat, setFrameNumber, setFrameRate, setGamma, setImageHeight, setImageScalingFlags, setImageWidth, setMaxDelay, setMetadata, setMetadata, setNumBuffers, setOption, setOptions, setPixelFormat, setSampleFormat, setSampleMode, setSampleRate, setSensorPattern, setTimeout, setTimestamp, setTriggerMode, setVideoBitrate, setVideoCodec, setVideoCodecName, setVideoDisposition, setVideoMetadata, setVideoMetadata, setVideoOption, setVideoOptions, setVideoSideData, setVideoSideData, setVideoStream, waitForTimestamp
public static String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exception
public static OpenKinectFrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exception
public static OpenKinectFrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exception
public static OpenKinectFrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exception
public static void tryLoad() throws FrameGrabber.Exception
FrameGrabber.Exception
public void release() throws FrameGrabber.Exception
release
in class FrameGrabber
FrameGrabber.Exception
protected void finalize() throws Throwable
public ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
public int getDepthFormat()
public void setDepthFormat(int depthFormat)
public int getVideoFormat()
public void setVideoFormat(int videoFormat)
public double getGamma()
getGamma
in class FrameGrabber
public void setImageMode(FrameGrabber.ImageMode imageMode)
setImageMode
in class FrameGrabber
public void start() throws FrameGrabber.Exception
start
in class FrameGrabber
FrameGrabber.Exception
public void stop() throws FrameGrabber.Exception
stop
in class FrameGrabber
FrameGrabber.Exception
public void trigger() throws FrameGrabber.Exception
trigger
in class FrameGrabber
FrameGrabber.Exception
public IplImage grabDepth() throws FrameGrabber.Exception
FrameGrabber.Exception
public IplImage grabVideo() throws FrameGrabber.Exception
FrameGrabber.Exception
public IplImage grabIR() throws FrameGrabber.Exception
FrameGrabber.Exception
public Frame grab() throws FrameGrabber.Exception
FrameGrabber
grabber.grab() == grabber.grab()
Frame.clone()
the
returned frame as the next call to grab will overwrite your existing image's memory.
grab
in class FrameGrabber
FrameGrabber.Exception
Copyright © 2024. All rights reserved.