public int MaxDepth = 10000; //DO NOT MODIFY IN RUNTIME!! // Use this for initialization public ZgDepthViewer() { //TODO nedes to handle Kinect2.0 resolutions textureSize = ZgResolutionData.FromZgResolution(TextureSize); DepthTexture = new Texture2D(textureSize.Width, textureSize.Height); DepthTexture.wrapMode = TextureWrapMode.Clamp; depthHistogramMap = new float[MaxDepth]; depthToColor = new Color32[MaxDepth]; outputPixels = new Color32[textureSize.Width * textureSize.Height]; }
public ZgImageViewer() { //TODO nedes to handle Kinect2.0 resolutions imageSizeData = ZgResolutionData.FromZgResolution(imageResolution); imageTexture = new Texture2D(imageSizeData.Width, imageSizeData.Height); imageTexture.wrapMode = TextureWrapMode.Clamp; imageOutputPixels = new Color32[imageSizeData.Width * imageSizeData.Height]; userTextureSize = ZgResolutionData.FromZgResolution(userResolution); //userTexture = new Texture2D(userTextureSize.Width, userTextureSize.Height); //userTexture.wrapMode = TextureWrapMode.Clamp; userOutputPixels = new Color32[userTextureSize.Width * userTextureSize.Height]; }