Color Adjustment#
您可以分别为 RGB 色彩空间(红、绿、蓝、黄、青和品红)中的每种原色和辅助色调整色相和饱和度。
如果要一步调整所有颜色的外观,请使用 Hue and Saturation 功能(如果有)。
该功能的使用#
为什么使用 Color Adjustment#
- 调整色相可偏移图像的色彩。例如,这对于校正较小的不良色移或创建伪彩色图像很有用。
- 调整饱和度可更改色彩的鲜艳程度(强度)。增加饱和度有助于使颜色更容易区分。
设置 Color Adjustment 参数#
- 将
ProcessedRawEnable
参数设置为true
(如果可用且如果您采用的是 Bayer 像素格式)。 - 将
ColorAdjustmentEnable
参数设置为true
(如果可用)。 - 将
ColorAdjustmentSelector
参数设置为所需颜色,例如红色
。 - 输入
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-51gcPRO | BslColorAdjustmentEnable |
a2A1920-51gmBAS | 不支持 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 功能 |
a2A2048-35gmSWIR | 不支持 Color Adjustment 功能 |
a2A2048-110umSWIR | 不支持 Color Adjustment 功能 |
a2A2440-98g5cBAS | BslColorAdjustmentEnable |
a2A2440-98g5mBAS | 不支持 Color Adjustment 功能 |
a2A2448-23gcBAS | BslColorAdjustmentEnable |
a2A2448-23gcPRO | BslColorAdjustmentEnable |
a2A2448-23gmBAS | 不支持 Color Adjustment 功能 |
a2A2448-23gmPRO | 不支持 Color Adjustment 功能 |
a2A2448-75ucBAS | BslColorAdjustmentEnable |
a2A2448-75ucPRO | BslColorAdjustmentEnable |
a2A2448-75umBAS | 不支持 Color Adjustment 功能 |
a2A2448-75umPRO | 不支持 Color Adjustment 功能 |
a2A2448-105g5cBAS | BslColorAdjustmentEnable |
a2A2448-105g5mBAS | 不支持 Color Adjustment 功能 |
a2A2448-120cc | BslColorAdjustmentEnable |
a2A2448-120cm | 不支持 Color Adjustment 功能 |
a2A2448-210cc | BslColorAdjustmentEnable |
a2A2448-210cm | 不支持 Color Adjustment 功能 |
a2A2560-20gmSWIR | 不支持 Color Adjustment 功能 |
a2A2560-70umSWIR | 不支持 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-14gcPRO | BslColorAdjustmentEnable |
a2A2840-14gmBAS | 不支持 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-67g5cBAS | BslColorAdjustmentEnable |
a2A2840-67g5mBAS | 不支持 Color Adjustment 功能 |
a2A2840-67g5mUV | 不支持 Color Adjustment 功能 |
a2A2840-86cc | BslColorAdjustmentEnable |
a2A2840-86cm | 不支持 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-9gcPRO | BslColorAdjustmentEnable |
a2A4096-9gmBAS | 不支持 Color Adjustment 功能 |
a2A4096-9gmPRO | 不支持 Color Adjustment 功能 |
a2A4096-30ucBAS | BslColorAdjustmentEnable |
a2A4096-30ucPRO | BslColorAdjustmentEnable |
a2A4096-30umBAS | 不支持 Color Adjustment 功能 |
a2A4096-30umPRO | 不支持 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-5gcPRO | BslColorAdjustmentEnable |
a2A4504-5gmBAS | 不支持 Color Adjustment 功能 |
a2A4504-5gmPRO | 不支持 Color Adjustment 功能 |
a2A4504-18ucBAS | BslColorAdjustmentEnable |
a2A4504-18ucPRO | BslColorAdjustmentEnable |
a2A4504-18umBAS | 不支持 Color Adjustment 功能 |
a2A4504-18umPRO | 不支持 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 功能 |
a2A5320-7gcBAS | BslColorAdjustmentEnable |
a2A5320-7gcPRO | BslColorAdjustmentEnable |
a2A5320-7gmBAS | 不支持 Color Adjustment 功能 |
a2A5320-7gmPRO | 不支持 Color Adjustment 功能 |
a2A5320-23ucBAS | BslColorAdjustmentEnable |
a2A5320-23ucPRO | BslColorAdjustmentEnable |
a2A5320-23umBAS | 不支持 Color Adjustment 功能 |
a2A5320-23umPRO | 不支持 Color Adjustment 功能 |
a2A5320-34g5cBAS | BslColorAdjustmentEnable |
a2A5320-34g5mBAS | 不支持 Color Adjustment 功能 |
a2A5320-52cc | BslColorAdjustmentEnable |
a2A5320-52cm | 不支持 Color Adjustment 功能 |
a2A5328-4gcBAS | BslColorAdjustmentEnable |
a2A5328-4gcPRO | BslColorAdjustmentEnable |
a2A5328-4gmBAS | 不支持 Color Adjustment 功能 |
a2A5328-4gmPRO | 不支持 Color Adjustment 功能 |
a2A5328-15ucBAS | BslColorAdjustmentEnable |
a2A5328-15ucPRO | BslColorAdjustmentEnable |
a2A5328-15umBAS | 不支持 Color Adjustment 功能 |
a2A5328-15umPRO | 不支持 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-20gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1600-20uc | 无 |
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 |
bo2448-250cm | 不支持 Color Adjustment 功能 |
boA2832-190cc | BslColorAdjustmentEnable |
bo2832-190cm | 不支持 Color Adjustment 功能 |
boA4096-93cc | BslColorAdjustmentEnable |
boA4096-93cm | 不支持 Color Adjustment 功能 |
boA4096-180cc | BslColorAdjustmentEnable |
bo4096-180cm | 不支持 Color Adjustment 功能 |
boA4112-68cc | BslColorAdjustmentEnable |
boA4112-68cm | 不支持 Color Adjustment 功能 |
boA4500-45cc | BslColorAdjustmentEnable |
boA4500-45cm | 不支持 Color Adjustment 功能 |
boA4504-100cc | BslColorAdjustmentEnable |
boA4504-100cm | 不支持 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 功能 |
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-200cm | 不支持 Color Adjustment 功能 |
r2L16384-120cm | 不支持 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, and dart R Cameras#
// 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);
您也可以使用 pylon Viewer 轻松设置参数。