Pixel format doesn't match output

Hi Tomes,

changing image format settings like Width,Height and PixelFormat makes it necessary to tell the driver that the image format has changed.
Otherwise the driver is interpreting the incoming data as it was during initialization of the driver.
During initialization we need to allocate the memory with a specific size and pixel format.

The simplest way is to reload the driver. But it is also the slowest as everything is reinitialized.

You can use the IImageRect Interface from CVB with its IMAGERECT_CMD_RESET command to inform the driver of a changed pixel format.

To test this you can use the C# GenICam example which automatically detects a change of Pixelformat and uses IImageRect to reset the driver.

3 Likes