Color Adjustment#
在 RGB 色彩空間中,您可以針對每種主色與次色(紅、綠、藍、黃、青和品紅)分別調整色相與飽和度。
若要一次調整所有顏色的外觀,請使用 Hue and Saturation 功能(若可用)。
使用功能#
為何要使用Color Adjustment#
- 調整色相會改變影像的顏色。這在某些情況下相當有用,例如用來修正輕微且不希望出現的色偏,或是製作假色影像。
- 調整飽和度會改變顏色的鮮豔度(強度)。提高飽和度有助於讓顏色更容易區分。
設定Color Adjustment 參數#
- 將相機中的
ProcessedRawEnable參數設為true(若適用 此外,若您使用的是拜耳感光元件 像素格式)。 - 將相機中的
ColorAdjustmentEnable參數設為true(若適用)。 - 將相機中的
ColorAdjustmentSelector將參數設定為所需的顏色,例如:Red. - 輸入所需的數值以用於
ColorAdjustmentHue參數。當此參數設定為 0 時,色相將保持不變。 - 輸入所需的數值以用於
ColorAdjustmentSaturation參數。當此參數設定為 1 時,飽和度將保持不變。
運作原理#
Color Adjustment 功能的參數是基於 RGB 色彩立方體的。
為了便於視覺化,可以將色彩立方體投影到平面上,從而形成一個色彩六邊形:
原色(紅、綠、藍)與二次色(黃、青、品紅)分別位於此色彩六邊形的四個角落。
您可以針對這些顏色中的每種調整色相和飽和度。此調整會影響影像中所有以該調整後顏色為主的區域。例如,調整紅色會影響影像中以紅色成分為主的顏色。
下圖顯示了調整紅色色相與飽和度,會如何影響圖片中的顏色:
以下效果隨之顯現:
如果該的數值範圍為 ColorAdjustmentHue 參數範圍為 -4.0 至 3.96875:
- 降低色相會使所有紅色(即以紅色成分為主的顏色)趨向黃色。
- 增加色相會使所有紅色朝向洋紅色變化。
如果該的數值範圍為 ColorAdjustmentHue 參數範圍為 -1.0 至 1.0:
- 增加色相會使所有紅色(即以紅色成分為主的顏色)趨向黃色。
- 降低色相會使所有紅色朝向洋紅色變化。
降低飽和度會使所有紅色調的色彩鮮豔度降低。當飽和度降至最低時,所有紅色調都會被灰色取代。
提高飽和度會增強所有紅色調的鮮豔度。當飽和度達到最大時,所有紅色調都會被 100% 紅色所取代。
資訊
當您調整某種顏色時,色環中鄰近的顏色也會在某種程度上受到影響。例如,當您調整紅色時,黃色和洋紅色也會受到影響。
其他參數#
根據您的相機型號,可使用下列其他參數:
ColorAdjustmentEnable: 啟用或停用「Color Adjustment 」功能。ColorAdjustmentReset指令:可將色彩調整參數重設為預設值。若您的調整未達到預期效果,且希望快速恢復至原始設定,此功能將特別實用。ColorAdjustmentHueRaw: 允許您為色相參數輸入介於 -128 至 127 之間的整數值。此整數範圍與浮點數範圍呈線性對應關係,其中 -128 相當於 -4.0,32 相當於 1.0,而 127 相當於 3.96875。ColorAdjustmentSaturationRaw: 允許您為飽和度參數輸入 0 至 255 之間的整數值。此整數範圍與浮點數範圍呈線性對應關係,其中 0 相當於 0.0,128 相當於 1.0,而 255 相當於 1.99219。
詳細資料#
| 相機型號 | 其他參數 |
|---|---|
| a2A640-240gmSWIR | Color Adjustment 此功能不支援 |
| a2A640-240umSWIR | Color Adjustment 此功能不支援 |
| a2A1280-80gmSWIR | Color Adjustment 此功能不支援 |
| a2A1280-125umSWIR | Color Adjustment 此功能不支援 |
| a2A1920-51gcBAS | BslColorAdjustmentEnable |
| a2A1920-51gcIP67 | BslColorAdjustmentEnable |
| a2A1920-51gcPRO | BslColorAdjustmentEnable |
| a2A1920-51gmBAS | Color Adjustment 此功能不支援 |
| a2A1920-51gmIP67 | Color Adjustment 此功能不支援 |
| a2A1920-51gmPRO | Color Adjustment 此功能不支援 |
| a2A1920-160ucBAS | BslColorAdjustmentEnable |
| a2A1920-160ucPRO | BslColorAdjustmentEnable |
| a2A1920-160umBAS | Color Adjustment 此功能不支援 |
| a2A1920-160umPRO | Color Adjustment 此功能不支援 |
| a2A1920-165g5cBAS | BslColorAdjustmentEnable |
| a2A1920-165g5mBAS | Color Adjustment 此功能不支援 |
| a2A1920-168mgc | BslColorAdjustmentEnable |
| a2A1920-168mgm | Color Adjustment 此功能不支援 |
| a2A2048-35gmSWIR | Color Adjustment 此功能不支援 |
| a2A2048-37gcBAS | BslColorAdjustmentEnable |
| a2A2048-37gcPRO | BslColorAdjustmentEnable |
| a2A2048-37gmBAS | Color Adjustment 此功能不支援 |
| a2A2048-37gmPRO | Color Adjustment 此功能不支援 |
| a2A2048-110umSWIR | Color Adjustment 此功能不支援 |
| a2A2048-114g5cBAS | BslColorAdjustmentEnable |
| a2A2048-114g5mBAS | Color Adjustment 此功能不支援 |
| a2A2048-114mgc | BslColorAdjustmentEnable |
| a2A2048-114mgm | Color Adjustment 此功能不支援 |
| a2A2048-114ucBAS | BslColorAdjustmentEnable |
| a2A2048-114ucPRO | BslColorAdjustmentEnable |
| a2A2048-114umBAS | Color Adjustment 此功能不支援 |
| a2A2048-114umPRO | Color Adjustment 此功能不支援 |
| a2A2048-173cmSWIR | Color Adjustment 此功能不支援 |
| a2A2440-98g5cBAS | BslColorAdjustmentEnable |
| a2A2440-98g5mBAS | Color Adjustment 此功能不支援 |
| a2A2448-23gcBAS | BslColorAdjustmentEnable |
| a2A2448-23gcIP67 | BslColorAdjustmentEnable |
| a2A2448-23gcPRO | BslColorAdjustmentEnable |
| a2A2448-23gmBAS | Color Adjustment 此功能不支援 |
| a2A2448-23gmIP67 | Color Adjustment 此功能不支援 |
| a2A2448-23gmPRO | Color Adjustment 此功能不支援 |
| a2A2448-75ucBAS | BslColorAdjustmentEnable |
| a2A2448-75ucPRO | BslColorAdjustmentEnable |
| a2A2448-75umBAS | Color Adjustment 此功能不支援 |
| a2A2448-75umPRO | Color Adjustment 此功能不支援 |
| a2A2448-90mgc | BslColorAdjustmentEnable |
| a2A2448-90mgm | Color Adjustment 此功能不支援 |
| a2A2448-105g5cBAS | BslColorAdjustmentEnable |
| a2A2448-105g5mBAS | Color Adjustment 此功能不支援 |
| a2A2448-120cc | BslColorAdjustmentEnable |
| a2A2448-120cm | Color Adjustment 此功能不支援 |
| a2A2448-210cc | BslColorAdjustmentEnable |
| a2A2448-210cm | Color Adjustment 此功能不支援 |
| a2A2464-23gcBAS | BslColorAdjustmentEnable |
| a2A2464-23gcPRO | BslColorAdjustmentEnable |
| a2A2464-23gmBAS | Color Adjustment 此功能不支援 |
| a2A2464-23gmPRO | Color Adjustment 此功能不支援 |
| a2A2464-77ucBAS | BslColorAdjustmentEnable |
| a2A2464-77ucPRO | BslColorAdjustmentEnable |
| a2A2464-77umBAS | Color Adjustment 此功能不支援 |
| a2A2464-77umPRO | Color Adjustment 此功能不支援 |
| a2A2464-115g5cBAS | BslColorAdjustmentEnable |
| a2A2464-115g5mBAS | Color Adjustment 此功能不支援 |
| a2A2560-20gmSWIR | Color Adjustment 此功能不支援 |
| a2A2560-70umSWIR | Color Adjustment 此功能不支援 |
| a2A2560-131cmSWIR | Color Adjustment 此功能不支援 |
| a2A2590-22gcBAS | BslColorAdjustmentEnable |
| a2A2590-22gcPRO | BslColorAdjustmentEnable |
| a2A2590-22gmBAS | Color Adjustment 此功能不支援 |
| a2A2590-22gmPRO | Color Adjustment 此功能不支援 |
| a2A2590-60ucBAS | BslColorAdjustmentEnable |
| a2A2590-60ucPRO | BslColorAdjustmentEnable |
| a2A2590-60umBAS | Color Adjustment 此功能不支援 |
| a2A2590-60umPRO | Color Adjustment 此功能不支援 |
| a2A2600-20gcBAS | BslColorAdjustmentEnable |
| a2A2600-20gcPRO | BslColorAdjustmentEnable |
| a2A2600-20gmBAS | Color Adjustment 此功能不支援 |
| a2A2600-20gmPRO | Color Adjustment 此功能不支援 |
| a2A2600-64ucBAS | BslColorAdjustmentEnable |
| a2A2600-64ucPRO | BslColorAdjustmentEnable |
| a2A2600-64umBAS | Color Adjustment 此功能不支援 |
| a2A2600-64umPRO | Color Adjustment 此功能不支援 |
| a2A2840-14gcBAS | BslColorAdjustmentEnable |
| a2A2840-14gcIP67 | BslColorAdjustmentEnable |
| a2A2840-14gcPRO | BslColorAdjustmentEnable |
| a2A2840-14gmBAS | Color Adjustment 此功能不支援 |
| a2A2840-14gmIP67 | Color Adjustment 此功能不支援 |
| a2A2840-14gmPRO | Color Adjustment 此功能不支援 |
| a2A2840-14gmUV | Color Adjustment 此功能不支援 |
| a2A2840-48ucBAS | BslColorAdjustmentEnable |
| a2A2840-48ucPRO | BslColorAdjustmentEnable |
| a2A2840-48umBAS | Color Adjustment 此功能不支援 |
| a2A2840-48umPRO | Color Adjustment 此功能不支援 |
| a2A2840-48umUV | Color Adjustment 此功能不支援 |
| a2A2840-57mgc | BslColorAdjustmentEnable |
| a2A2840-57mgm | Color Adjustment 此功能不支援 |
| a2A2840-67g5cBAS | BslColorAdjustmentEnable |
| a2A2840-67g5mBAS | Color Adjustment 此功能不支援 |
| a2A2840-67g5mUV | Color Adjustment 此功能不支援 |
| a2A2840-86cc | BslColorAdjustmentEnable |
| a2A2840-86cm | Color Adjustment 此功能不支援 |
| a2A3536-9gcBAS | BslColorAdjustmentEnable |
| a2A3536-9gcPRO | BslColorAdjustmentEnable |
| a2A3536-9gmBAS | Color Adjustment 此功能不支援 |
| a2A3536-9gmPRO | Color Adjustment 此功能不支援 |
| a2A3536-31ucBAS | BslColorAdjustmentEnable |
| a2A3536-31ucPRO | BslColorAdjustmentEnable |
| a2A3536-31umBAS | Color Adjustment 此功能不支援 |
| a2A3536-31umPRO | Color Adjustment 此功能不支援 |
| a2A3536-37mgc | BslColorAdjustmentEnable |
| a2A3536-37mgm | Color Adjustment 此功能不支援 |
| a2A3536-42g5cBAS | BslColorAdjustmentEnable |
| a2A3536-42g5mBAS | Color Adjustment 此功能不支援 |
| a2A3840-13gcBAS | BslColorAdjustmentEnable |
| a2A3840-13gcPRO | BslColorAdjustmentEnable |
| a2A3840-13gmBAS | Color Adjustment 此功能不支援 |
| a2A3840-13gmPRO | Color Adjustment 此功能不支援 |
| a2A3840-45ucBAS | BslColorAdjustmentEnable |
| a2A3840-45ucPRO | BslColorAdjustmentEnable |
| a2A3840-45umBAS | Color Adjustment 此功能不支援 |
| a2A3840-45umPRO | Color Adjustment 此功能不支援 |
| a2A4096-9gcBAS | BslColorAdjustmentEnable |
| a2A4096-9gcIP67 | BslColorAdjustmentEnable |
| a2A4096-9gcPRO | BslColorAdjustmentEnable |
| a2A4096-9gmBAS | Color Adjustment 此功能不支援 |
| a2A4096-9gmIP67 | Color Adjustment 此功能不支援 |
| a2A4096-9gmPRO | Color Adjustment 此功能不支援 |
| a2A4096-30ucBAS | BslColorAdjustmentEnable |
| a2A4096-30ucPRO | BslColorAdjustmentEnable |
| a2A4096-30umBAS | Color Adjustment 此功能不支援 |
| a2A4096-30umPRO | Color Adjustment 此功能不支援 |
| a2A4096-38mgc | BslColorAdjustmentEnable |
| a2A4096-38mgm | Color Adjustment 此功能不支援 |
| a2A4096-44g5cBAS | BslColorAdjustmentEnable |
| a2A4096-44g5mBAS | Color Adjustment 此功能不支援 |
| a2A4096-67cc | BslColorAdjustmentEnable |
| a2A4096-67cm | Color Adjustment 此功能不支援 |
| a2A4200-12gcBAS | BslColorAdjustmentEnable |
| a2A4200-12gcPRO | BslColorAdjustmentEnable |
| a2A4200-12gmBAS | Color Adjustment 此功能不支援 |
| a2A4200-12gmPRO | Color Adjustment 此功能不支援 |
| a2A4200-40ucBAS | BslColorAdjustmentEnable |
| a2A4200-40ucPRO | BslColorAdjustmentEnable |
| a2A4200-40umBAS | Color Adjustment 此功能不支援 |
| a2A4200-40umPRO | Color Adjustment 此功能不支援 |
| a2A4504-5gcBAS | BslColorAdjustmentEnable |
| a2A4504-5gcIP67 | BslColorAdjustmentEnable |
| a2A4504-5gcPRO | BslColorAdjustmentEnable |
| a2A4504-5gmBAS | Color Adjustment 此功能不支援 |
| a2A4504-5gmIP67 | Color Adjustment 此功能不支援 |
| a2A4504-5gmPRO | Color Adjustment 此功能不支援 |
| a2A4504-18ucBAS | BslColorAdjustmentEnable |
| a2A4504-18ucPRO | BslColorAdjustmentEnable |
| a2A4504-18umBAS | Color Adjustment 此功能不支援 |
| a2A4504-18umPRO | Color Adjustment 此功能不支援 |
| a2A4504-23mgc | BslColorAdjustmentEnable |
| a2A4504-23mgm | Color Adjustment 此功能不支援 |
| a2A4504-27g5cBAS | BslColorAdjustmentEnable |
| a2A4504-27g5mBAS | Color Adjustment 此功能不支援 |
| a2A4504-42cc | BslColorAdjustmentEnable |
| a2A4504-42cm | Color Adjustment 此功能不支援 |
| a2A4508-6gcBAS | BslColorAdjustmentEnable |
| a2A4508-6gcPRO | BslColorAdjustmentEnable |
| a2A4508-6gmBAS | Color Adjustment 此功能不支援 |
| a2A4508-6gmPRO | Color Adjustment 此功能不支援 |
| a2A4508-20ucBAS | BslColorAdjustmentEnable |
| a2A4508-20ucPRO | BslColorAdjustmentEnable |
| a2A4508-20umBAS | Color Adjustment 此功能不支援 |
| a2A4508-20umPRO | Color Adjustment 此功能不支援 |
| a2A5060-4gcBAS | BslColorAdjustmentEnable |
| a2A5060-4gmBAS | Color Adjustment 此功能不支援 |
| a2A5060-15ucBAS | BslColorAdjustmentEnable |
| a2A5060-15umBAS | Color Adjustment 此功能不支援 |
| a2A5060-21g5cBAS | BslColorAdjustmentEnable |
| a2A5060-21g5mBAS | Color Adjustment 此功能不支援 |
| a2A5060-35cc | BslColorAdjustmentEnable |
| a2A5060-35cm | Color Adjustment 此功能不支援 |
| a2A5320-7gcBAS | BslColorAdjustmentEnable |
| a2A5320-7gcIP67 | BslColorAdjustmentEnable |
| a2A5320-7gcPRO | BslColorAdjustmentEnable |
| a2A5320-7gmBAS | Color Adjustment 此功能不支援 |
| a2A5320-7gmPRO | Color Adjustment 此功能不支援 |
| a2A5320-7gmip67 | Color Adjustment 此功能不支援 |
| a2A5320-23ucBAS | BslColorAdjustmentEnable |
| a2A5320-23ucPRO | BslColorAdjustmentEnable |
| a2A5320-23umBAS | Color Adjustment 此功能不支援 |
| a2A5320-23umPRO | Color Adjustment 此功能不支援 |
| a2A5320-29mgc | BslColorAdjustmentEnable |
| a2A5320-29mgm | Color Adjustment 此功能不支援 |
| a2A5320-34g5cBAS | BslColorAdjustmentEnable |
| a2A5320-34g5mBAS | Color Adjustment 此功能不支援 |
| a2A5320-52cc | BslColorAdjustmentEnable |
| a2A5320-52cm | Color Adjustment 此功能不支援 |
| a2A5328-4gcBAS | BslColorAdjustmentEnable |
| a2A5328-4gcIP67 | BslColorAdjustmentEnable |
| a2A5328-4gcPRO | BslColorAdjustmentEnable |
| a2A5328-4gmBAS | Color Adjustment 此功能不支援 |
| a2A5328-4gmIP67 | Color Adjustment 此功能不支援 |
| a2A5328-4gmPRO | Color Adjustment 此功能不支援 |
| a2A5328-15ucBAS | BslColorAdjustmentEnable |
| a2A5328-15ucPRO | BslColorAdjustmentEnable |
| a2A5328-15umBAS | Color Adjustment 此功能不支援 |
| a2A5328-15umPRO | Color Adjustment 此功能不支援 |
| a2A5328-19mgc | BslColorAdjustmentEnable |
| a2A5328-19mgm | Color Adjustment 此功能不支援 |
| a2A5328-22g5cBAS | BslColorAdjustmentEnable |
| a2A5328-22g5mBAS | Color Adjustment 此功能不支援 |
| a2A5328-35cc | BslColorAdjustmentEnable |
| a2A5328-35cm | Color Adjustment 此功能不支援 |
| acA640-121gm | Color Adjustment 此功能不支援 |
| acA640-300gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA640-300gm | Color Adjustment 此功能不支援 |
| acA640-750uc | 無 |
| acA640-750um | Color Adjustment 此功能不支援 |
| acA720-290gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA720-290gm | Color Adjustment 此功能不支援 |
| acA720-520uc | 無 |
| acA720-520um | Color Adjustment 此功能不支援 |
| acA800-200gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA800-200gm | Color Adjustment 此功能不支援 |
| acA800-510uc | 無 |
| acA800-510um | Color Adjustment 此功能不支援 |
| acA1280-60gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1280-60gm | Color Adjustment 此功能不支援 |
| acA1300-60gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1300-60gm | Color Adjustment 此功能不支援 |
| acA1300-60gmNIR | Color Adjustment 此功能不支援 |
| acA1300-75gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1300-75gm | Color Adjustment 此功能不支援 |
| acA1300-200uc | 無 |
| acA1300-200um | Color Adjustment 此功能不支援 |
| acA1440-73gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1440-73gm | Color Adjustment 此功能不支援 |
| acA1440-220uc | 無 |
| acA1440-220um | Color Adjustment 此功能不支援 |
| acA1600-60gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1600-60gm | Color Adjustment 此功能不支援 |
| acA1920-25gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1920-25gm | Color Adjustment 此功能不支援 |
| acA1920-25uc | 無 |
| acA1920-25um | Color Adjustment 此功能不支援 |
| acA1920-40gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1920-40gm | Color Adjustment 此功能不支援 |
| acA1920-40uc | 無 |
| acA1920-40ucMED | 無 |
| acA1920-40um | Color Adjustment 此功能不支援 |
| acA1920-40umMED | Color Adjustment 此功能不支援 |
| acA1920-48gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1920-48gm | Color Adjustment 此功能不支援 |
| acA1920-50gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA1920-50gm | Color Adjustment 此功能不支援 |
| acA1920-150uc | 無 |
| acA1920-150um | Color Adjustment 此功能不支援 |
| acA1920-155uc | 無 |
| acA1920-155ucMED | 無 |
| acA1920-155um | Color Adjustment 此功能不支援 |
| acA1920-155umMED | Color Adjustment 此功能不支援 |
| acA2000-50gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA2000-50gm | Color Adjustment 此功能不支援 |
| acA2000-165uc | Color Adjustment 此功能不支援 |
| acA2000-165um | Color Adjustment 此功能不支援 |
| acA2040-25gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA2040-25gm | Color Adjustment 此功能不支援 |
| acA2040-25gmNIR | Color Adjustment 此功能不支援 |
| acA2040-35gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA2040-35gm | Color Adjustment 此功能不支援 |
| acA2040-55uc | 無 |
| acA2040-55um | Color Adjustment 此功能不支援 |
| acA2040-90uc | Color Adjustment 此功能不支援 |
| acA2040-90um | Color Adjustment 此功能不支援 |
| acA2040-90umNIR | Color Adjustment 此功能不支援 |
| acA2040-120uc | 無 |
| acA2040-120um | Color Adjustment 此功能不支援 |
| acA2440-20gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA2440-20gm | Color Adjustment 此功能不支援 |
| acA2440-35uc | 無 |
| acA2440-35ucMED | 無 |
| acA2440-35um | Color Adjustment 此功能不支援 |
| acA2440-35umMED | Color Adjustment 此功能不支援 |
| acA2440-75uc | 無 |
| acA2440-75ucMED | 無 |
| acA2440-75um | Color Adjustment 此功能不支援 |
| acA2440-75umMED | Color Adjustment 此功能不支援 |
| acA2500-14gc | Color Adjustment 此功能不支援 |
| acA2500-14gm | Color Adjustment 此功能不支援 |
| acA2500-14uc | 無 |
| acA2500-14um | Color Adjustment 此功能不支援 |
| acA2500-20gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA2500-20gcMED | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA2500-20gm | Color Adjustment 此功能不支援 |
| acA2500-20gmMED | Color Adjustment 此功能不支援 |
| acA2500-60uc | 無 |
| acA2500-60um | Color Adjustment 此功能不支援 |
| acA3088-16gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA3088-16gm | Color Adjustment 此功能不支援 |
| acA3088-57uc | 無 |
| acA3088-57ucMED | 無 |
| acA3088-57um | Color Adjustment 此功能不支援 |
| acA3088-57umMED | Color Adjustment 此功能不支援 |
| acA3800-10gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA3800-10gm | Color Adjustment 此功能不支援 |
| acA3800-14uc | 無 |
| acA3800-14um | Color Adjustment 此功能不支援 |
| acA4024-8gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA4024-8gm | Color Adjustment 此功能不支援 |
| acA4024-29uc | 無 |
| acA4024-29um | Color Adjustment 此功能不支援 |
| acA4096-11gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA4096-11gm | Color Adjustment 此功能不支援 |
| acA4096-30uc | 無 |
| acA4096-30ucMED | 無 |
| acA4096-30um | Color Adjustment 此功能不支援 |
| acA4096-30umMED | Color Adjustment 此功能不支援 |
| acA4096-40uc | 無 |
| acA4096-40ucMED | 無 |
| acA4096-40um | Color Adjustment 此功能不支援 |
| acA4096-40umMED | Color Adjustment 此功能不支援 |
| acA4112-8gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA4112-8gm | Color Adjustment 此功能不支援 |
| acA4112-20uc | 無 |
| acA4112-20ucMED | 無 |
| acA4112-20um | Color Adjustment 此功能不支援 |
| acA4112-20umMED | Color Adjustment 此功能不支援 |
| acA4112-30uc | 無 |
| acA4112-30ucMED | 無 |
| acA4112-30um | Color Adjustment 此功能不支援 |
| acA4112-30umMED | Color Adjustment 此功能不支援 |
| acA5472-5gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
| acA5472-5gm | Color Adjustment 此功能不支援 |
| acA5472-17uc | 無 |
| acA5472-17ucMED | 無 |
| acA5472-17um | Color Adjustment 此功能不支援 |
| acA5472-17umMED | Color Adjustment 此功能不支援 |
| boA1936-400cc | BslColorAdjustmentEnable |
| boA1936-400cm | Color Adjustment 此功能不支援 |
| boA2448-250cc | BslColorAdjustmentEnable |
| boA2448-250cm | Color Adjustment 此功能不支援 |
| boA2832-190cc | BslColorAdjustmentEnable |
| boA2832-190cm | Color Adjustment 此功能不支援 |
| boA4096-93cc | BslColorAdjustmentEnable |
| boA4096-93cm | Color Adjustment 此功能不支援 |
| boA4096-180cc | BslColorAdjustmentEnable |
| boA4096-180cm | Color Adjustment 此功能不支援 |
| boA4112-68cc | BslColorAdjustmentEnable |
| boA4112-68cm | Color Adjustment 此功能不支援 |
| boA4500-45cc | BslColorAdjustmentEnable |
| boA4500-45cm | Color Adjustment 此功能不支援 |
| boA4504-100cc | BslColorAdjustmentEnable |
| boA4504-100cm | Color Adjustment 此功能不支援 |
| boA5056-95cm | Color Adjustment 此功能不支援 |
| boA5120-150cc | Color Adjustment 此功能不支援 |
| boA5120-150cm | Color Adjustment 此功能不支援 |
| boA5120-230cc | Color Adjustment 此功能不支援 |
| boA5120-230cm | Color Adjustment 此功能不支援 |
| boA5320-150cc | BslColorAdjustmentEnable |
| boA5320-150cm | Color Adjustment 此功能不支援 |
| boA5328-100cc | BslColorAdjustmentEnable |
| boA5328-100cm | Color Adjustment 此功能不支援 |
| boA6500-36cc | BslColorAdjustmentEnable |
| boA6500-36cm | Color Adjustment 此功能不支援 |
| boA8100-16cc | BslColorAdjustmentEnable |
| boA8100-16cm | Color Adjustment 此功能不支援 |
| boA9344-30cc | Color Adjustment 此功能不支援 |
| boA9344-30cm | Color Adjustment 此功能不支援 |
| boA9344-70cc | Color Adjustment 此功能不支援 |
| boA9344-70cm | Color Adjustment 此功能不支援 |
| boA13440-17cm | Color Adjustment 此功能不支援 |
| daA720-520uc | Color Adjustment 此功能不支援 |
| daA720-520um | Color Adjustment 此功能不支援 |
| daA1280-54uc | Color Adjustment 此功能不支援 |
| daA1280-54um | Color Adjustment 此功能不支援 |
| daA1440-220uc | Color Adjustment 此功能不支援 |
| daA1440-220um | Color Adjustment 此功能不支援 |
| daA1600-60uc | Color Adjustment 此功能不支援 |
| daA1600-60um | Color Adjustment 此功能不支援 |
| daA1920-15um | Color Adjustment 此功能不支援 |
| daA1920-30uc | Color Adjustment 此功能不支援 |
| daA1920-30um | Color Adjustment 此功能不支援 |
| daA1920-160uc | Color Adjustment 此功能不支援 |
| daA1920-160um | Color Adjustment 此功能不支援 |
| daA2448-70uc | Color Adjustment 此功能不支援 |
| daA2448-70um | Color Adjustment 此功能不支援 |
| daA2500-14uc | Color Adjustment 此功能不支援 |
| daA2500-14um | Color Adjustment 此功能不支援 |
| daA3840-45uc | Color Adjustment 此功能不支援 |
| daA3840-45um | Color Adjustment 此功能不支援 |
| dmA720-290gc | BslColorAdjustmentEnable |
| dmA720-290gm | Color Adjustment 此功能不支援 |
| dmA1440-73gc | BslColorAdjustmentEnable |
| dmA1440-73gm | Color Adjustment 此功能不支援 |
| dmA1920-51gc | BslColorAdjustmentEnable |
| dmA1920-51gm | Color Adjustment 此功能不支援 |
| dmA2048-37gc | BslColorAdjustmentEnable |
| dmA2048-37gm | Color Adjustment 此功能不支援 |
| dmA2448-23gc | BslColorAdjustmentEnable |
| dmA2448-23gm | Color Adjustment 此功能不支援 |
| dmA2840-14gc | BslColorAdjustmentEnable |
| dmA2840-14gm | Color Adjustment 此功能不支援 |
| dmA3536-9gc | BslColorAdjustmentEnable |
| dmA3536-9gm | Color Adjustment 此功能不支援 |
| dmA4096-9gc | BslColorAdjustmentEnable |
| dmA4096-9gm | Color Adjustment 此功能不支援 |
| puA1280-54uc | Color Adjustment 此功能不支援 |
| puA1280-54um | Color Adjustment 此功能不支援 |
| puA1600-60uc | Color Adjustment 此功能不支援 |
| puA1600-60um | Color Adjustment 此功能不支援 |
| puA1920-30uc | Color Adjustment 此功能不支援 |
| puA1920-30um | Color Adjustment 此功能不支援 |
| puA2500-14uc | Color Adjustment 此功能不支援 |
| puA2500-14um | Color Adjustment 此功能不支援 |
| r2L2048-29gc | BslColorAdjustmentEnable |
| r2L2048-58gm | Color Adjustment 此功能不支援 |
| r2L2048-62cc | BslColorAdjustmentEnable |
| r2L2048-62g5c | BslColorAdjustmentEnable |
| r2L2048-172cm | Color Adjustment 此功能不支援 |
| r2L2048-172g5m | Color Adjustment 此功能不支援 |
| r2L4096-14gc | BslColorAdjustmentEnable |
| r2L4096-29gm | Color Adjustment 此功能不支援 |
| r2L4096-42cc | BslColorAdjustmentEnable |
| r2L4096-42g5c | BslColorAdjustmentEnable |
| r2L4096-84cm | Color Adjustment 此功能不支援 |
| r2L4096-84g5m | Color Adjustment 此功能不支援 |
| r2L8192-80cc | BslColorAdjustmentEnable |
| r2L8192-240cm | Color Adjustment 此功能不支援 |
| r2L16384-60cc | BslColorAdjustmentEnable |
| r2L16384-120cm | Color Adjustment 此功能不支援 |
| r2T16416-500cm | Color Adjustment 此功能不支援 |
範例程式碼#
ace Classic/U/L GigE 相機#
// Enable the Color Adjustment feature
camera.ColorAdjustmentEnable.SetValue(true);
// Select red as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Enter a floating point value for the red hue
camera.ColorAdjustmentHue.SetValue(-1.125);
// Enter a floating point value for the red saturation
camera.ColorAdjustmentSaturation.SetValue(1.375);
// Select cyan as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Cyan);
// Enter an integer value for the cyan hue
camera.ColorAdjustmentHueRaw.SetValue(-36);
// Enter an integer value for the cyan saturation
camera.ColorAdjustmentSaturationRaw.SetValue(176);
INodeMap& nodemap = camera.GetNodeMap();
// Enable the Color Adjustment feature
CBooleanParameter(nodemap, "ColorAdjustmentEnable").SetValue(true);
// Select red as the color to adjust
CEnumParameter(nodemap, "ColorAdjustmentSelector").SetValue("Red");
// Enter a floating point value for the red hue
CFloatParameter(nodemap, "ColorAdjustmentHue").SetValue(-1.125);
// Enter a floating point value for the red saturation
CFloatParameter(nodemap, "ColorAdjustmentSaturation").SetValue(1.375);
// Select cyan as the color to adjust
CEnumParameter(nodemap, "ColorAdjustmentSelector").SetValue("Cyan");
// Enter an integer value for the cyan hue
CIntegerParameter(nodemap, "ColorAdjustmentHueRaw").SetValue(-36);
// Enter an integer value for the cyan saturation
CIntegerParameter(nodemap, "ColorAdjustmentSaturationRaw").SetValue(176);
// Enable the Color Adjustment feature
camera.Parameters[PLCamera.ColorAdjustmentEnable].SetValue(true);
// Select red as the color to adjust
camera.Parameters[PLCamera.ColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Red);
// Enter a floating point value for the red hue
camera.Parameters[PLCamera.ColorAdjustmentHue].SetValue(-1.125);
// Enter a floating point value for the red saturation
camera.Parameters[PLCamera.ColorAdjustmentSaturation].SetValue(1.375);
// Select cyan as the color to adjust
camera.Parameters[PLCamera.ColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Cyan);
// Enter an integer value for the cyan hue
camera.Parameters[PLCamera.ColorAdjustmentHueRaw].SetValue(-36);
// Enter an integer value for the cyan saturation
camera.Parameters[PLCamera.ColorAdjustmentSaturationRaw].SetValue(176);
/* 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 Color Adjustment feature */
errRes = PylonDeviceSetBooleanFeature(hdev, "ColorAdjustmentEnable", 1);
CHECK(errRes);
/* Select red as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Red");
CHECK(errRes);
/* Enter a floating point value for the red hue */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentHue", -1.125);
CHECK(errRes);
/* Enter a floating point value for the red saturation */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentSaturation", 1.375);
CHECK(errRes);
/* Select cyan as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Cyan");
CHECK(errRes);
/* Enter an integer value for the cyan hue */
errRes = PylonDeviceSetIntegerFeature(hdev, "ColorAdjustmentHueRaw", -36);
CHECK(errRes);
/* Enter an integer value for the cyan saturation */
errRes = PylonDeviceSetIntegerFeature(hdev, "ColorAdjustmentSaturationRaw", 176);
CHECK(errRes);
# Enable the Color Adjustment feature
camera.ColorAdjustmentEnable.Value = True
# Select red as the color to adjust
camera.ColorAdjustmentSelector.Value = "Red"
# Enter a floating point value for the red hue
camera.ColorAdjustmentHue.Value = -1.125
# Enter a floating point value for the red saturation
camera.ColorAdjustmentSaturation.Value = 1.375
# Select cyan as the color to adjust
camera.ColorAdjustmentSelector.Value = "Cyan"
# Enter an integer value for the cyan hue
camera.ColorAdjustmentHueRaw.Value = -36
# Enter an integer value for the cyan saturation
camera.ColorAdjustmentSaturationRaw.Value = 176
ace 2、boost 和 dart R 相機#
// Select red as the color to adjust
camera.BslColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Enter an integer value for the red hue
camera.BslColorAdjustmentHue.SetValue(-1.125);
// Enter an integer value for the red saturation
camera.BslColorAdjustmentSaturation.SetValue(1.375);
INodeMap& nodemap = camera.GetNodeMap();
// Select red as the color to adjust
CEnumParameter(nodemap, "BslColorAdjustmentSelector").SetValue("Red");
// Enter an integer value for the red hue
CFloatParameter(nodemap, "BslColorAdjustmentHue").SetValue(-1.125);
// Enter an integer value for the red saturation
CFloatParameter(nodemap, "BslColorAdjustmentSaturation").SetValue(1.375);
// Select red as the color to adjust
camera.Parameters[PLCamera.BslColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Red);
// Enter an integer value for the red hue
camera.Parameters[PLCamera.BslColorAdjustmentHue].SetValue(-1.125);
// Enter an integer value for the red saturation
camera.Parameters[PLCamera.BslColorAdjustmentSaturation].SetValue(1.375);
/* 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 */
/* Select red as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "BslColorAdjustmentSelector", "Red");
CHECK(errRes);
/* Enter an integer value for the red hue */
errRes = PylonDeviceSetFloatFeature(hdev, "BslColorAdjustmentHue", -1.125);
CHECK(errRes);
/* Enter an integer value for the red saturation */
errRes = PylonDeviceSetFloatFeature(hdev, "BslColorAdjustmentSaturation", 1.375);
CHECK(errRes);
其他相機#
INodeMap& nodemap = camera.GetNodeMap();
// Select red as the color to adjust
CEnumParameter(nodemap, "ColorAdjustmentSelector").SetValue("Red");
// Enter an integer value for the red hue
CFloatParameter(nodemap, "ColorAdjustmentHue").SetValue(-1.125);
// Enter an integer value for the red saturation
CFloatParameter(nodemap, "ColorAdjustmentSaturation").SetValue(1.375);
// Select red as the color to adjust
camera.Parameters[PLCamera.ColorAdjustmentSelector].SetValue(PLCamera.ColorAdjustmentSelector.Red);
// Enter an integer value for the red hue
camera.Parameters[PLCamera.ColorAdjustmentHue].SetValue(-1.125);
// Enter an integer value for the red saturation
camera.Parameters[PLCamera.ColorAdjustmentSaturation].SetValue(1.375);
/* 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 */
/* Select red as the color to adjust */
errRes = PylonDeviceFeatureFromString(hdev, "ColorAdjustmentSelector", "Red");
CHECK(errRes);
/* Enter an integer value for the red hue */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentHue", -1.125);
CHECK(errRes);
/* Enter an integer value for the red saturation */
errRes = PylonDeviceSetFloatFeature(hdev, "ColorAdjustmentSaturation", 1.375);
CHECK(errRes);
您也可以 use the pylon Viewer 來輕鬆設定參數。