IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
Debayering in the camera
Debayering in the software
Image conversion in the camera
To get already converted color images from the camera, the source pixel format must be set to an appropriate color format. For example, if an RGB format with 8 bits per color channel is selected, then this is 24 bits of data per pixel (= 3 bytes). The required bandwidth on the transfer line is thus 3 times as high as for the transfer of a Bayer format.
Querying supported source pixel formats in the camera
The conversion of Bayer images can be done in IDS peak. For this, you use the functions "peak_IPL_...". (IPL: Image Processing Library). In the following example, Bayer images are received in the image acquisition loop and then converted to RBG format (see Receiving images). The"peak_IPL_ProcessFrame()" function creates a new IDS peak image with the desired target pixel format. Afterwards, the buffer can be returned to the buffer pool.
Note that only with the "peak_IPL_ProcessFrame()" function a copy of the buffer is created. Before this, the buffer must not be returned to the buffer pool, otherwise the data may be overwritten!
Creating an image with target pixel format (RGB8) directly from buffer