What is the different between mono12p and mono12packed pixel format, and how do I unpack it
AnsweredMy cameras allow to select pixel format in mono12p or mono12packed. It is not clear to me the difference between individual pixel format. I will also require insights on how to unpack this pixel or directly save it as mono12p format.
-
Official comment
Both Mono12p and Mono12packed are 12-bit packed pixels format, but they have different packing format and standards. Mono12p is based on USB3 vision standard, while Mono12packed is based on GigE vision standard (for more details, see http://softwareservices.flir.com/BFS-U3-50S5/latest/Model/public/ImageFormatControl.html?)
Our camera support different packed pixel formats include but not limited to Mono12p, Mono10p, BayerRG12packed, BayerBG10p, etc. Supported pixel formats depend on camera model and firmware version flashed on the camera. More information about the arrangement of packed pixels can be found in camera technical reference.
With spinnaker API, user could unpack to 16-bit without affecting the actual resolution. Here is example code snippet to unpack using spinnaker API in cplusplus:
image_converted = processor.Convert(image_result_in_12bit_packed, PySpin.PixelFormat_Mono16)It is also possible to save raw image as captured in packed pixel format using spinnaker API as follows:
image_result_in_12bit_packed->Save(filename,ImageFileFormat::SPINNAKER_IMAGE_FILE_FORMAT_RAW)
Please sign in to leave a comment.
Comments
1 comment