예제 #1
0
        /// <summary>
        /// Get image data which used tracking engine
        /// </summary>
        /// <returns>Image byte array</returns>
        public byte[] GetData()
        {
            if (length == 0)
            {
                return(null);
            }

            if (data == null)
            {
                data = new byte[length];
            }

            NativeAPI.TrackedImage_getData(trackedImageCPtr, data, length);

            return(data);
        }