跳转到内容

Gain#

相机的 Gain 功能可让您增加相机输出图像的亮度。

增加增益会增大图像的所有像素值。

要自动调整增益值,请使用 Gain Auto 功能。

该功能的使用#

配置增益设置#

  1. Set the GainAuto parameter to Off.
  2. 如果可用,请设置 GainSelector 参数设置为以下值:
    • AnalogAll: Selects the analog gain control.
    • DigitalAll: Selects the digital gain control.
  3. Set the Gain parameter to the desired value.
    The minimum and maximum parameter values vary depending on the camera model, the pixel format chosen, and the Binning settings.

“原始”和绝对增益值#

部分相机机型上,必须以整数比例将增益输入为“原始”值。相机需要其内部处理机制的原始值。但是,原始值与实际增益值不同,实际增益值以分贝 (dB) 表示。

在特定于相机的 Gain Properties 表中,您可以找到一个公式,可以根据原始增益值计算绝对增益(以 dB 为单位)。

模拟和数字增益#

在将来自相机传感器的信号转换为数字值之前,将应用模拟增益。在转换之后应用数字增益,即,它基本上是数字化值的乘积。

根据您的相机型号,控制模拟和数字增益的机制可能有所不同:

  • 对于部分相机,增益控制为模拟式,并且达到一定阈值。高于阈值时,增益控制为数字式。
  • For some cameras, gain control is entirely digital or analog.
  • For some cameras, you can use the GainSelector parameter to manually switch between analog and digital gain.

附加参数#

On boA13440-17cm cameras, the BslGainTopLeft, BslGainTopRight, BslGainBottomLeft, and BslGainBottomRight parameters are available. You can use these parameters to increase the brightness individually in each of the four quadrants of the image. This can be useful to compensate for differences in the image brightness.

The brightness in each quadrant can be increased linearly by up to 5 % (digital gain).

详情#

增益属性#

显示所有相机型号

