콘텐츠로 건너뛰기
STAGING SERVER
DEVELOPMENT SERVER

Gamma#

Gamma camera feature를 사용하면 모니터 디스플레이에 맞게 획득된 이미지의 밝기를 최적화할 수 있습니다.

기능 사용법#

작동 원리#

카메라는 다음 공식에 따라 각 픽셀의 밝기 값에 Gamma correction 값(γ)을 적용합니다(컬러 카메라의 적색 픽셀 값(R)을 예로 듦):

Gamma Correction 공식(적색 픽셀)

최대 픽셀 값(Rmax)은 예를 들어 8-bit pixel formats의 경우 255이고 10-bit pixel format의 경우 1 023입니다.

Gamma Correction 활성화하기#

Gamma 보정을 활성화하려면:

  1. 다음 값 중 하나로 GammaEnable 매개변수: true (사용 가능한 경우).
  2. 최상의 결과를 얻으려면 다음을 설정하십시오: BlackLevel 파라미터를 0으로 설정하십시오.
  3. 다음 값 중 하나로 Gamma 파라미터를 원하는 값으로 설정하십시오. 파라미터 값 범위는 0에서 약 4(≈4)까지입니다.
    • Gamma = 1: 전체 밝기가 변경되지 않습니다.
    • Gamma < 1: The overall brightness increases.
    • Gamma > 1: 전체 밝기가 감소합니다.

모든 경우에 검은색 픽셀(밝기 = 0)과 흰색 픽셀(밝기 = 최대값)은 조정되지 않습니다.

정보

  • Gamma correction을 활성화하고 pixel format이 12-bit pixel format으로 설정된 경우, 일부 이미지 정보가 손실됩니다. 픽셀 데이터 출력은 여전히 12-bit이지만, 픽셀 값은 gamma correction 프로세스 중에 보간됩니다.
  • boA13440-17cm 카메라에서는 Pixel Format이 8비트 Pixel Format으로 설정된 경우에만 Gamma 보정을 활성화할 수 있습니다.

추가 Parameters#

카메라 모델에 따라 다음과 같은 추가 파라미터를 사용할 수 있습니다.

  • GammaEnable: Gamma 보정을 활성화 또는 비활성화합니다.
  • GammaSelector: 다음 Gamma 보정 모드 중 하나를 선택할 수 있습니다:
    • User: Gamma 보정 값을 원하는 대로 설정할 수 있습니다. (기본값)
    • sRGB: 카메라가 약 0.4의 Gamma 보정 값을 자동으로 설정합니다. 이 값은 sRGB 모니터의 이미지 표시에 최적화되어 있습니다.
  • BslColorSpaceMode 또는 BslColorSpace: 다음 Gamma 보정 모드 중 하나를 선택할 수 있습니다:
    • RGB: 추가적인 gamma correction 값이 적용되지 않습니다.
    • sRGB: 이미지 밝기가 sRGB 모니터 표시에 최적화됩니다. 약 0.4의 Gamma 보정 값이 적용됩니다. 자세한 내용은 다음의 각주를 참조하십시오. 세부 정보 섹션.

세부 정보#

모든 카메라 모델 보기

