FrameData¶
Data type¶
/**
*
* FrameData.COLOR
* FrameData.DEPTH
*
* */
public int flag;
TimeStamp¶
public int frameId;
Image width¶
public int width;
Image height¶
public int height;
Color frame type(Left / Left && Right)¶
public ColorFrame colorMode;
Frame format¶
/**
* MYNTCamera.FRAME_FORMAT_YUYV
* MYNTCamera.FRAME_FORMAT_MJPEG
* MYNTCamera.PIXEL_FORMAT_RGBX
*
* */
public int type;
Depth image type¶
/**
* MYNTCamera.DEPTH_DATA_11_BITS
* MYNTCamera.DEPTH_DATA_8_BITS
*
* */
public int depthType;
Get bitmap¶
public Bitmap convert2Bitmap(byte[] bytes, int width, int height)
Get data from left camera¶
public byte[] getLeftBytes()
Get data from right camera¶
public byte[] getRightBytes()
Get distance array(only the flag is “DEPTH”)¶
public int[] getDistanceInts()
Get distance array(only the flag is “DEPTH”)¶
/**
* get distance table(int)
*
* @param max Max(mm), if more than max, go to be 0.
*
* */
public int[] getDistanceInts(int max)
Get distance array(only the flag is “DEPTH”)¶
/**
* get distance table(int)
*
* @param min Min(mm)
* @param max Max(mm), if more than max, go to be 0.
*
* */
public int[] getDistanceInts(int min, int max)
Get distance array(only the flag is “DEPTH”)¶
public byte[] getDistanceShorts()
Get distance array(only the flag is “DEPTH”)¶
/**
* get distance table(int)
*
* @param max Max(mm), if more than max, go to be 0.
*
* */
public byte[] getDistanceShorts(int max)
Get distance array(only the flag is “DEPTH”)¶
/**
* get distance table(int)
*
* @param min Min(mm)
* @param max Max(mm), if more than max, go to be 0.
*
* */
public byte[] getDistanceShorts(int min, int max)
Get distance(only the flag is “DEPTH”)¶
public int getDistanceValue(int index)
Get distance(only the flag is “DEPTH”)¶
public int getDistanceValue(int x, int y)