c# convert 16-bit image (grayscale) to Bitmap (RGB888) object format

1.3k Views Asked by At

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.

  1. How this conversion can be done ?
  2. How OpenCV/ equivalent library can be used here ?

Please advice. Thanks !

0

There are 0 best solutions below