I am using OpenNI 2 as PrimeSense API and trying to capture IR stream (which is in 16 bit grayscale format), and finally want it to display in PictureBox on the WinForm. (I am using c# .NET)
I am stuck on how to convert 16 bit image format to Bitmap object in C#.
VideoFrameRef ir_frame = ir.readFrame();
---->> This gives 16 bit image in VideoFrameRef
type
& want to convert ir_frame
to .net's Bitmap object to show in PictureBox.
- How this conversion can be done ?
- How OpenCV/ equivalent library can be used here ?
Please advice. Thanks !