EColorLookup::AdjustGainOffset
Sets a color transformation such that a gain and offset is applied separately to each color component of a target color system.
Namespace: Euresys::Open_eVision
[C++]
void AdjustGainOffset(
Euresys::Open_eVision::EColorSystem colorSystem,
float gain0,
float offset0,
float gain1,
float offset1,
float gain2,
float offset2
)
Parameters
colorSystem
Target color system, as defined by EColorSystem.
gain0
Gain to be applied to color component 0.
offset0
Offset to be applied to color component 0.
gain1
Gain to be applied to color component 1.
offset1
Offset to be applied to color component 1.
gain2
Gain to be applied to color component 2.
offset2
Offset to be applied to color component 2.
Remarks
The input and output color systems are both EColorSystem_Rgb. To apply some transform to a color image, you initialize a color lookup once for all and use it at will in a transformation operation such as EColorLookup::Transform.
Note. The offsets are specified as unquantized values.
EColorLookup.AdjustGainOffset
Sets a color transformation such that a gain and offset is applied separately to each color component of a target color system.
Namespace: Euresys.Open_eVision
[C#]
void AdjustGainOffset(
Euresys.Open_eVision.EColorSystem colorSystem,
float gain0,
float offset0,
float gain1,
float offset1,
float gain2,
float offset2
)
Parameters
colorSystem
Target color system, as defined by EColorSystem.
gain0
Gain to be applied to color component 0.
offset0
Offset to be applied to color component 0.
gain1
Gain to be applied to color component 1.
offset1
Offset to be applied to color component 1.
gain2
Gain to be applied to color component 2.
offset2
Offset to be applied to color component 2.
Remarks
The input and output color systems are both Rgb. To apply some transform to a color image, you initialize a color lookup once for all and use it at will in a transformation operation such as EColorLookup::Transform.
Note. The offsets are specified as unquantized values.