跳转到内容

Pixel Format#

相机的 Pixel Format 功能允许您选择相机传输的图像数据的格式。

像素格式会有所不同,具体取决于您的相机型号及其是彩色相机还是单色相机。

信息

有关像素格式的详细信息,请参见GenICam 像素格式命名约定 2.1

该功能的使用#

选择一种像素格式#

To choose a pixel format:

  1. 确保相机空闲,即未在捕获图像。
  2. 设置 PixelFormat 参数为以下值(如果可用):

确定像素格式#

要确定相机当前使用的像素格式,请读取 PixelFormat 参数的值。

可用像素格式#

信息

  • 如果您的相机型号具有 Sensor Bit Depth 功能,则可以独立于像素格式设置传感器输出数据的位深度。例如,您可以将相机配置为基于 12 位传感器数据输出 8 位图像数据(像素格式 = Mono 8,传感器位深度 = 12 位)。
  • 有关枚举值的列表,请参见相关的程序员指南。

单色格式#

如果单色相机使用某种 Mono 像素格式,则每个像素输出 8、10 或 12 位数据。

如果彩色相机使用 Mono 8 像素格式,则每个像素的值首先会转换为 YUV 颜色模型。此模型的 Y 分量表示亮度值,并且等效于将从单色图像中的一个像素得出的值。因此,从本质上讲,将彩色相机设置为 Mono 8 格式时,它将输出 8 位单色图像。此类输出有时称为“Y Mono 8”。

拜耳格式#

彩色相机配备有拜耳彩色滤光片,并可以根据以下给出的拜耳像素格式输出彩色图像。

如果彩色相机使用这些拜耳像素格式,则每个像素输出 8、10 或 12 位数据。像素数据不会以任何方式进行处理或插值。对于覆盖有红色滤光片的每个像素,您将获得 8、10 或 12 位红色数据。对于覆盖有绿色滤光片的每个像素,您将获得 8、10 或 12 位绿色数据。对于覆盖有蓝色滤光片的每个像素,您将获得 8、10 或 12 位蓝色数据。此类像素数据有时称为“原始”输出。

YUV 格式#

彩色相机还可以基于 YUV(或 YCbCr)格式的像素数据输出彩色图像。

如果彩色相机使用此格式,则采集到的图像中的每个像素值在离开传感器并通过相机时都会经历转换过程。此过程为每个像素值生成 Y、U 和 V 颜色信息。

信息

U 和 V 的值通常在 -128 到 +127 之间。由于相机使用无符号整数格式传输 U 值和 V 值,因此在从相机传输 U 值和 V 值之前,会将每个 U 值和 V 值加 128。这样,可以传输 0 到 255 之间的值。

RGB 和 BGR 格式#

当彩色相机使用 RGB 8 或 BGR 8 像素格式时,相机将为所采集帧中的每个像素输出 8 位红色数据、8 位绿色数据和 8 位蓝色数据。

像素格式因颜色数据的输出顺序(红、绿、蓝或蓝、绿、红)而异。

最大像素位深度#

最大像素位深度由相机上可用像素格式中具有最高位深度的像素格式定义。

示例:如果相机可用的像素格式为 Mono 8 和 Mono 12,则相机的最大像素位深度为 12 位。

未压缩和压缩像素格式#

当相机使用未压缩的像素格式(例如,Bayer 12)时,像素数据始终为 8 位对齐。根据需要插入填充位(零)以到达下一个 8 位边界。

示例(简化):

假设您选择了 12 位未压缩像素格式。相机每像素输出 16 位:12 位像素数据和 4 个填充位(旨在到达下一个 8 位边界)。

未压缩像素格式

相机使用压缩像素格式(例如,Bayer 12p)时,像素数据对齐。这意味着没有插入填充位,并且一个字节可以包含多个像素的数据。

示例(简化):

假设您选择了 12 位压缩像素格式。相机每个像素输出 12 位。这使得两个像素的数据总是分布在 3 个字节中。

压缩像素格式

信息

确切的数据对齐方式取决于像素格式。您可以在 GenICam 像素格式命名约定 2.1 中找到相关详细信息。

详情#

显示所有相机型号

