public static WriteableBitmap FromUShort(ushort[] myDepthFrame) { byte[] pixels = ImageExtensions.ConvertUshortToByte(myDepthFrame); WriteableBitmap depthBitmap = WriteableBitmapUtils.FromByteArray_ToGray(pixels, DepthMetaData.XDepthMaxKinect, DepthMetaData.YDepthMaxKinect); return(depthBitmap); }
public DepthMetaData(PointCloud pc, bool createBitmap) { this.FrameData = FromPointCloud(pc); if (createBitmap) { this.pixels = ImageExtensions.ConvertUshortToByte(this.FrameData); //depthBitmap = WriteableBitmapUtils.FromByteArray_ToGray(pixels, DepthMetaData.XDepthMaxKinect, DepthMetaData.YDepthMaxKinect); } }
public DepthMetaData(List <OpenTK.Vector3> vectors, bool createBitmap) { this.FrameData = FromVector3List(vectors); if (createBitmap) { this.pixels = ImageExtensions.ConvertUshortToByte(this.FrameData); depthBitmap = WriteableBitmapUtils.FromByteArray_ToGray(pixels, DepthMetaData.XDepthMaxKinect, DepthMetaData.YDepthMaxKinect); } }
public static WriteableBitmap ToWriteableBitmap(List <Vector3> listOfPoints) { ushort[] myDepthFrame = FromVector3List(listOfPoints); byte[] pixels = ImageExtensions.ConvertUshortToByte(myDepthFrame); WriteableBitmap depthBitmap = WriteableBitmapUtils.FromByteArray_ToGray(pixels, DepthMetaData.XDepthMaxKinect, DepthMetaData.YDepthMaxKinect); return(depthBitmap); }
public static System.Drawing.Image ToImage(List <Vector3> listOfPoints) { ushort[] myDepthFrame = FromVector3List(listOfPoints); byte[] pixels = ImageExtensions.ConvertUshortToByte(myDepthFrame); System.Drawing.Image depthImage = BitmapExtensions.FromByteArray_Gray(pixels, DepthMetaData.XDepthMaxKinect, DepthMetaData.YDepthMaxKinect); return(depthImage); }
public DepthMetaData(DepthFrame myframeDepth, bool createBitmap) { this.frameDepth = myframeDepth; this.FrameData = AssignDepthFrameData(myframeDepth); if (createBitmap) { this.pixels = ImageExtensions.ConvertUshortToByte(this.FrameData); //depthBitmap = WriteableBitmapUtils.FromByteArray_ToGray(pixels, DepthMetaData.XDepthMaxKinect, DepthMetaData.YDepthMaxKinect); } }
public IRMetaData(InfraredFrame myframeIR, bool createBitmap) { this.frameInfrared = myframeIR; this.FrameData = AssignIRFrameData(myframeIR); if (createBitmap) { this.pixels = ImageExtensions.ConvertUshortToByte(this.FrameData); irBitmap = WriteableBitmapUtils.FromByteArray_ToGray(pixels, MetaDataBase.XDepthMaxKinect, MetaDataBase.YDepthMaxKinect); } }
public System.Drawing.Bitmap UpdateDepthImage(System.Drawing.Bitmap bm) { this.pixels = ImageExtensions.ConvertUshortToByte(this.FrameData); bm = bm.Update_Gray(pixels); return(bm); }