相机型号 增益控制机制 阈值 增益必须以如下形式输入 根据原始增益值计算增益的公式
a2A640-240gmSWIR 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A640-240umSWIR 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1280-80gmSWIR 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1280-125umSWIR 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-51gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-51gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-51gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-51gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-160ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-160ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-160umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-160umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-165g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A1920-165g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2440-98g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2440-98g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-23gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-23gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-23gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-23gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-75ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-75ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-75umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-75umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-105g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2448-105g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2590-22gcBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-22gcPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-22gmBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-22gmPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-60ucBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-60ucPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-60umBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2590-60umPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A2600-20gcBAS 仅数字增益 0 dB 不适用
a2A2600-20gcPRO 仅数字增益 0 dB 不适用
a2A2600-20gmBAS 仅数字增益 0 dB 不适用
a2A2600-20gmPRO 仅数字增益 0 dB 不适用
a2A2600-64ucBAS 仅数字增益 0 dB 不适用
a2A2600-64ucPRO 仅数字增益 0 dB 不适用
a2A2600-64umBAS 仅数字增益 0 dB 不适用
a2A2600-64umPRO 仅数字增益 0 dB 不适用
a2A2840-14gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-14gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-14gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-14gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-48ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-48ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-48umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-48umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-67g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A2840-67g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A3840-13gcBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-13gcPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-13gmBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-13gmPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-45ucBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-45ucPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-45umBAS 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A3840-45umPRO 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
a2A4096-9gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-9gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-9gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-9gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-30ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-30ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-30umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-30umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-44g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4096-44g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4200-12gcBAS 仅数字增益 0 dB 不适用
a2A4200-12gcPRO 仅数字增益 0 dB 不适用
a2A4200-12gmBAS 仅数字增益 0 dB 不适用
a2A4200-12gmPRO 仅数字增益 0 dB 不适用
a2A4200-40ucBAS 仅数字增益 0 dB 不适用
a2A4200-40ucPRO 仅数字增益 0 dB 不适用
a2A4200-40umBAS 仅数字增益 0 dB 不适用
a2A4200-40umPRO 仅数字增益 0 dB 不适用
a2A4504-5gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-5gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-5gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-5gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-18ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-18ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-18umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-18umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-27g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4504-27g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A4508-6gcBAS 仅数字增益 0 dB 不适用
a2A4508-6gcPRO 仅数字增益 0 dB 不适用
a2A4508-6gmBAS 仅数字增益 0 dB 不适用
a2A4508-6gmPRO 仅数字增益 0 dB 不适用
a2A4508-20ucBAS 仅数字增益 0 dB 不适用
a2A4508-20ucPRO 仅数字增益 0 dB 不适用
a2A4508-20umBAS 仅数字增益 0 dB 不适用
a2A4508-20umPRO 仅数字增益 0 dB 不适用
a2A5320-7gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-7gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-7gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-7gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-23ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-23ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-23umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-23umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-34g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5320-34g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-4gcBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-4gcPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-4gmBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-4gmPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-15ucBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-15ucPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-15umBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-15umPRO 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-22g5cBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
a2A5328-22g5mBAS 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA640-121gm 高于阈值时,模拟增益自动切换为数字增益 不适用 原始 Gain = 0.0359 * Gain原始(Sony ICX618 替换件ace)
acA640-300gc 仅限数字控制 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA640-300gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA640-750uc 仅数字增益 - dB 不适用
acA640-750um 仅数字增益 - dB 不适用
acA720-290gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA720-290gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA720-520uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA720-520um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA800-200gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA800-200gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA800-510uc 仅数字增益 - dB 不适用
acA800-510um 仅数字增益 - dB 不适用
acA1280-60gc 可通过 GainSelector 参数设置增益控制。 - 原始 Analog Gain: - Gain is 0 when GainRaw is set to 0
- Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1280-60gm 可通过 GainSelector 参数设置增益控制。 - 原始 Analog Gain: - Gain is 0 when GainRaw is set to 0
- Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1300-60gc 可通过 GainSelector 参数设置增益控制。 - 原始 Analog Gain: - Gain is 0 when GainRaw is set to 0
- Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1300-60gm 可通过 GainSelector 参数设置增益控制。 - 原始 Analog Gain: - Gain is 0 when GainRaw is set to 0
- Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1300-60gmNIR 可通过 GainSelector 参数设置增益控制。 - 原始 Analog Gain: - Gain is 0 when GainRaw is set to 0
- Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1300-75gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA1300-75gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA1300-200uc 仅数字增益 - dB 不适用
acA1300-200um 仅数字增益 - dB 不适用
acA1440-73gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA1440-73gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA1440-220uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1440-220um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1600-20gc 高于阈值时,模拟增益自动切换为数字增益 511 原始 增益 = 0.0359 * GainRaw
acA1600-20uc 高于阈值时,模拟增益自动切换为数字增益 10.1 dB 不适用
acA1600-60gc 可通过 GainSelector 参数设置增益控制 - 原始 Analog Gain: - Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1600-60gm 可通过 GainSelector 参数设置增益控制 - 原始 Analog Gain: - Gain is 3.5 when GainRaw is set to 1
- Gain is 6 when GainRaw is set to 2
- Gain is 9.5 when GainRaw is set to 3
Digital Gain: - Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw < 32
- Gain = 20 * log10 (1 + ((GainRaw * 2) / 64)) for all GainRaw ≥ 32
acA1920-25gc 高于阈值时,模拟增益自动切换为数字增益 19 原始 请参见此图以获取近似值。
acA1920-25gm 高于阈值时,模拟增益自动切换为数字增益 19 原始 请参见此图以获取近似值。
acA1920-25uc 仅数字增益 - dB 不适用
acA1920-25um 仅数字增益 - dB 不适用
acA1920-40gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA1920-40gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA1920-40uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-40ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-40um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-40umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-48gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA1920-48gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA1920-50gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA1920-50gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA1920-150uc 仅数字增益 - dB 不适用
acA1920-150um 仅数字增益 - dB 不适用
acA1920-155uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-155ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-155um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA1920-155umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2000-50gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA2000-50gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA2000-165uc 仅数字增益 - dB 不适用
acA2000-165um 仅数字增益 - dB 不适用
acA2040-25gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA2040-25gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA2040-25gmNIR 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA2040-35gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA2040-35gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA2040-55uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2040-55um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2040-90uc 仅数字增益 - dB 不适用
acA2040-90um 仅数字增益 - dB 不适用
acA2040-90umNIR 仅数字增益 - dB 不适用
acA2040-120uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2040-120um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-20gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA2440-20gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA2440-35uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-35ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-35um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-35umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-75uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-75ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-75um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2440-75umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA2500-14gc 高于阈值时,模拟增益自动切换为数字增益 19 原始 请参见此图以获取近似值。
acA2500-14gm 高于阈值时,模拟增益自动切换为数字增益 19 原始 请参见此图以获取近似值。
acA2500-14uc 仅数字增益 - dB 不适用
acA2500-14um 仅数字增益 - dB 不适用
acA2500-20gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA2500-20gcMED 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA2500-20gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA2500-20gmMED 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 136)
acA2500-60uc 仅数字增益 - dB 不适用
acA2500-60um 仅数字增益 - dB 不适用
acA3088-16gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA3088-16gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA3088-57uc 仅模拟增益 - dB 不适用
acA3088-57ucMED 仅模拟增益 - dB 不适用
acA3088-57um 仅模拟增益 - dB 不适用
acA3088-57umMED 仅模拟增益 - dB 不适用
acA3800-10gc 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA3800-10gm 仅数字增益 - 原始 增益 = 20 * log10 (GainRaw / 32)
acA3800-14uc 仅数字增益 - dB 不适用
acA3800-14um 仅数字增益 - dB 不适用
acA4024-8gc 仅模拟增益 - 原始 Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA4024-8gm 仅模拟增益 - 原始 Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA4024-29uc 仅模拟增益 - dB 不适用
acA4024-29um 仅模拟增益 - dB 不适用
acA4096-11gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA4096-11gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA4096-30uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-30ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-30um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-30umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-40uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-40ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-40um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4096-40umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-8gc 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA4112-8gm 高于阈值时,模拟增益自动切换为数字增益 240 原始 增益 = 0.1 * GainRaw
acA4112-20uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-20ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-20um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-20umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-30uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-30ucMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-30um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA4112-30umMED 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
acA5472-5gc 仅模拟增益 - 原始 Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA5472-5gm 仅模拟增益 - 原始 Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA5472-17uc 仅模拟增益 - dB 不适用
acA5472-17ucMED 仅模拟增益 - dB 不适用
acA5472-17um 仅模拟增益 - dB 不适用
acA5472-17umMED 仅模拟增益 - dB 不适用
boA1936-400cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA1936-400cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA2448-250cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
bo2448-250cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA2832-190cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
bo2832-190cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4096-93cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4096-93cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4096-180cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
bo4096-180cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4112-68cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4112-68cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4500-45cc 模拟和数字增益的组合 - dB 不适用
boA4500-45cm 模拟和数字增益的组合 - dB 不适用
boA4504-100cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA4504-100cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA5120-150cc 仅数字增益 - dB 不适用
boA5120-150cm 仅数字增益 - dB 不适用
boA5120-230cc 仅数字增益 - dB 不适用
boA5120-230cm 仅数字增益 - dB 不适用
boA5320-150cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA5320-150cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA5328-100cc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA5328-100cm 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
boA6500-36cc 模拟和数字增益的组合 - dB 不适用
boA6500-36cm 模拟和数字增益的组合 - dB 不适用
boA8100-16cc 模拟和数字增益的组合 - dB 不适用
boA8100-16cm 模拟和数字增益的组合 - dB 不适用
boA9344-30cc 仅数字增益 - dB 不适用
boA9344-30cm 仅数字增益 - dB 不适用
boA9344-70cc 仅数字增益 - dB 不适用
boA9344-70cm 仅数字增益 - dB 不适用
boA13440-17cm 仅模拟增益 - dB 不适用
daA720-520uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA720-520um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA1280-54uc 仅数字增益 - dB 不适用
daA1280-54um 仅数字增益 - dB 不适用
daA1440-220uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA1440-220um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA1600-60uc 仅数字增益 - dB 不适用
daA1600-60um 仅数字增益 - dB 不适用
daA1920-15um 仅数字增益 - dB 不适用
daA1920-30uc 仅数字增益 - dB 不适用
daA1920-30um 仅数字增益 - dB 不适用
daA1920-160uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA1920-160um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA2448-70uc 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA2448-70um 高于阈值时,模拟增益自动切换为数字增益 24 dB 不适用
daA2500-14uc 仅数字增益 - dB 不适用
daA2500-14um 仅数字增益 - dB 不适用
daA3840-45uc 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
daA3840-45um 高于阈值时,模拟增益自动切换为数字增益 30 dB 不适用
puA1280-54uc 仅数字增益 - dB 不适用
puA1280-54um 仅数字增益 - dB 不适用
puA1600-60uc 仅数字增益 - dB 不适用
puA1600-60um 仅数字增益 - dB 不适用
puA1920-30uc 仅数字增益 - dB 不适用
puA1920-30um 仅数字增益 - dB 不适用
puA2500-14uc 仅数字增益 - dB 不适用
puA2500-14um 仅数字增益 - dB 不适用

