public class UtilOpenKinect
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
FREENECT_DEPTH_MM_MAX_VALUE |
static int |
FREENECT_DEPTH_MM_NO_VALUE |
| Constructor and Description |
|---|
UtilOpenKinect() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bufferDepthToU16(byte[] input,
boofcv.struct.image.ImageUInt16 output)
Converts data array into a 16bit depth image
|
static void |
bufferDepthToU16(java.nio.ByteBuffer input,
boofcv.struct.image.ImageUInt16 output)
Converts data in a ByteBuffer into a 16bit depth image
|
static void |
bufferRgbToMsU8(byte[] input,
boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageUInt8> output)
Converts byte array that contains RGB data into a 3-channel MultiSpectral image
|
static void |
bufferRgbToMsU8(java.nio.ByteBuffer input,
boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageUInt8> output)
Converts ByteBuffer that contains RGB data into a 3-channel MultiSpectral image
|
static int |
getHeight(Resolution resolution) |
static int |
getWidth(Resolution resolution) |
static void |
parseDepth(java.lang.String fileName,
boofcv.struct.image.ImageUInt16 depth,
org.ddogleg.struct.GrowQueue_I8 data) |
static void |
saveDepth(boofcv.struct.image.ImageUInt16 depth,
java.lang.String fileName,
org.ddogleg.struct.GrowQueue_I8 data) |
public static final int FREENECT_DEPTH_MM_MAX_VALUE
public static final int FREENECT_DEPTH_MM_NO_VALUE
public static int getWidth(Resolution resolution)
public static int getHeight(Resolution resolution)
public static void bufferDepthToU16(java.nio.ByteBuffer input,
boofcv.struct.image.ImageUInt16 output)
input - Input bufferoutput - Output depth imagepublic static void bufferDepthToU16(byte[] input,
boofcv.struct.image.ImageUInt16 output)
input - Input dataoutput - Output depth imagepublic static void bufferRgbToMsU8(java.nio.ByteBuffer input,
boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageUInt8> output)
input - Input bufferoutput - Output depth imagepublic static void bufferRgbToMsU8(byte[] input,
boofcv.struct.image.MultiSpectral<boofcv.struct.image.ImageUInt8> output)
input - Input arrayoutput - Output depth imagepublic static void saveDepth(boofcv.struct.image.ImageUInt16 depth,
java.lang.String fileName,
org.ddogleg.struct.GrowQueue_I8 data)
throws java.io.IOException
java.io.IOExceptionpublic static void parseDepth(java.lang.String fileName,
boofcv.struct.image.ImageUInt16 depth,
org.ddogleg.struct.GrowQueue_I8 data)
throws java.io.IOException
java.io.IOException