@Namespace(value="libfreenect2")
public static class freenect2.Freenect2Device
extends org.bytedeco.javacpp.Pointer
/** Device control.
| Modifier and Type | Class and Description |
|---|---|
static class |
freenect2.Freenect2Device.ColorCameraParams
Color camera calibration parameters.
|
static class |
freenect2.Freenect2Device.Config
Configuration of depth processing.
|
static class |
freenect2.Freenect2Device.IrCameraParams
IR camera intrinsic calibration parameters.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
ProductId |
static int |
ProductIdPreview |
static int |
VendorId |
| Constructor and Description |
|---|
Freenect2Device(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
_close()
Shut down the device.
|
freenect2.Freenect2Device.ColorCameraParams |
getColorCameraParams()
Get current color parameters.
|
org.bytedeco.javacpp.BytePointer |
getFirmwareVersion() |
freenect2.Freenect2Device.IrCameraParams |
getIrCameraParams()
Get current depth parameters.
|
org.bytedeco.javacpp.BytePointer |
getSerialNumber() |
static int |
ProductId() |
static int |
ProductIdPreview() |
void |
setColorCameraParams(freenect2.Freenect2Device.ColorCameraParams params)
Replace factory preset color camera parameters.
|
void |
setColorFrameListener(freenect2.FrameListener rgb_frame_listener)
Provide your listener to receive color frames.
|
void |
setConfiguration(freenect2.Freenect2Device.Config config)
Configure depth processing.
|
void |
setIrAndDepthFrameListener(freenect2.FrameListener ir_frame_listener)
Provide your listener to receive IR and depth frames.
|
void |
setIrCameraParams(freenect2.Freenect2Device.IrCameraParams params)
Replace factory preset depth camera parameters.
|
boolean |
start()
Start data processing with both RGB and depth streams.
|
boolean |
startStreams(boolean rgb,
boolean depth)
Start data processing with or without some streams.
|
boolean |
stop()
Stop data processing.
|
static int |
VendorId() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic static final int VendorId
public static final int ProductId
public static final int ProductIdPreview
public Freenect2Device(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).@MemberGetter @Cast(value="const unsigned int") public static int VendorId()
@MemberGetter @Cast(value="const unsigned int") public static int ProductId()
@MemberGetter @Cast(value="const unsigned int") public static int ProductIdPreview()
@StdString public org.bytedeco.javacpp.BytePointer getSerialNumber()
@StdString public org.bytedeco.javacpp.BytePointer getFirmwareVersion()
@ByVal public freenect2.Freenect2Device.ColorCameraParams getColorCameraParams()
@ByVal public freenect2.Freenect2Device.IrCameraParams getIrCameraParams()
public void setColorCameraParams(@Const @ByRef
freenect2.Freenect2Device.ColorCameraParams params)
public void setIrCameraParams(@Const @ByRef
freenect2.Freenect2Device.IrCameraParams params)
public void setConfiguration(@Const @ByRef
freenect2.Freenect2Device.Config config)
public void setColorFrameListener(freenect2.FrameListener rgb_frame_listener)
public void setIrAndDepthFrameListener(freenect2.FrameListener ir_frame_listener)
@Cast(value="bool") public boolean start()
@Cast(value="bool")
public boolean startStreams(@Cast(value="bool")
boolean rgb,
@Cast(value="bool")
boolean depth)
rgb - Whether to enable RGB stream.depth - Whether to enable depth stream.@Cast(value="bool") public boolean stop()
@Cast(value="bool") @Name(value="close") public boolean _close()
Copyright © 2018. All rights reserved.