增益值#

信息

在部分相机机型上,可以使用 Remove Parameter Limits 功能提高增益参数的上限。

显示所有相机型号

相机型号 最小增益设置 启用垂直像素合并的最小增益设置 最大增益设置(8 位像素格式) 最大增益设置(10 位像素格式) 最大增益设置(12 位像素格式)
a2A640-240gmSWIR 0 0 42 42 42
a2A640-240umSWIR 0 0 42 42 42
a2A1280-80gmSWIR 0 0 42 42 42
a2A1280-125umSWIR 0 0 42 42 42
a2A1920-51gcBAS 0 - 48 48 48
a2A1920-51gcPRO 0 - 48 48 48
a2A1920-51gmBAS 0 0 48 48 48
a2A1920-51gmPRO 0 0 48 48 48
a2A1920-160ucBAS 0 - 48 48 48
a2A1920-160ucPRO 0 - 48 48 48
a2A1920-160umBAS 0 0 48 48 48
a2A1920-160umPRO 0 0 48 48 48
a2A1920-165g5cBAS 0 - 48 48 48
a2A1920-165g5mBAS 0 0 48 48 48
a2A2440-98g5cBAS 0 - 48 48 48
a2A2440-98g5mBAS 0 0 48 48 48
a2A2448-23gcBAS 0 - - 48 48
a2A2448-23gcPRO 0 - - 48 48
a2A2448-23gmBAS 0 0 48 - 48
a2A2448-23gmPRO 0 0 48 - 48
a2A2448-75ucBAS 0 - - 48 48
a2A2448-75ucPRO 0 - - 48 48
a2A2448-75umBAS 0 0 48 - 48
a2A2448-75umPRO 0 0 48 - 48
a2A2448-105g5cBAS 0 - - 48 48
a2A2448-105g5mBAS 0 0 48 - 48
a2A2590-22gcBAS 0 - 48 48 48
a2A2590-22gcPRO 0 - 48 48 48
a2A2590-22gmBAS 0 0 48 48 48
a2A2590-22gmPRO 0 0 48 48 48
a2A2590-60ucBAS 0 - 48 48 48
a2A2590-60ucPRO 0 - 48 48 48
a2A2590-60umBAS 0 0 48 48 48
a2A2590-60umPRO 0 0 48 48 48
a2A2600-20gcBAS 0 - 36 36 36
a2A2600-20gcPRO 0 - 36 36 36
a2A2600-20gmBAS 0 0 36 36 36
a2A2600-20gmPRO 0 0 36 36 36
a2A2600-64ucBAS 0 - 36 36 36
a2A2600-64ucPRO 0 - 36 36 36
a2A2600-64umBAS 0 0 36 36 36
a2A2600-64umPRO 0 0 36 36 36
a2A2840-14gcBAS 0 - - 48 48
a2A2840-14gcPRO 0 - - 48 48
a2A2840-14gmBAS 0 0 48 - 48
a2A2840-14gmPRO 0 0 48 - 48
a2A2840-48ucBAS 0 - - 48 48
a2A2840-48ucPRO 0 - - 48 48
a2A2840-48umBAS 0 0 48 - 48
a2A2840-48umPRO 0 0 48 - 48
a2A2840-67g5cBAS 0 - - 48 48
a2A2840-67g5mBAS 0 0 48 - 48
a2A3840-13gcBAS 0 - 48 48 48
a2A3840-13gcPRO 0 - 48 48 48
a2A3840-13gmBAS 0 0 48 48 48
a2A3840-13gmPRO 0 0 48 48 48
a2A3840-45ucBAS 0 - 48 48 48
a2A3840-45ucPRO 0 - 48 48 48
a2A3840-45umBAS 0 0 48 48 48
a2A3840-45umPRO 0 0 48 48 48
a2A4096-9gcBAS 0 - - 48 48
a2A4096-9gcPRO 0 - - 48 48
a2A4096-9gmBAS 0 0 48 - 48
a2A4096-9gmPRO 0 0 48 - 48
a2A4096-30ucBAS 0 - - 48 48
a2A4096-30ucPRO 0 - - 48 48
a2A4096-30umBAS 0 0 48 - 48
a2A4096-30umPRO 0 0 48 - 48
a2A4096-44g5cBAS 0 - - 48 48
a2A4096-44g5mBAS 0 0 48 - 48
a2A4200-12gcBAS 0 - 36 36 36
a2A4200-12gcPRO 0 - 36 36 36
a2A4200-12gmBAS 0 0 36 36 36
a2A4200-12gmPRO 0 0 36 36 36
a2A4200-40ucBAS 0 - 36 36 36
a2A4200-40ucPRO 0 - 36 36 36
a2A4200-40umBAS 0 0 36 36 36
a2A4200-40umPRO 0 0 36 36 36
a2A4504-5gcBAS 0 - - 48 48
a2A4504-5gcPRO 0 - - 48 48
a2A4504-5gmBAS 0 0 48 - 48
a2A4504-5gmPRO 0 0 48 - 48
a2A4504-18ucBAS 0 - - 48 48
a2A4504-18ucPRO 0 - - 48 48
a2A4504-18umBAS 0 0 48 - 48
a2A4504-18umPRO 0 0 48 - 48
a2A4504-27g5cBAS 0 - - 48 48
a2A4504-27g5mBAS 0 0 48 - 48
a2A4508-6gcBAS 0 - 36 36 36
a2A4508-6gcPRO 0 - 36 36 36
a2A4508-6gmBAS 0 0 36 36 36
a2A4508-6gmPRO 0 0 36 36 36
a2A4508-20ucBAS 0 - 36 36 36
a2A4508-20ucPRO 0 - 36 36 36
a2A4508-20umBAS 0 0 36 36 36
a2A4508-20umPRO 0 0 36 36 36
a2A5320-7gcBAS 0 - - 48 48
a2A5320-7gcPRO 0 - - 48 48
a2A5320-7gmBAS 0 0 48 - 48
a2A5320-7gmPRO 0 0 48 - 48
a2A5320-23ucBAS 0 - - 48 48
a2A5320-23ucPRO 0 - - 48 48
a2A5320-23umBAS 0 0 48 - 48
a2A5320-23umPRO 0 0 48 - 48
a2A5320-34g5cBAS 0 - - 48 48
a2A5320-34g5mBAS 0 0 48 - 48
a2A5328-4gcBAS 0 - - 48 48
a2A5328-4gcPRO 0 - - 48 48
a2A5328-4gmBAS 0 0 48 - 48
a2A5328-4gmPRO 0 0 48 - 48
a2A5328-15ucBAS 0 - - 48 48
a2A5328-15ucPRO 0 - - 48 48
a2A5328-15umBAS 0 0 48 - 48
a2A5328-15umPRO 0 0 48 - 48
a2A5328-22g5cBAS 0 - - 48 48
a2A5328-22g5mBAS 0 0 48 - 48
acA640-121gm 0 0 1023 - 600
acA640-300gc 136 - 542 542 -
acA640-300gm 136 136 542 542 -
acA640-750uc 0 - 12 12 -
acA640-750um 0 0 12 12 -
acA720-290gc 0 - 360 - 240
acA720-290gm 0 0 360 - 240
acA720-520uc 0 - 36 - 24
acA720-520um 0 0 36 - 24
acA800-200gc 136 - 542 542 -
acA800-200gm 136 136 542 542 -
acA800-510uc 0 - 12 12 -
acA800-510um 0 0 12 12 -
acA1280-60gc 0 - - - 3/95a
acA1280-60gm 0 0 - - 3/95a
acA1300-60gc 0 - - - 3/95a
acA1300-60gm 0 0 - - 3/95a
acA1300-60gmNIR 0 0 - - 3/95a
acA1300-75gc 136 - 542 542 -
acA1300-75gm 136 136 542 542 -
acA1300-200uc 0 - 12 12 -
acA1300-200um 0 0 12 12 -
acA1440-73gc 0 - 360 - 240
acA1440-73gm 0 0 360 - 240
acA1440-220uc 0 - 36 - 24
acA1440-220um 0 0 36 - 24
acA1600-20gc 230 - 850 - 400
acA1600-20uc 0 - 22.25800 - 6.10300
acA1600-60gc 1/0a - - - 3/95a
acA1600-60gm 1/0a 1/0a - - 3/95a
acA1920-25gc 0 - 63 - 63
acA1920-25gm 0 0 63 - 63
acA1920-25uc 0 - 23.79814 - 23.79814
acA1920-25um 0 0 23.79814 - 23.79814
acA1920-40gc 0 0 360 - 240
acA1920-40gm 0 0 360 - 240
acA1920-40uc 0 - 36 - 24
acA1920-40ucMED 0 0 36 - 24
acA1920-40um 0 0 36 24
acA1920-40umMED 0 0 36 - 24
acA1920-48gc 136 - 542 542 -
acA1920-48gm 136 136 542 542 -
acA1920-50gc 0 - 360 - 240
acA1920-50gm 0 0 360 - 240
acA1920-150uc 0 - 12 12 -
acA1920-150um 0 0 12 12 -
acA1920-155uc 0 - 36 - 24
acA1920-155ucMED 0 - 36 - 24
acA1920-155um 0 0 36 - 24
acA1920-155umMED 0 0 36 - 24
acA2000-50gc 36 - 512 - 512
acA2000-50gm 36 33 512 - 512
acA2000-165uc 0 - 23.59350 - 23.59350
acA2000-165um 0 0 23.59350 - 23.59350
acA2040-25gc 36 - 512 - 512
acA2040-25gm 36 33 512 - 512
acA2040-25gmNIR 36 33 512 - 512
acA2040-35gc 0 - 360 - 240
acA2040-35gm 0 0 360 - 240
acA2040-55uc 0 - 36 - 24
acA2040-55um 0 0 36 - 24
acA2040-90uc 0 - 23.59350 - 23.59350
acA2040-90um 0 0 23.59350 - 23.59350
acA2040-90umNIR 0 0 23.59350 - 23.59350
acA2040-120uc 0 - 36 - 24
acA2040-120um 0 0 36 - 24
acA2440-20gc 0 - 360 - 240
acA2440-20gm 0 0 360 - 240
acA2440-35uc 0 - 36 - 24
acA2440-35ucMED 0 - 36 - 24
acA2440-35um 0 0 36 - 24
acA2440-35umMED 0 0 36 - 24
acA2440-75uc 0 - 36 - 24
acA2440-75ucMED 0 0 36 - 24
acA2440-75um 0 0 36 - 24
acA2440-75umMED 0 - 36 - 24
acA2500-14gc 0 - 63 - 63
acA2500-14gm 0 0 63 - 63
acA2500-14uc 0 - 23.79814 - 23.79814
acA2500-14um 0 0 23.79814 - 23.79814
acA2500-20gc 136 136 542 542 -
acA2500-20gcMED 136 - 542 542 -
acA2500-20gm 136 136 542 542 -
acA2500-20gmMED 136 136 542 542 -
acA2500-60uc 0 - 12 12 -
acA2500-60um 0 0 12 12 -
acA3088-16gc 0 - 360 - 240
acA3088-16gm 0 0 360 - 240
acA3088-57uc 0 - 36 - 24
acA3088-57ucMED 0 - 36 - 24
acA3088-57um 0 0 36 - 24
acA3088-57umMED 0 0 36 - 24
acA3800-10gc 33 - 255 - 255
acA3800-10gm 33 33 255 - 255
acA3800-14uc 0 - 16.67569 - 16.67569
acA3800-14um 0 0 16.67569 - 16.67569
acA4024-8gc 0 - 1957 - 1957
acA4024-8gm 0 0 1957 - 1957
acA4024-29uc 0 - 27 - 27
acA4024-29um 0 0 27 - 27
acA4096-11gc 0 0 36 - 24
acA4096-11gm 0 0 36 - 24
acA4096-30uc 0 - 36 - 24
acA4096-30ucMED 0 - 36 - 24
acA4096-30um 0 0 36 - 24
acA4096-30umMED 0 0 36 - 24
acA4096-40uc 0 - 36 - 24
acA4096-40ucMED 0 - 36 - 24
acA4096-40um 0 0 36 - 24
acA4096-40umMED 0 0 36 - 24
acA4112-8gc 0 0 36 - 24
acA4112-8gm 0 0 36 - 24
acA4112-20uc 0 - 36 - 24
acA4112-20ucMED 0 - 36 - 24
acA4112-20um 0 0 36 - 24
acA4112-20umMED 0 0 36 - 24
acA4112-30uc 0 - 36 - 24
acA4112-30ucMED 0 - 36 - 24
acA4112-30um 0 0 36 - 24
acA4112-30umMED 0 0 36 - 24
acA5472-5gc 0 - 1957 - 1957
acA5472-5gm 0 0 1957 - 1957
acA5472-17uc 0 - 27.04000 - 27.04000
acA5472-17ucMED 0 - 27.04000 - 27.04000
acA5472-17um 0 0 27.04000 - 27.04000
acA5472-17umMED 0 0 27.04000 - 27.04000
boA1936-400cc 0 - 48 48 48
boA1936-400cm 0 - 48 48 48
boA2448-250cc 0 - 48 48 48
bo2448-250cm 0 - 48 48 48
boA2832-190cc 0 - 48 48 48
bo2832-190cm 0 - 48 48 48
boA4096-93cc 0 - 48 - 48
boA4096-93cm 0 - 48 - 48
boA4096-180cc 0 - 48 48 48
bo4096-180cm 0 - 48 48 48
boA4112-68cc 0 - 48 - 48
boA4112-68cm 0 - 48 - 48
boA4500-45cc 0 - 18.06200 18.062 18.06200
boA4500-45cm 0 - 18.06200 18.062 18.06200
boA4504-100cc 0 - 48 48 48
boA4504-100cm 0 - 48 48 48
boA5120-150cc 0 - 24 24 -
boA5120-150cm 0 - 24 24 -
boA5120-230cc 0 - 24 24 -
boA5120-230cm 0 - 24 24 -
boA5320-150cc 0 - 48 48 48
boA5320-150cm 0 - 48 48 48
boA5328-100cc 0 - 48 48 48
boA5328-100cm 0 - 48 48 48
boA6500-36cc 0 - 18.06200 18.062 18.06200
boA6500-36cm 0 - 18.06200 18.062 18.06200
boA8100-16cc 0 - 18.06200 18.062 18.06200
boA8100-16cm 0 - 18.06200 18.062 18.06200
boA9344-30cc 0 - 24 24 -
boA9344-30cm 0 - 24 24 -
boA9344-70cc 0 - 24 24 -
boA9344-70cm 0 - 24 24 -
boA13440-17cm 0 - 36 36 36d
daA720-520uc 0 - 48 - 48
daA720-520um 0 0 48 - 48
daA1280-54uc 0 0 18 - 18
daA1280-54um 0 0 18 - 18
daA1440-220uc 0 - 48 - 48
daA1440-220um 0 0 48 - 48
daA1600-60uc 0 0 24 - 24
daA1600-60um 0 0 24 - 24
daA1920-15um 0 0 24 - 24
daA1920-30uc 0 0 24 - 24
daA1920-30um 0 0 24 - 24
daA1920-160uc 0 - 48 - 48
daA1920-160um 0 0 48 - 48
daA2448-70uc 0 - 48 - 48
daA2448-70um 0 0 48 - 48
daA2500-14uc 0 0 24 - 24
daA2500-14um 0 0 24 - 24
daA3840-45uc 0 - 48 - 48
daA3840-45um 0 0 48 - 48
puA1280-54uc 0 0 18 - 18
puA1280-54um 0 0 18 - 18
puA1600-60uc 0 0 24 - 24
puA1600-60um 0 0 24 - 24
puA1920-30uc 0 0 24 - 24
puA1920-30um 0 0 24 - 24
puA2500-14uc 0 0 24 - 24
puA2500-14um 0 0 24 - 24

  1. 模拟增益/数字增益。

  2. The Gain parameter is not available. Instead, use the BslAnalogGain parameter to configure gain. You can set the parameter to 0 dB or 6 dB.

  3. The Gain parameter is not available. Instead, use the BslAnalogGain parameter to configure gain. You can set the parameter to 0 dB, 6 dB, or 12 dB.

  4. Also valid when the pixel format is set to a 14-bit format.

