Skip to content

Gain#

The Gain camera feature allows you to increase the brightness of the images output by the camera.

Increasing the gain increases all pixel values of the image.

To adjust the gain value automatically, use the Gain Auto feature.

Using the Feature#

Configuring Gain Settings#

  1. Set the GainAuto parameter to Off.
  2. If available, set the GainSelector parameter to one of the following values:
    • 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.

"Raw" and Absolute Gain Values#

On some camera models, the gain must be entered as a "raw" value on an integer scale. The camera needs the raw value for its internal processing mechanism. The raw value, however, isn't the same as the actual gain value, which is expressed in decibels (dB).

In the camera-specific Gain Properties table, you can find a formula to calculate the absolute gain (in dB) from the raw gain value.

Analog and Digital Gain#

Analog gain is applied before the signal from the camera sensor is converted into digital values. Digital gain is applied after the conversion, i.e., it is basically a multiplication of the digitized values.

Depending on your camera model, the mechanisms to control analog and digital gain can vary:

  • For some cameras, gain control is analog up to and including a certain threshold. Above the threshold, gain control is digital.
  • 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.

Additional Parameters#

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).

Specifics#

Gain Properties#

Show all camera models

Camera Model Gain Control Mechanism Threshold Gain Must be Entered as Formula to Calculate Gain from Raw Gain Values
a2A640-240gmSWIR Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A640-240umSWIR Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1280-80gmSWIR Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1280-125umSWIR Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-51gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-51gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-51gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-51gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-160ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-160ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-160umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-160umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-165g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A1920-165g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2440-98g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2440-98g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-23gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-23gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-23gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-23gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-75ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-75ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-75umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-75umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-105g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2448-105g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2590-22gcBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-22gcPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-22gmBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-22gmPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-60ucBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-60ucPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-60umBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2590-60umPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A2600-20gcBAS Digital gain only 0 dB N/A
a2A2600-20gcPRO Digital gain only 0 dB N/A
a2A2600-20gmBAS Digital gain only 0 dB N/A
a2A2600-20gmPRO Digital gain only 0 dB N/A
a2A2600-64ucBAS Digital gain only 0 dB N/A
a2A2600-64ucPRO Digital gain only 0 dB N/A
a2A2600-64umBAS Digital gain only 0 dB N/A
a2A2600-64umPRO Digital gain only 0 dB N/A
a2A2840-14gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-14gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-14gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-14gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-48ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-48ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-48umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-48umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-67g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A2840-67g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A3840-13gcBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-13gcPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-13gmBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-13gmPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-45ucBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-45ucPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-45umBAS Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A3840-45umPRO Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
a2A4096-9gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-9gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-9gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-9gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-30ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-30ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-30umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-30umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-44g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4096-44g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4200-12gcBAS Digital gain only 0 dB N/A
a2A4200-12gcPRO Digital gain only 0 dB N/A
a2A4200-12gmBAS Digital gain only 0 dB N/A
a2A4200-12gmPRO Digital gain only 0 dB N/A
a2A4200-40ucBAS Digital gain only 0 dB N/A
a2A4200-40ucPRO Digital gain only 0 dB N/A
a2A4200-40umBAS Digital gain only 0 dB N/A
a2A4200-40umPRO Digital gain only 0 dB N/A
a2A4504-5gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-5gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-5gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-5gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-18ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-18ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-18umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-18umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-27g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4504-27g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A4508-6gcBAS Digital gain only 0 dB N/A
a2A4508-6gcPRO Digital gain only 0 dB N/A
a2A4508-6gmBAS Digital gain only 0 dB N/A
a2A4508-6gmPRO Digital gain only 0 dB N/A
a2A4508-20ucBAS Digital gain only 0 dB N/A
a2A4508-20ucPRO Digital gain only 0 dB N/A
a2A4508-20umBAS Digital gain only 0 dB N/A
a2A4508-20umPRO Digital gain only 0 dB N/A
a2A5320-7gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-7gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-7gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-7gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-23ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-23ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-23umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-23umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-34g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5320-34g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-4gcBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-4gcPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-4gmBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-4gmPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-15ucBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-15ucPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-15umBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-15umPRO Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-22g5cBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
a2A5328-22g5mBAS Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA640-121gm Above the threshold, analog gain automatically switches to digital gain N/A Raw Gain = 0.0359 * GainRaw (Sony ICX618 replacement)
acA640-300gc Digital Control only - Raw Gain = 20 * log10 (GainRaw / 136)
acA640-300gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA640-750uc Digital gain only - dB N/A
acA640-750um Digital gain only - dB N/A
acA720-290gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA720-290gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA720-520uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA720-520um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA800-200gc Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA800-200gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA800-510uc Digital gain only - dB N/A
acA800-510um Digital gain only - dB N/A
acA1280-60gc Gain control settable via GainSelector parameter. - Raw 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 Gain control settable via GainSelector parameter. - Raw 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 Gain control settable via GainSelector parameter. - Raw 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 Gain control settable via GainSelector parameter. - Raw 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 Gain control settable via GainSelector parameter. - Raw 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 Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA1300-75gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA1300-200uc Digital gain only - dB N/A
acA1300-200um Digital gain only - dB N/A
acA1440-73gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA1440-73gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA1440-220uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1440-220um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1600-20gc Above the threshold, analog gain automatically switches to digital gain 511 Raws Gain = 0.0359 * GainRaw
acA1600-20uc Above the threshold, analog gain automatically switches to digital gain 10.1 dB N/A
acA1600-60gc Gain control settable via GainSelector parameter - Raw 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 Gain control settable via GainSelector parameter - Raw 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 Above the threshold, analog gain automatically switches to digital gain 19 Raw See this graph for approximate values.
acA1920-25gm Above the threshold, analog gain automatically switches to digital gain 19 Raw See this graph for approximate values.
acA1920-25uc Digital gain only - dB N/A
acA1920-25um Digital gain only - dB N/A
acA1920-40gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA1920-40gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA1920-40uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-40ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-40um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-40umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-48gc Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA1920-48gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA1920-50gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA1920-50gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA1920-150uc Digital gain only - dB N/A
acA1920-150um Digital gain only - dB N/A
acA1920-155uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-155ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-155um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA1920-155umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2000-50gc Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA2000-50gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA2000-165uc Digital gain only - dB N/A
acA2000-165um Digital gain only - dB N/A
acA2040-25gc Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA2040-25gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA2040-25gmNIR Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA2040-35gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA2040-35gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA2040-55uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2040-55um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2040-90uc Digital gain only - dB N/A
acA2040-90um Digital gain only - dB N/A
acA2040-90umNIR Digital gain only - dB N/A
acA2040-120uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2040-120um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-20gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA2440-20gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA2440-35uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-35ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-35um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-35umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-75uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-75ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-75um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2440-75umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA2500-14gc Above the threshold, analog gain automatically switches to digital gain 19 Raw See this graph for approximate values.
acA2500-14gm Above the threshold, analog gain automatically switches to digital gain 19 Raw See this graph for approximate values.
acA2500-14uc Digital gain only - dB N/A
acA2500-14um Digital gain only - dB N/A
acA2500-20gc Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA2500-20gcMED Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA2500-20gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA2500-20gmMED Digital gain only - Raw Gain = 20 * log10 (GainRaw / 136)
acA2500-60uc Digital gain only - dB N/A
acA2500-60um Digital gain only - dB N/A
acA3088-16gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA3088-16gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA3088-57uc Analog gain only - dB N/A
acA3088-57ucMED Analog gain only - dB N/A
acA3088-57um Analog gain only - dB N/A
acA3088-57umMED Analog gain only - dB N/A
acA3800-10gc Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA3800-10gm Digital gain only - Raw Gain = 20 * log10 (GainRaw / 32)
acA3800-14uc Digital gain only - dB N/A
acA3800-14um Digital gain only - dB N/A
acA4024-8gc Analog gain only - Raw Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA4024-8gm Analog gain only - Raw Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA4024-29uc Analog gain only - dB N/A
acA4024-29um Analog gain only - dB N/A
acA4096-11gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA4096-11gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA4096-30uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-30ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-30um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-30umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-40uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-40ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-40um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4096-40umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-8gc Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA4112-8gm Above the threshold, analog gain automatically switches to digital gain 240 Raw Gain = 0.1 * GainRaw
acA4112-20uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-20ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-20um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-20umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-30uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-30ucMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-30um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA4112-30umMED Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
acA5472-5gc Analog gain only - Raw Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA5472-5gm Analog gain only - Raw Gain = -20 * log10 ((2048-GainRaw) / 2048)
acA5472-17uc Analog gain only - dB N/A
acA5472-17ucMED Analog gain only - dB N/A
acA5472-17um Analog gain only - dB N/A
acA5472-17umMED Analog gain only - dB N/A
boA1936-400cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA1936-400cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA2448-250cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA2448-250cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA2832-190cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA2832-190cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4096-93cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4096-93cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4096-180cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4096-180cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4112-68cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4112-68cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4500-45cc Combination of analog and digital gain - dB N/A
boA4500-45cm Combination of analog and digital gain - dB N/A
boA4504-100cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA4504-100cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA5120-150cc Digital gain only - dB N/A
boA5120-150cm Digital gain only - dB N/A
boA5120-230cc Digital gain only - dB N/A
boA5120-230cm Digital gain only - dB N/A
boA5320-150cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA5320-150cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA5328-100cc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA5328-100cm Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
boA6500-36cc Combination of analog and digital gain - dB N/A
boA6500-36cm Combination of analog and digital gain - dB N/A
boA8100-16cc Combination of analog and digital gain - dB N/A
boA8100-16cm Combination of analog and digital gain - dB N/A
boA9344-30cc Digital gain only - dB N/A
boA9344-30cm Digital gain only - dB N/A
boA9344-70cc Digital gain only - dB N/A
boA9344-70cm Digital gain only - dB N/A
boA13440-17cm Analog gain only - dB N/A
daA720-520uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA720-520um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA1280-54uc Digital gain only - dB N/A
daA1280-54um Digital gain only - dB N/A
daA1440-220uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA1440-220um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA1600-60uc Digital gain only - dB N/A
daA1600-60um Digital gain only - dB N/A
daA1920-15um Digital gain only - dB N/A
daA1920-30uc Digital gain only - dB N/A
daA1920-30um Digital gain only - dB N/A
daA1920-160uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA1920-160um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA2448-70uc Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA2448-70um Above the threshold, analog gain automatically switches to digital gain 24 dB N/A
daA2500-14uc Digital gain only - dB N/A
daA2500-14um Digital gain only - dB N/A
daA3840-45uc Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
daA3840-45um Above the threshold, analog gain automatically switches to digital gain 30 dB N/A
puA1280-54uc Digital gain only - dB N/A
puA1280-54um Digital gain only - dB N/A
puA1600-60uc Digital gain only - dB N/A
puA1600-60um Digital gain only - dB N/A
puA1920-30uc Digital gain only - dB N/A
puA1920-30um Digital gain only - dB N/A
puA2500-14uc Digital gain only - dB N/A
puA2500-14um Digital gain only - dB N/A

Gain Values#

Info

On some camera models, you can use the Remove Parameter Limits feature to increase the gain parameter limits.

Show all camera models

Camera Model Minimum Gain Setting Minimum Gain Setting with Vertical Binning Enabled Maximum Gain Setting (8-bit Pixel Formats) Maximum Gain Setting (10-bit Pixel Formats) Maximum Gain Setting (12-bit Pixel Formats)
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
boA2448-250cm 0 - 48 48 48
boA2832-190cc 0 - 48 48 48
boA2832-190cm 0 - 48 48 48
boA4096-93cc 0 - 48 - 48
boA4096-93cm 0 - 48 - 48
boA4096-180cc 0 - 48 48 48
boA4096-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. Analog gain / digital gain.

  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.

Sample Code#

ace Classic/U/L GigE Cameras#
// 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
Other Cameras#
// 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

You can also use the pylon Viewer to easily set the parameters.