Color Adjustment#
RGB色空間(赤、緑、青、黄、シアン、マゼンタ)のプライマリカラーとセカンダリカラーごとに、色相と彩度を個別に調整できます。
すべての色の様相を1つのステップで調整する場合は、Hue and Saturation機能を使用します(使用可能な場合)。
機能を使用する#
Color Adjustmentを使用する理由#
- 色相を調整すると、画像の色がシフトします。これは、ちょっとした望ましくないカラーシフトを修正したり、偽色画像を作成したりする場合などに便利です。
- 彩度を調整すると、色の彩度(輝度)が変わります。彩度を上げると、色を区別しやすくなります。
Color Adjustmentパラメーターの設定#
ProcessedRawEnable
パラメーターをtrue
に設定します(使用可能でベイヤーのピクセルフォーマットを使用している場合)。ColorAdjustmentEnable
パラメーターをtrue
に設定します(使用可能な場合)。ColorAdjustmentSelector
パラメーターを目的の色(Red
など)に設定します。ColorAdjustmentHue
パラメーターに必要な値を入力します。パラメーターを0に設定すると、色相は変更されません。ColorAdjustmentSaturation
パラメーターに必要な値を入力します。パラメーターを1に設定すると、彩度は変更されません。
仕組み#
Color Adjustment機能のパラメーターは、RGBカラーキューブを参照します。
見やすくするために、カラーキューブを平面に投影して、6色相環にすることができます。
この6色相環の角には、プライマリカラー(赤、緑、青)とセカンダリカラー(黄、シアン、マゼンタ)が配置されます。
これらの色ごとに色相と彩度を調整できます。これは、調整された色の成分が多い、画像内のすべての領域に影響します。例えば、赤を調整すると、画像内の赤の成分が多いコンポーネントの色に影響します。
次の図は、赤の色相と彩度を変更すると、画像の色にどのような影響があるかを示します。
次のような効果が見られます。
ColorAdjustmentHue
パラメーターの値の範囲が-4.0~3.96875の場合:
- 色相を下げると、すべての赤の色(つまり、赤の成分が多い色)が黄色寄りになります。
- 色相を大きくすると、すべての赤がマゼンタ寄りになります。
ColorAdjustmentHue
パラメーターの値の範囲が-1.0~1.0の場合:
- 色相を上げると、すべての赤の色(つまり、赤の成分が多い色)が黄色寄りになります。
- 色相を下げると、すべての赤がマゼンタ寄りになります。
彩度を下げると、すべての赤色の彩度が下がります。最小値では、すべての赤色はグレーに置き換えられます。
彩度を上げると、すべての赤色の彩度が上がります。最大値では、すべての赤色は100%赤に置き換えられます。
情報
色を調整すると、6色相環の最近接色もある程度影響を受けます。例えば、赤を調整した場合、黄とマゼンタも影響を受けます。
追加パラメーター#
カメラのモデルに応じて、次の追加パラメーターを使用できます。
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に相当します。
特性#
カメラモデル | 追加パラメーター |
---|---|
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機能はサポートされていません |
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機能はサポートされていません |
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機能はサポートされていません |
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機能はサポートされていません |
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機能はサポートされていません |
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機能はサポートされていません |
acA640-90gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA640-90gm | Color Adjustment機能はサポートされていません |
acA640-90uc | None |
acA640-90um | Color Adjustment機能はサポートされていません |
acA640-120gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA640-120gm | Color Adjustment機能はサポートされていません |
acA640-120uc | None |
acA640-120um | Color Adjustment機能はサポートされていません |
acA640-121gm | Color Adjustment機能はサポートされていません |
acA640-300gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA640-300gm | Color Adjustment機能はサポートされていません |
acA640-750uc | None |
acA640-750um | Color Adjustment機能はサポートされていません |
acA720-290gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA720-290gm | Color Adjustment機能はサポートされていません |
acA720-520uc | None |
acA720-520um | Color Adjustment機能はサポートされていません |
acA780-75gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA780-75gm | Color Adjustment機能はサポートされていません |
acA800-200gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA800-200gm | Color Adjustment機能はサポートされていません |
acA800-510uc | None |
acA800-510um | Color Adjustment機能はサポートされていません |
acA1280-60gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1280-60gm | Color Adjustment機能はサポートされていません |
acA1300-22gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1300-22gm | Color Adjustment機能はサポートされていません |
acA1300-30gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1300-30gm | Color Adjustment機能はサポートされていません |
acA1300-30uc | None |
acA1300-30um | 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 | None |
acA1300-200um | Color Adjustment機能はサポートされていません |
acA1440-73gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1440-73gm | Color Adjustment機能はサポートされていません |
acA1440-220uc | None |
acA1440-220um | Color Adjustment機能はサポートされていません |
acA1600-20gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1600-20gm | Color Adjustment機能はサポートされていません |
acA1600-20uc | None |
acA1600-20um | 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 | None |
acA1920-25um | Color Adjustment機能はサポートされていません |
acA1920-40gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA1920-40gm | Color Adjustment機能はサポートされていません |
acA1920-40uc | None |
acA1920-40ucMED | None |
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 | None |
acA1920-150um | Color Adjustment機能はサポートされていません |
acA1920-155uc | None |
acA1920-155ucMED | None |
acA1920-155um | Color Adjustment機能はサポートされていません |
acA1920-155umMED | Color Adjustment機能はサポートされていません |
acA2000-50gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA2000-50gm | Color Adjustment機能はサポートされていません |
acA2000-50gmNIR | Color Adjustment機能はサポートされていません |
acA2000-165uc | Color Adjustment機能はサポートされていません |
acA2000-165um | Color Adjustment機能はサポートされていません |
acA2000-165umNIR | 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 | None |
acA2040-55um | Color Adjustment機能はサポートされていません |
acA2040-90uc | Color Adjustment機能はサポートされていません |
acA2040-90um | Color Adjustment機能はサポートされていません |
acA2040-90umNIR | Color Adjustment機能はサポートされていません |
acA2040-120uc | None |
acA2040-120um | Color Adjustment機能はサポートされていません |
acA2440-20gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA2440-20gm | Color Adjustment機能はサポートされていません |
acA2440-35uc | None |
acA2440-35ucMED | None |
acA2440-35um | Color Adjustment機能はサポートされていません |
acA2440-35umMED | Color Adjustment機能はサポートされていません |
acA2440-75uc | None |
acA2440-75ucMED | None |
acA2440-75um | Color Adjustment機能はサポートされていません |
acA2440-75umMED | Color Adjustment機能はサポートされていません |
acA2500-14gc | Color Adjustment機能はサポートされていません |
acA2500-14gm | Color Adjustment機能はサポートされていません |
acA2500-14uc | None |
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 | None |
acA2500-60um | Color Adjustment機能はサポートされていません |
acA3088-16gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA3088-16gm | Color Adjustment機能はサポートされていません |
acA3088-57uc | None |
acA3088-57ucMED | None |
acA3088-57um | Color Adjustment機能はサポートされていません |
acA3088-57umMED | Color Adjustment機能はサポートされていません |
acA3800-10gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA3800-10gm | Color Adjustment機能はサポートされていません |
acA3800-14uc | None |
acA3800-14um | Color Adjustment機能はサポートされていません |
acA4024-8gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA4024-8gm | Color Adjustment機能はサポートされていません |
acA4024-29uc | None |
acA4024-29um | Color Adjustment機能はサポートされていません |
acA4096-11gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA4096-11gm | Color Adjustment機能はサポートされていません |
acA4096-30uc | None |
acA4096-30ucMED | None |
acA4096-30um | Color Adjustment機能はサポートされていません |
acA4096-30umMED | Color Adjustment機能はサポートされていません |
acA4096-40uc | None |
acA4096-40ucMED | None |
acA4096-40um | Color Adjustment機能はサポートされていません |
acA4096-40umMED | Color Adjustment機能はサポートされていません |
acA4112-8gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA4112-8gm | Color Adjustment機能はサポートされていません |
acA4112-20uc | None |
acA4112-20ucMED | None |
acA4112-20um | Color Adjustment機能はサポートされていません |
acA4112-20umMED | Color Adjustment機能はサポートされていません |
acA4112-30uc | None |
acA4112-30ucMED | None |
acA4112-30um | Color Adjustment機能はサポートされていません |
acA4112-30umMED | Color Adjustment機能はサポートされていません |
acA4600-7gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA4600-10uc | None |
acA5472-5gc | ColorAdjustmentEnable[^a] ColorAdjustmentReset ColorAdjustmentHueRaw ColorAdjustmentSaturationRaw |
acA5472-5gm | Color Adjustment機能はサポートされていません |
acA5472-17uc | None |
acA5472-17ucMED | None |
acA5472-17um | Color Adjustment機能はサポートされていません |
acA5472-17umMED | Color Adjustment機能はサポートされていません |
boA4096-93cc | BslColorAdjustmentEnable |
boA4096-93cm | Color Adjustment機能はサポートされていません |
boA4112-68cc | BslColorAdjustmentEnable |
boA4112-68cm | Color Adjustment機能はサポートされていません |
boA4500-45cc | BslColorAdjustmentEnable |
boA4500-45cm | Color Adjustment機能はサポートされていません |
boA6500-36cc | BslColorAdjustmentEnable |
boA6500-36cm | Color Adjustment機能はサポートされていません |
boA8100-16cc | BslColorAdjustmentEnable |
boA8100-16cm | Color Adjustment機能はサポートされていません |
daA1280-54lc | Color Adjustment機能はサポートされていません |
daA1280-54lm | Color Adjustment機能はサポートされていません |
daA1280-54uc | Color Adjustment機能はサポートされていません |
daA1280-54um | Color Adjustment機能はサポートされていません |
daA1600-60lc | Color Adjustment機能はサポートされていません |
daA1600-60lm | 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機能はサポートされていません |
daA2500-14lc | Color Adjustment機能はサポートされていません |
daA2500-14lm | Color Adjustment機能はサポートされていません |
daA2500-14uc | Color Adjustment機能はサポートされていません |
daA2500-14um | Color Adjustment機能はサポートされていません |
daA3840-45uc | Color Adjustment機能はサポートされていません |
daA3840-45um | 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機能はサポートされていません |
サンプルコード#
ace Classic/U/L GigE Cameras#
// 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);
ace 2およびboostカメラ#
// 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);
その他のカメラ#
// Select red as the color to adjust
camera.ColorAdjustmentSelector.SetValue(ColorAdjustmentSelector_Red);
// Enter an integer value for the red hue
camera.ColorAdjustmentHue.SetValue(-1.125);
// Enter an integer value for the red saturation
camera.ColorAdjustmentSaturation.SetValue(1.375);
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を使用して、パラメーターを簡単に設定することもできます。