3 using System.Collections.Generic;
6 using System.Runtime.InteropServices;
19 private byte[] data = null;
20 private IntPtr imagePtr = IntPtr.Zero;
22 internal void SetDataPtr(ulong Image_cPtr)
24 if (Application.platform == RuntimePlatform.IPhonePlayer)
31 if (width == 0 || height == 0)
36 imagePtr = (IntPtr)
NativeStaticAPI.TrackedImage_getDataPtr(Image_cPtr, length);
45 if (width == 0 || height == 0)
50 imagePtr = (IntPtr)
NativeSharedAPI.TrackedImage_getDataPtr(Image_cPtr, length);
54 internal void SetData(ulong Image_cPtr)
56 if (Application.platform == RuntimePlatform.IPhonePlayer)
63 if (width ==0 || height == 0)
70 data =
new byte[length];
82 if (width == 0 || height == 0)
89 data =
new byte[length];
141 public IntPtr GetDataPtr()
int GetHeight()
Get height
int GetLength()
Get length (width * height * bits per pixel)
byte [] GetData()
Image byte array
ColorFormat GetFormat()
Image format
ColorFormat
Camera image format
image data which is used for tracker and rendering