public class OpenKinect2FrameGrabber extends FrameGrabber
FrameGrabber.Array, FrameGrabber.Exception, FrameGrabber.ImageMode, FrameGrabber.PropertyEditor, FrameGrabber.SampleMode| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_COLOR_HEIGHT |
static int |
DEFAULT_COLOR_WIDTH |
static int |
DEFAULT_DEPTH_HEIGHT |
static int |
DEFAULT_DEPTH_WIDTH |
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, timestamp, triggerMode, videoBitrate, videoCodec, videoCodecName, videoDisposition, videoMetadata, videoOptions, videoSideData, videoStream| Constructor and Description |
|---|
OpenKinect2FrameGrabber(int deviceNumber) |
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, getGamma, 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, setImageMode, 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, waitForTimestamppublic static int DEFAULT_DEPTH_WIDTH
public static int DEFAULT_DEPTH_HEIGHT
public static int DEFAULT_COLOR_WIDTH
public static int DEFAULT_COLOR_HEIGHT
public static String[] getDeviceDescriptions() throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic ByteOrder getByteOrder()
public void setByteOrder(ByteOrder byteOrder)
public static OpenKinect2FrameGrabber createDefault(int deviceNumber) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static OpenKinect2FrameGrabber createDefault(File deviceFile) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static OpenKinect2FrameGrabber createDefault(String devicePath) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic static void tryLoad()
throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic void enableColorStream()
public void enableDepthStream()
public void enableIRStream()
public void release()
throws FrameGrabber.Exception
release in class FrameGrabberFrameGrabber.Exceptionprotected void finalize()
throws Throwable
public void start()
throws FrameGrabber.Exception
start in class FrameGrabberFrameGrabber.Exceptionpublic void startDevice(PacketPipeline pipeline) throws FrameGrabber.Exception
FrameGrabber.Exceptionpublic void stop()
throws FrameGrabber.Exception
stop in class FrameGrabberExceptionFrameGrabber.Exceptionprotected void grabVideo()
protected void grabIR()
protected void grabDepth()
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 FrameGrabberFrameGrabber.Exceptionpublic IplImage getVideoImage()
public IplImage getIRImage()
public IplImage getDepthImage()
public void trigger()
throws FrameGrabber.Exception
trigger in class FrameGrabberFrameGrabber.Exceptionpublic int getDepthImageWidth()
public void setDepthImageWidth(int depthImageWidth)
public int getDepthImageHeight()
public void setDepthImageHeight(int depthImageHeight)
public int getIRImageWidth()
public void setIRImageWidth(int IRImageWidth)
public int getIRImageHeight()
public void setIRImageHeight(int IRImageHeight)
public int getDepthFrameRate()
public void setDepthFrameRate(int frameRate)
Copyright © 2024. All rights reserved.