Industrial Cameras FAQ/It fails to write PixelFormat ...

It fails to write PixelFormat value written in the camera instruction manual to a camera.(No.1520)

User application may fail to write Bayer type PixelFormat value (PXL_FMT_BayerGR8, PXL_FMT_BayerRG8, PXL_FMT_BayerGB8, PXL_FMT_BayerBG8, and so on) shown in instruction manual of a camera to PixelFormat register of the camera when ReverseX or ReverseY feature is enabled.

(On setting a PixelFormat value to a camera using GenICam functions or register direct access function, user application should get PixelCoding and PixelSize value corresponding to the PixelFormat value and write them to PixelCoding register and PixelSize register because the camera does not have writable PixelFormat register. When user application uses SetCamPixelFormat() function for setting PixelFormat value, application can set PixelFormat specifying PixelFormat value even if the camera is BU/DU series.)

There are 4 kinds of filter layout, GR, RG, GB, and BG layout, in bayer color filter. The following layout is BG layout.

BGBGBGBGBGBG
GRGRGRGRGRGR
BGBGBGBGBGBG
GRGRGRGRGRGR
BGBGBGBGBGBG
GRGRGRGRGRGR

When Bayer type PixelFormat is selected, camera will output each pixel value as is.
Camera instruction manual shows PixelFormat value when ReverseX and ReverseY feature is disabled.

When ReverseX or ReverseY feature is enabled, the order of pixel values output from the camera is changed, which means that type of Bayer type PixelFormat is changed. When user application writes Bayer type PixelFormat value other than PixelFormat decided by image sensor type, ReverseX setting, and ReverseY setting, the camera will return error status.

Refer to attached file about getting available PixelFormat value.

back

Was this FAQ helpful?

Please let us know your opinion about the FAQ so that we will be able to improve our FAQ. (Within 800 characters)
Note: If you need a reply to your inquiry (e.g. inquiry about products), please use the inquiries form provided on Contact Us page. Please note that we cannot answer to your questions filled in below.

Please click below to change the cookie settings used on our website.