카메라 모델 추가 Parameters
a2A640-240gmSWIR 없음
a2A640-240umSWIR 없음
a2A1280-80gmSWIR 없음
a2A1280-125umSWIR 없음
a2A1920-51gcBAS BslColorSpacec
a2A1920-51gcIP67 BslColorSpacec
a2A1920-51gcPRO BslColorSpacec
a2A1920-51gmBAS 없음
a2A1920-51gmIP67 없음
a2A1920-51gmPRO 없음
a2A1920-160ucBAS BslColorSpacec
a2A1920-160ucPRO BslColorSpacec
a2A1920-160umBAS 없음
a2A1920-160umPRO 없음
a2A1920-165g5cBAS BslColorSpacec
a2A1920-165g5mBAS 없음
a2A1920-168mgc BslColorSpacec
a2A1920-168mgm 없음
a2A2048-35gmSWIR 없음
a2A2048-37gcBAS BslColorSpacec
a2A2048-37gcPRO BslColorSpacec
a2A2048-37gmBAS 없음
a2A2048-37gmPRO 없음
a2A2048-110umSWIR 없음
a2A2048-114g5cBAS BslColorSpacec
a2A2048-114g5mBAS 없음
a2A2048-114mgc BslColorSpacec
a2A2048-114mgm 없음
a2A2048-114ucBAS BslColorSpacec
a2A2048-114ucPRO BslColorSpacec
a2A2048-114umBAS 없음
a2A2048-114umPRO 없음
a2A2048-173cmSWIR 없음
a2A2440-98g5cBAS BslColorSpacec
a2A2440-98g5mBAS 없음
a2A2448-23gcBAS BslColorSpacec
a2A2448-23gcIP67 BslColorSpacec
a2A2448-23gcPRO BslColorSpacec
a2A2448-23gmBAS 없음
a2A2448-23gmIP67 없음
a2A2448-23gmPRO 없음
a2A2448-75ucBAS BslColorSpacec
a2A2448-75ucPRO BslColorSpacec
a2A2448-75umBAS 없음
a2A2448-75umPRO 없음
a2A2448-90mgc BslColorSpacec
a2A2448-90mgm 없음
a2A2448-105g5cBAS BslColorSpacec
a2A2448-105g5mBAS 없음
a2A2448-120cc BslColorSpacec
a2A2448-120cm 없음
a2A2448-210cc BslColorSpacec
a2A2448-210cm 없음
a2A2448-232g10c BslColorSpacec
a2A2448-232g10m 없음
a2A2464-23gcBAS BslColorSpacec
a2A2464-23gcPRO BslColorSpacec
a2A2464-23gmBAS 없음
a2A2464-23gmPRO 없음
a2A2464-77ucBAS BslColorSpacec
a2A2464-77ucPRO BslColorSpacec
a2A2464-77umBAS 없음
a2A2464-77umPRO 없음
a2A2464-115g5cBAS BslColorSpacec
a2A2464-115g5mBAS 없음
a2A2560-20gmSWIR 없음
a2A2560-70umSWIR 없음
a2A2560-131cmSWIR 없음
a2A2590-22gcBAS BslColorSpacec
a2A2590-22gcPRO BslColorSpacec
a2A2590-22gmBAS 없음
a2A2590-22gmPRO 없음
a2A2590-60ucBAS BslColorSpacec
a2A2590-60ucPRO BslColorSpacec
a2A2590-60umBAS 없음
a2A2590-60umPRO 없음
a2A2600-20gcBAS BslColorSpacec
a2A2600-20gcPRO BslColorSpacec
a2A2600-20gmBAS 없음
a2A2600-20gmPRO 없음
a2A2600-64ucBAS BslColorSpacec
a2A2600-64ucPRO BslColorSpacec
a2A2600-64umBAS 없음
a2A2600-64umPRO 없음
a2A2840-14gcBAS BslColorSpacec
a2A2840-14gcIP67 BslColorSpacec
a2A2840-14gcPRO BslColorSpacec
a2A2840-14gmBAS 없음
a2A2840-14gmIP67 없음
a2A2840-14gmPRO 없음
a2A2840-14gmUV 없음
a2A2840-48ucBAS BslColorSpacec
a2A2840-48ucPRO BslColorSpacec
a2A2840-48umBAS 없음
a2A2840-48umPRO 없음
a2A2840-48umUV 없음
a2A2840-57mgc BslColorSpacec
a2A2840-57mgm 없음
a2A2840-67g5cBAS BslColorSpacec
a2A2840-67g5mBAS 없음
a2A2840-67g5mUV 없음
a2A2840-86cc BslColorSpacec
a2A2840-86cm 없음
a2A2840-150g10c BslColorSpacec
a2A2840-150g10m 없음
a2A2840-150g10mUV 없음
a2A3536-9gcBAS BslColorSpacec
a2A3536-9gcPRO BslColorSpacec
a2A3536-9gmBAS 없음
a2A3536-9gmPRO 없음
a2A3536-31ucBAS BslColorSpacec
a2A3536-31ucPRO BslColorSpacec
a2A3536-31umBAS 없음
a2A3536-31umPRO 없음
a2A3536-37mgc BslColorSpacec
a2A3536-37mgm 없음
a2A3536-42g5cBAS BslColorSpacec
a2A3536-42g5mBAS 없음
a2A3840-13gcBAS BslColorSpacec
a2A3840-13gcPRO BslColorSpacec
a2A3840-13gmBAS 없음
a2A3840-13gmPRO 없음
a2A3840-45ucBAS BslColorSpacec
a2A3840-45ucPRO BslColorSpacec
a2A3840-45umBAS 없음
a2A3840-45umPRO 없음
a2A4096-9gcBAS BslColorSpacec
a2A4096-9gcIP67 BslColorSpacec
a2A4096-9gcPRO BslColorSpacec
a2A4096-9gmBAS 없음
a2A4096-9gmIP67 없음
a2A4096-9gmPRO 없음
a2A4096-30ucBAS BslColorSpacec
a2A4096-30ucPRO BslColorSpacec
a2A4096-30umBAS 없음
a2A4096-30umPRO 없음
a2A4096-38mgc BslColorSpacec
a2A4096-38mgm 없음
a2A4096-44g5cBAS BslColorSpacec
a2A4096-44g5mBAS 없음
a2A4096-67cc BslColorSpacec
a2A4096-67cm 없음
a2A4096-98g10c BslColorSpacec
a2A4096-98g10m 없음
a2A4200-12gcBAS BslColorSpacec
a2A4200-12gcPRO BslColorSpacec
a2A4200-12gmBAS 없음
a2A4200-12gmPRO 없음
a2A4200-40ucBAS BslColorSpacec
a2A4200-40ucPRO BslColorSpacec
a2A4200-40umBAS 없음
a2A4200-40umPRO 없음
a2A4504-5gcBAS BslColorSpacec
a2A4504-5gcIP67 BslColorSpacec
a2A4504-5gcPRO BslColorSpacec
a2A4504-5gmBAS 없음
a2A4504-5gmIP67 없음
a2A4504-5gmPRO 없음
a2A4504-18ucBAS BslColorSpacec
a2A4504-18ucPRO BslColorSpacec
a2A4504-18umBAS 없음
a2A4504-18umPRO 없음
a2A4504-23mgc BslColorSpacec
a2A4504-23mgm 없음
a2A4504-27g5cBAS BslColorSpacec
a2A4504-27g5mBAS 없음
a2A4504-42cc BslColorSpacec
a2A4504-42cm 없음
a2A4504-59g10c BslColorSpacec
a2A4504-59g10m 없음
a2A4508-6gcBAS BslColorSpacec
a2A4508-6gcPRO BslColorSpacec
a2A4508-6gmBAS 없음
a2A4508-6gmPRO 없음
a2A4508-20ucBAS BslColorSpacec
a2A4508-20ucPRO BslColorSpacec
a2A4508-20umBAS 없음
a2A4508-20umPRO 없음
a2A5060-4gcBAS BslColorSpacec
a2A5060-4gmBAS 없음
a2A5060-15ucBAS BslColorSpacec
a2A5060-15umBAS 없음
a2A5060-21g5cBAS BslColorSpacec
a2A5060-21g5mBAS 없음
a2A5060-35cc BslColorSpacec
a2A5060-35cm 없음
a2A5320-7gcBAS BslColorSpacec
a2A5320-7gcIP67 BslColorSpacec
a2A5320-7gcPRO BslColorSpacec
a2A5320-7gmBAS 없음
a2A5320-7gmPRO 없음
a2A5320-7gmip67 없음
a2A5320-23ucBAS BslColorSpacec
a2A5320-23ucPRO BslColorSpacec
a2A5320-23umBAS 없음
a2A5320-23umPRO 없음
a2A5320-29mgc BslColorSpacec
a2A5320-29mgm 없음
a2A5320-34g5cBAS BslColorSpacec
a2A5320-34g5mBAS 없음
a2A5320-52cc BslColorSpacec
a2A5320-52cm 없음
a2A5320-75g10c BslColorSpacec
a2A5320-75g10m 없음
a2A5328-4gcBAS BslColorSpacec
a2A5328-4gcIP67 BslColorSpacec
a2A5328-4gcPRO BslColorSpacec
a2A5328-4gmBAS 없음
a2A5328-4gmIP67 없음
a2A5328-4gmPRO 없음
a2A5328-15ucBAS BslColorSpacec
a2A5328-15ucPRO BslColorSpacec
a2A5328-15umBAS 없음
a2A5328-15umPRO 없음
a2A5328-19mgc BslColorSpacec
a2A5328-19mgm 없음
a2A5328-22g5cBAS BslColorSpacec
a2A5328-22g5mBAS 없음
a2A5328-35cc BslColorSpacec
a2A5328-35cm 없음
a2A5328-49g10c BslColorSpacec
a2A5328-49g10m 없음
acA640-121gm GammaEnable
GammaSelector
acA640-300gc GammaEnable
GammaSelector
acA640-300gm GammaEnable
GammaSelector
acA640-750uc Nonea
acA640-750um Nonea
acA720-290gc GammaEnable
GammaSelector
acA720-290gm GammaEnable
GammaSelector
acA720-520uc Nonea
acA720-520um Nonea
acA800-200gc GammaEnable
GammaSelector
acA800-200gm GammaEnable
GammaSelector
acA800-510uc Nonea
acA800-510um Nonea
acA1280-60gc GammaEnable
GammaSelector
acA1280-60gm GammaEnable
GammaSelector
acA1300-60gc GammaEnable
GammaSelector
acA1300-60gm GammaEnable
GammaSelector
acA1300-60gmNIR GammaEnable
GammaSelector
acA1300-75gc GammaEnable
GammaSelector
acA1300-75gm GammaEnable
GammaSelector
acA1300-200uc Nonea
acA1300-200um Nonea
acA1440-73gc GammaEnable
GammaSelector
acA1440-73gm GammaEnable
GammaSelector
acA1440-220uc Nonea
acA1440-220um Nonea
acA1600-60gc GammaEnable
GammaSelector
acA1600-60gm GammaEnable
GammaSelector
acA1920-25gc GammaEnable
GammaSelector
acA1920-25gm GammaEnable
GammaSelector
acA1920-25uc Nonea
acA1920-25um Nonea
acA1920-40gc GammaEnable
GammaSelector
acA1920-40gm GammaEnable
GammaSelector
acA1920-40uc Nonea
acA1920-40ucMED Nonea
acA1920-40um Nonea
acA1920-40umMED Nonea
acA1920-48gc GammaEnable
GammaSelector
acA1920-48gm GammaEnable
GammaSelector
acA1920-50gc GammaEnable
GammaSelector
acA1920-50gm GammaEnable
GammaSelector
acA1920-150uc Nonea
acA1920-150um Nonea
acA1920-155uc Nonea
acA1920-155ucMED Nonea
acA1920-155um Nonea
acA1920-155umMED Nonea
acA2000-50gc GammaEnable
GammaSelector
acA2000-50gm GammaEnable
GammaSelector
acA2000-165uc Nonea
acA2000-165um Nonea
acA2040-25gc GammaEnable
GammaSelector
acA2040-25gm GammaEnable
GammaSelector
acA2040-25gmNIR GammaEnable
GammaSelector
acA2040-35gc GammaEnable
GammaSelector
acA2040-35gm GammaEnable
GammaSelector
acA2040-55uc Nonea
acA2040-55um Nonea
acA2040-90uc Nonea
acA2040-90um Nonea
acA2040-90umNIR Nonea
acA2040-120uc Nonea
acA2040-120um Nonea
acA2440-20gc GammaEnable
GammaSelector
acA2440-20gm GammaEnable
GammaSelector
acA2440-35uc Nonea
acA2440-35ucMED Nonea
acA2440-35um Nonea
acA2440-35umMED Nonea
acA2440-75uc Nonea
acA2440-75ucMED Nonea
acA2440-75um Nonea
acA2440-75umMED Nonea
acA2500-14gc GammaEnable
GammaSelector
acA2500-14gm GammaEnable
GammaSelector
acA2500-14uc Nonea
acA2500-14um Nonea
acA2500-20gc GammaEnable
GammaSelector
acA2500-20gcMED GammaEnable
GammaSelector
acA2500-20gm GammaEnable
GammaSelector
acA2500-20gmMED GammaEnable
GammaSelector
acA2500-60uc Nonea
acA2500-60um Nonea
acA3088-16gc GammaEnable
GammaSelector
acA3088-16gm GammaEnable
GammaSelector
acA3088-57uc Nonea
acA3088-57ucMED Nonea
acA3088-57um Nonea
acA3088-57umMED Nonea
acA3800-10gc GammaEnable
GammaSelector
acA3800-10gm GammaEnable
GammaSelector
acA3800-14uc Nonea
acA3800-14um Nonea
acA4024-8gc GammaEnable
GammaSelector
acA4024-8gm GammaEnable
GammaSelector
acA4024-29uc Nonea
acA4024-29um Nonea
acA4096-11gc GammaEnable
GammaSelector
acA4096-11gm GammaEnable
GammaSelector
acA4096-30uc Nonea
acA4096-30ucMED Nonea
acA4096-30um Nonea
acA4096-30umMED Nonea
acA4096-40uc Nonea
acA4096-40ucMED Nonea
acA4096-40um Nonea
acA4096-40umMED Nonea
acA4112-8gc GammaEnable
GammaSelector
acA4112-8gm GammaEnable
GammaSelector
acA4112-20uc Nonea
acA4112-20ucMED Nonea
acA4112-20um Nonea
acA4112-20umMED Nonea
acA4112-30uc Nonea
acA4112-30ucMED Nonea
acA4112-30um Nonea
acA4112-30umMED Nonea
acA5472-5gc GammaEnable
GammaSelector
acA5472-5gm GammaEnable
GammaSelector
acA5472-17uc Nonea
acA5472-17ucMED Nonea
acA5472-17um Nonea
acA5472-17umMED Nonea
boA1936-400cc BslColorSpacec
boA1936-400cm 없음
boA2448-250cc BslColorSpacec
boA2448-250cm 없음
boA2832-190cc BslColorSpacec
boA2832-190cm 없음
boA4096-93cc BslColorSpacec
boA4096-93cm 없음
boA4096-180cc BslColorSpacec
boA4096-180cm 없음
boA4112-68cc BslColorSpacec
boA4112-68cm 없음
boA4500-45cc BslColorSpacec
boA4500-45cm 없음
boA4504-100cc BslColorSpacec
boA4504-100cm 없음
boA5056-95cm 없음
boA5120-150cc Gamma 기능을 지원하지 않습니다.
boA5120-150cm Gamma 기능을 지원하지 않습니다.
boA5120-230cc Gamma 기능을 지원하지 않습니다.
boA5120-230cm Gamma 기능을 지원하지 않습니다.
boA5320-150cc BslColorSpacec
boA5320-150cm 없음
boA5328-100cc BslColorSpacec
boA5328-100cm 없음
boA6500-36cc BslColorSpacec
boA6500-36cm 없음
boA8100-16cc BslColorSpacec
boA8100-16cm 없음
boA9344-30cc Gamma 기능을 지원하지 않습니다.
boA9344-30cm Gamma 기능을 지원하지 않습니다.
boA9344-70cc Gamma 기능을 지원하지 않습니다.
boA9344-70cm Gamma 기능을 지원하지 않습니다.
boA13440-17cm 없음
daA720-520uc BslColorSpacea
daA720-520um 없음
daA1280-54uc BslColorSpaceModeb
daA1280-54um 없음
daA1440-220uc BslColorSpacea
daA1440-220um 없음
daA1600-60uc BslColorSpaceModeb
daA1600-60um 없음
daA1920-15um 없음
daA1920-30uc BslColorSpaceModeb
daA1920-30um 없음
daA1920-160uc BslColorSpacea
daA1920-160um 없음
daA2448-70uc BslColorSpacea
daA2448-70um 없음
daA2500-14uc BslColorSpaceModeb
daA2500-14um 없음
daA3840-45uc BslColorSpacea
daA3840-45um 없음
dmA720-290gc BslColorSpacec
dmA720-290gm 없음
dmA1440-73gc BslColorSpacec
dmA1440-73gm 없음
dmA1920-51gc BslColorSpacec
dmA1920-51gm 없음
dmA2048-37gc BslColorSpacec
dmA2048-37gm 없음
dmA2448-23gc BslColorSpacec
dmA2448-23gm 없음
dmA2840-14gc BslColorSpacec
dmA2840-14gm 없음
dmA3536-9gc BslColorSpacec
dmA3536-9gm 없음
dmA4096-9gc BslColorSpacec
dmA4096-9gm 없음
puA1280-54uc BslColorSpaceModeb
puA1280-54um 없음
puA1600-60uc BslColorSpaceModeb
puA1600-60um 없음
puA1920-30uc BslColorSpaceModeb
puA1920-30um 없음
puA2500-14uc BslColorSpaceModeb
puA2500-14um 없음
r2L2048-29gc BslColorSpacec
r2L2048-58gm 없음
r2L2048-62cc BslColorSpacec
r2L2048-62g5c BslColorSpacec
r2L2048-172cm 없음
r2L2048-172g5m 없음
r2L4096-14gc BslColorSpacec
r2L4096-29gm 없음
r2L4096-42cc BslColorSpacec
r2L4096-42g5c BslColorSpacec
r2L4096-84cm 없음
r2L4096-84g5m 없음
r2L8192-80cc BslColorSpacec
r2L8192-240cm 없음
r2L16384-60cc BslColorSpacec
r2L16384-120cm 없음
r2T16416-500cm 없음

  1. 선택한 경우 광원 사전 설정, 약 0.4의 추가 Gamma 보정 값이 적용됩니다(sRGB Gamma 보정). 이 값은 별도로 적용되며 다음 항목에 포함되지 않습니다. Gamma 파라미터 값입니다. 예: Light Source Preset을(를) Tungsten으로 설정하고 Gamma 파라미터 값을 1.2로 설정했습니다. 먼저, 픽셀 값에 약 0.4의 자동 보정 값이 적용됩니다. 그런 다음, 결과 픽셀 값에 1.2의 Gamma 보정 값이 적용됩니다.

  2. Pixel Format이(가) YCbCr422 또는 RGB8로 설정된 경우에만 사용할 수 있습니다.

  3. 색 공간이 다음과 같이 설정된 경우 sRGB, 약 0.4의 Gamma 보정 값이 적용됩니다. 이 값은 별도로 적용되며 다음 항목에 포함되지 않습니다. Gamma 파라미터 값입니다. 예: 색 공간을 sRGB로 설정하고 Gamma 파라미터를 1.2로 설정했습니다. 먼저, 픽셀 값에 약 0.4의 자동 보정 값이 적용됩니다. 그런 다음, 결과 픽셀 값에 1.2의 Gamma 보정 값이 적용됩니다.
    선택한 경우 Light Source Preset, 색 공간을 다음으로 설정합니다. sRGB 또한 다음 항목에도 영향을 줍니다. Balance White, Color Adjustment및 Color Transformation 기능.

  4. 색 공간이 다음과 같이 설정된 경우 sRGB, 약 0.4의 Gamma 보정 값이 적용되며, Gamma parameter는 읽기 전용이 되며, Gamma parameter 값은 무시됩니다.

