I had a subscriber, basically while creating the bagfile, now the compressedDepth image is unit16 and compressed with JPEG instead of PNG, I can decompress the color image normally, the problem is with the depth and how it was formed by the wrapper, no normal flow would work:
It seams like the openni option makes the data go through an unsupported flow
You must remember that the standard depth mode uses 32bit float data, OpenNI instead uses 16 bit unsigned int data.
So you must correctly transform the data
Yes, I can not find a standard transformation for the 16-bit unsigned int data that had undergone JPEG compression, opencv ends up converting to a binary image!