How to convert raw buffer to raw to rgb manually?

Can you have a look at this post? Here a user converts the raw buffer to RGB10p32 which is the RGB format with 10 bit red, green and blue pixel components each, packed into 32 bit:
https://forum.commonvisionblox.com/t/acquiring-10-12-bit-rgb-images-from-a-jai-ap-3200t-pge/1430/8?u=usernv

You need to open your camera and access the node map for example with the GenICam Browser. There is an entry that states the color format used. Cross reference the format you want to stream with the GenICam pfnc format table linked above and adopt the values accordingly in the code from the linked post. That would be it. Otherwise you can either completely write the buffer manipulation from scratch or google for popular conversion methods for your specific raw buffer pfnc format. There are a lot of formats available in the list, but widely used are only 10 or so, so don’t worry :slight_smile:

1 Like