샘플 코드#

ace 2, boost 및 dart R 카메라#
// Set the Gamma value to 1.2
camera.Gamma.SetValue(1.2);
// Set the color space to sRGB
camera.BslColorSpace.SetValue(BslColorSpace_sRGB);
INodeMap& nodemap = camera.GetNodeMap();
// Set the Gamma value to 1.2
CFloatParameter(nodemap, "Gamma").SetValue(1.2);
// Set the color space to sRGB
CEnumParameter(nodemap, "BslColorSpace").SetValue("sRGB");
// Set the Gamma value to 1.2
camera.Parameters[PLCamera.Gamma].SetValue(1.2);
// Set the color space to sRGB
camera.Parameters[PLCamera.BslColorSpace].SetValue(PLCamera.BslColorSpace.sRGB);
/* 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 Gamma value to 1.2 */
errRes = PylonDeviceSetFloatFeature(hdev, "Gamma", 1.2);
CHECK(errRes);
/* Set the color space to sRGB */
errRes = PylonDeviceFeatureFromString(hdev, "BslColorSpace", "sRGB");
CHECK(errRes);
# Set the Gamma value to 1.2
camera.Gamma.Value = 1.2
# Set the color space to sRGB
camera.BslColorSpace.Value = "sRGB"
ace Classic/U/L GigE 카메라#
// Enable the Gamma feature
camera.GammaEnable.SetValue(true);
// Set the gamma type to User
camera.GammaSelector.SetValue(GammaSelector_User);
// Set the Gamma value to 1.2
camera.Gamma.SetValue(1.2);
INodeMap& nodemap = camera.GetNodeMap();
// Enable the Gamma feature
CBooleanParameter(nodemap, "GammaEnable").SetValue(true);
// Set the gamma type to User
CEnumParameter(nodemap, "GammaSelector").SetValue("User");
// Set the Gamma value to 1.2
CFloatParameter(nodemap, "Gamma").SetValue(1.2);
// Enable the Gamma feature
camera.Parameters[PLCamera.GammaEnable].SetValue(true);
// Set the gamma type to User
camera.Parameters[PLCamera.GammaSelector].SetValue(PLCamera.GammaSelector.User);
// Set the Gamma value to 1.2
camera.Parameters[PLCamera.Gamma].SetValue(1.2);
/* 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 */
/* Enable the Gamma feature */
errRes = PylonDeviceSetBooleanFeature(hdev, "GammaEnable", 1);
CHECK(errRes);
/* Set the gamma type to User */
errRes = PylonDeviceFeatureFromString(hdev, "GammaSelector", "User");
CHECK(errRes);
/* Set the Gamma value to 1.2 */
errRes = PylonDeviceSetFloatFeature(hdev, "Gamma", 1.2);
CHECK(errRes);
# Enable the Gamma feature
camera.GammaEnable.Value = True
# Set the gamma type to User
camera.GammaSelector.Value = "User"
# Set the Gamma value to 1.2
camera.Gamma.Value = 1.2
기타 카메라#
// Set the Gamma value to 1.2
camera.Gamma.SetValue(1.2);
INodeMap& nodemap = camera.GetNodeMap();
// Set the Gamma value to 1.2
CFloatParameter(nodemap, "Gamma").SetValue(1.2);
// Set the Gamma value to 1.2
camera.Parameters[PLCamera.Gamma].SetValue(1.2);
/* 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 Gamma value to 1.2 */
errRes = PylonDeviceSetFloatFeature(hdev, "Gamma", 1.2);
CHECK(errRes);
# Set the Gamma value to 1.2
camera.Gamma.Value = 1.2

또한 pylon Viewer를 사용하여 파라미터를 손쉽게 설정할 수 있습니다.