示例代码#

ace Classic/U/L GigE 相机#
// Set the "raw" gain value to 400
// If you want to know the resulting gain in dB, use the formula given in this topic
camera.GainRaw.SetValue(400);
INodeMap& nodemap = camera.GetNodeMap();
// Set the "raw" gain value to 400
// If you want to know the resulting gain in dB, use the formula given in this topic
CIntegerParameter(nodemap, "GainRaw").SetValue(400);
// Set the "raw" gain value to 400
// If you want to know the resulting gain in dB, use the formula given in this topic
camera.Parameters[PLCamera.GainRaw].SetValue(400);
/* 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 "raw" gain value to 400 */
/* If you want to know the resulting gain in dB, use the formula given in this topic */
errRes = PylonDeviceSetIntegerFeature(hdev, "GainRaw", 400);
CHECK(errRes);
# Set the "raw" gain value to 400
# If you want to know the resulting gain in dB, use the formula given in this topic
camera.GainRaw.Value = 400
其他相机#
// Set the gain to 4.2 dB
camera.Gain.SetValue(4.2);
// Increase the gain in the top-left quadrant of the image by 3 %
// Note: Available on boA13440-17cm cameras only
camera.BslGainTopLeft.SetValue(1.03);
INodeMap& nodemap = camera.GetNodeMap();
// Set the gain to 4.2 dB
CFloatParameter(nodemap, "Gain").SetValue(4.2);
// Increase the gain in the top-left quadrant of the image by 3 %
// Note: Available on boA13440-17cm cameras only
CFloatParameter(nodemap, "BslGainTopLeft").SetValue(1.03);
// Set the gain to 4.2 dB
camera.Parameters[PLCamera.Gain].SetValue(4.2);
// Increase the gain in the top-left quadrant of the image by 3 %
// Note: Available on boA13440-17cm cameras only
camera.Parameters[PLCamera.BslGainTopLeft].SetValue(1.03);
/* 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 gain to 4.2 dB */
errRes = PylonDeviceSetFloatFeature(hdev, "Gain", 4.2);
CHECK(errRes);
/* Increase the gain in the top-left quadrant of the image by 3 % */
/* Note: Available on boA13440-17cm cameras only */
errRes = PylonDeviceSetFloatFeature(hdev, "BslGainTopLeft", 1.03);
CHECK(errRes);
# Set the gain to 4.2 dB
camera.Gain.Value = 4.2
# Increase the gain in the top-left quadrant of the image by 3 %
# Note: Available on boA13440-17cm cameras only
camera.BslGainTopLeft.Value = 1.03

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