相机型号 可用像素格式
a2A1920-51gcBAS Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A1920-51gcPRO Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A1920-51gmBAS Mono 8
Mono 12
Mono 12p
a2A1920-51gmPRO Mono 8
Mono 12
Mono 12p
a2A1920-160ucBAS Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A1920-160ucPRO Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A1920-160umBAS Mono 8
Mono 12
Mono 12p
a2A1920-160umPRO Mono 8
Mono 12
Mono 12p
a2A2590-22gcBAS Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A2590-22gcPRO Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A2590-22gmBAS Mono 8
Mono 12
Mono 12p
a2A2590-22gmPRO Mono 8
Mono 12
Mono 12p
a2A2590-60ucBAS Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A2590-60ucPRO Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A2590-60umBAS Mono 8
Mono 12
Mono 12p
a2A2590-60umPRO Mono 8
Mono 12
Mono 12p
a2A3840-13gcBAS Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A3840-13gcPRO Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A3840-13gmBAS Mono 8
Mono 12
Mono 12p
a2A3840-13gmPRO Mono 8
Mono 12
Mono 12p
a2A3840-45ucBAS Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A3840-45ucPRO Mono 8
Mono 12
Mono 12p
Bayer RG 8a
Bayer RG 12a
Bayer RG 12pa
RGB 8
BGR 8
YCbCr422_8
a2A3840-45umBAS Mono 8
Mono 12
Mono 12p
a2A3840-45umPRO Mono 8
Mono 12
Mono 12p
acA640-90gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12
YUV 4:2:2 (YUYV) Packed
acA640-90gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA640-90uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA640-90um Mono 8
Mono 12
Mono 12 Packed
acA640-120gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA640-120gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA640-120uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA640-120um Mono 8
Mono 12
Mono 12 Packed
acA640-121gm Mono 8
Mono 12
Mono 12 Packed
acA640-300gc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA640-300gm Mono 8
Mono 10
Mono 10 Packed
acA640-750uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA640-750um Mono 8
Mono 10
Mono 10 Packed
acA720-290gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA720-290gm Mono 8
Mono 12
Mono 12 Packed
acA720-520uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA720-520um Mono 8
Mono 12
Mono 12 Packed
acA780-75gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA780-75gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA800-200gc Mono 8
Bayer BG 8
Bayer BG 10
Bayer BG 10 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA800-200gm Mono 8
Mono 10
Mono 10 Packed
acA800-510uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA800-510um Mono 8
Mono 10
Mono 10 Packed
acA1280-60gc Mono 8
Bayer BG 8
Bayer BG 12b
Bayer BG 12 Packedb
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1280-60gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-22gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-22gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-30gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-30gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-30uc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
RGB 8
BGR 8
YCbCr422_8
acA1300-30um Mono 8
Mono 12
Mono 12 Packed
acA1300-60gc Mono 8
Bayer RG 8
Bayer RG 12b
Bayer RG 12 Packedb
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-60gm Mono 8
Mono 12
Mono 12 Packed
acA1300-60gmNIR Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-75gc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1300-75gm Mono 8
Mono 10
Mono 10 Packed
acA1300-200uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1300-200um Mono 8
Mono 10
Mono 10 Packed
acA1440-73gc Mono 8
Bayer RG 8a
Bayer RG 12]a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1440-73gm Mono 8
Mono 12
Mono 12 Packed
acA1440-220uc Mono 8
Bayer BG 8a
Bayer BG 10a
Bayer BG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1440-220um Mono 8
Mono 12
Mono 12 Packed
acA1600-20gc Mono 8
Bayer RG 8
Bayer RG 12
Bayer RG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1600-20gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUVYV) Packed
acA1600-20uc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
RGB 8
BGR 8
YCbCr422_8
acA1600-20um Mono 8
Mono 12
Mono 12 Packed
acA1600-60gc Mono 8
Bayer RG 8
Bayer RG 12b
Bayer RG 12 Packedb
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1600-60gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1920-25gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1920-25gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1920-25uc Mono 8
Bayer GB 8
Bayer GB 12
Bayer GB 12 Packed
YCbCr422_8
acA1920-25um Mono 8
Mono 12
Mono 12 Packed
acA1920-40gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1920-40gm Mono 8
Mono 12
Mono 12 Packed
acA1920-40uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1920-40ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1920-40um Mono 8
Mono 12
Mono 12 Packed
acA1920-40umMED Mono 8
Mono 12
Mono 12 Packed
acA1920-48gc Mono 8
Bayer RG 8a
Bayer RG 10a
Bayer RG 10 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1920-48gm Mono 8
Mono 10
Mono 10 Packed
acA1920-50gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA1920-50gm Mono 8
Mono 12
Mono 12 Packed
acA1920-150uc Mono 8
Bayer RG 8a
Bayer RG 10a
Bayer RG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1920-150um Mono 8
Mono 10
Mono 10 Packed
acA1920-155uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1920-155ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA1920-155um Mono 8
Mono 12
Mono 12 Packed
acA1920-155umMED Mono 8
Mono 12
Mono 12 Packed
acA2000-50gc Mono 8
Bayer GR 8
Bayer GR 12
Bayer GR 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2000-50gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2000-50gmNIR Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2000-165uc Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
acA2000-165um Mono 8
Mono 12
Mono 12 Packed
acA2000-165umNIR Mono 8
Mono 12
Mono 12 Packed
acA2040-25gc Mono 8
Bayer GR 8
Bayer GR 12
Bayer GR 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2040-25gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2040-25gmNIR Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2040-35gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2040-35gm Mono 8
Mono 12
Mono 12 Packed
acA2040-55uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2040-55um Mono 8
Mono 12
Mono 12 Packed
acA2040-90uc Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
acA2040-90um Mono 8
Mono 12
Mono 12 Packed
acA2040-90umNIR Mono 8
Mono 12
Mono 12 Packed
acA2040-120uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2040-120um Mono 8
Mono 12
Mono 12 Packed
acA2440-20gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2440-20gm Mono 8
Mono 12
Mono 12 Packed
acA2440-35uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2440-35ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2440-35um Mono 8
Mono 12
Mono 12 Packed
acA2440-35umMED Mono 8
Mono 12
Mono 12 Packed
acA2440-75uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2440-75ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2440-75um Mono 8
Mono 12
Mono 12 Packed
acA2440-75umMED Mono 8
Mono 12
Mono 12 Packed
acA2500-14gc Mono 8
Bayer GB 8
Bayer GB 12
Bayer GB 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2500-14gm Mono 8
Mono 12
Mono 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2500-14uc Mono 8
Bayer GB 8
Bayer GB 12
Bayer GB 12 Packed
YCbCr422_8
acA2500-14um Mono 8
Mono 12
Mono 12 Packed
acA2500-20gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2500-20gcMED Mono 8
Bayer RG 8a
Bayer RG 10a
Bayer RG 10 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA2500-20gm Mono 8
Mono 10
Mono 10 Packed
acA2500-20gmMED Mono 8
Mono 10
Mono 10 Packed
acA2500-60uc Mono 8
Bayer RG 8a
Bayer RG 10a
Bayer RG 10 Packeda
RGB 8
BGR 8
YCbCr422_8
acA2500-60um Mono 8
Mono 10
Mono 10 Packed
acA3088-16gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA3088-16gm Mono 8
Mono 12
Mono 12 Packed
acA3088-57uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA3088-57um Mono 8
Mono 12
Mono 12 Packed
acA3800-10gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA3800-10gm Mono 8
Mono 12
Mono 12 Packed
acA3800-14uc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YCbCr422_8
acA3800-14um Mono 8
Mono 12
Mono 12 Packed
acA4024-8gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA4024-8gm Mono 8
Mono 12
Mono 12 Packed
acA4024-29uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4024-29um Mono 8
Mono 12
Mono 12 Packed
acA4096-11gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA4096-11gm Mono 8
Mono 12
Mono 12 Packed
acA4096-30uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4096-30ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4096-30um Mono 8
Mono 12
Mono 12 Packed
acA4096-30umMED Mono 8
Mono 12
Mono 12 Packed
acA4096-40uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4096-40ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4096-40um Mono 8
Mono 12
Mono 12 Packed
acA4096-40umMED Mono 8
Mono 12
Mono 12 Packed
acA4112-8gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA4112-8gm Mono8
Mono 12
Mono 12 Packed
acA4112-20uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4112-20ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4112-20um Mono 8
Mono 12
Mono 12 Packed
acA4112-20umMED Mono 8
Mono 12
Mono 12 Packed
acA4112-30uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4112-30ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA4112-30um Mono 8
Mono 12
Mono 12 Packed
acA4112-30umMED Mono 8
Mono 12
Mono 12 Packed
acA4600-7gc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA4600-10uc Mono 8
Bayer BG 8
Bayer BG 12
Bayer BG 12 Packed
YCbCr422_8
acA5472-5gc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
YUV 4:2:2 Packed
YUV 4:2:2 (YUYV) Packed
acA5472-5gm Mono 8
Mono 12
Mono 12 Packed
acA5472-17uc Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA5472-17ucMED Mono 8
Bayer RG 8a
Bayer RG 12a
Bayer RG 12 Packeda
RGB 8
BGR 8
YCbCr422_8
acA5472-17um Mono 8
Mono 12
Mono 12 Packed
boA4096-93cc Mono 8
Bayer RG 8a
Bayer RG 12a
RGB 8
YUV422
boA4096-93cm Mono 8
Mono 12
boA4112-68cc Mono 8
Bayer RG 8a
Bayer RG 12a
RGB 8
YUV422
boA4112-68cm Mono 8
Mono 12
daA1280-54lc Bayer 8
Bayer 12
RGB 8c
YCbCr422_8c
daA1280-54lm Mono 8
Mono 12
daA1280-54uc Bayer 8
Bayer 12
RGB 8c
YCbCr422_8c
daA1280-54um Mono 8
Mono 12
daA1600-60lc Bayer 8a
Bayer 12ab
RGB 8c
YCbCr422_8c
daA1600-60lm Mono 8
Mono 12b
daA1600-60uc Bayer 8a
Bayer 12ab
RGB 8c
YCbCr422_8c
daA1600-60um Mono 8
Mono 12b
daA1920-15um Mono 8
Mono 12
daA1920-30uc Bayer 8a
Bayer 12a
RGB 8c
YCbCr422_8c
daA1920-30um Mono 8
Mono 12
daA2500-14lc Bayer 8a
Bayer 12ab
RGB 8c
YCbCr422_8c
daA2500-14lm Mono 8
Mono 12
daA2500-14uc Bayer 8a
Bayer 12a
RGB 8c
YCbCr422_8c
daA2500-14um Mono 8
Mono 12
daA2500-60mc YCbCr420_8
daA2500-60mci YCbCr420_8
daA4200-30mci YCbCr420_8
puA1280-54uc Bayer 8
Bayer 12
RGB 8c
YCbCr422_8c
puA1280-54um Mono 8
Mono 12
puA1600-60uc Bayer 8a
Bayer 12ab
RGB 8c
YCbCr422_8c
puA1600-60um Mono 8
Mono 12b
puA1920-30uc Bayer 8a
Bayer 12a
RGB 8c
YCbCr422_8c
puA1920-30um Mono 8
Mono 12
puA2500-14uc Bayer 8a
Bayer 12a
RGB 8c
YCbCr422_8c
puA2500-14um Mono 8
Mono 12

  1. 如果启用了 Reverse X and Reverse Y 功能,实际的拜耳彩色滤波器组会发生变化。

  2. 基于 10 位传感器数据的 12 位图像数据。

  3. 默认情况下,在 sRGB 色彩空间中采集 YCbCr422 和 RGB 8 图像。您可以使用 BslColorSpaceMode 参数将色彩空间更改为 RGB。

示例代码#

// Set the pixel format to Mono 8
camera.PixelFormat.SetValue(PixelFormat_Mono8);
INodeMap& nodemap = camera.GetNodeMap();
// Set the pixel format to Mono 8
CEnumerationPtr(nodemap.GetNode("PixelFormat"))->FromString("Mono8");
INodeMap& nodemap = camera.GetNodeMap();
// Set the pixel format to Mono 8
CEnumParameter(nodemap, "PixelFormat").SetValue("Mono8");
// Set the pixel format to Mono 8
camera.Parameters[PLCamera.PixelFormat].SetValue(PLCamera.PixelFormat.Mono8);
// Set the pixel format to Mono 8
Pylon.DeviceFeatureFromString(hdev, "PixelFormat", "Mono8");
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Set the pixel format to Mono 8 */
errRes = PylonDeviceFeatureFromString(hdev, "PixelFormat", "Mono8");
CHECK(errRes);

您也可以使用 pylon Viewer 轻松设置参数。