Impact Acquire SDK C++
|
Properties for configuring settings belonging to a certain LUT (Look Up Table) to be applied to a captured image. More...
#include <mvIMPACT_acquire.h>
Public Member Functions | |
HOBJ | hObj (void) const |
Returns a unique identifier for the component collection referenced by this object. | |
const ComponentCollection & | restoreDefault (void) const |
Restores the default for every component of this collection. | |
Public Attributes | |
PropertyI | directValues |
An integer property which can be used to directly define a LUT. | |
PropertyF | gamma |
A float property which can be used to set the gamma value. | |
PropertyF | gammaAlpha |
A float property which can be used to set the gammaAlpha value. | |
PropertyIBoolean | gammaInverter |
An enumerated integer property defining whether the calculated gamma correction function shall be inverted or not. | |
PropertyILUTGammaMode | gammaMode |
An enumerated integer property which can be used to configure the LUT(Look Up Table) gamma mode. | |
PropertyI | gammaStartThreshold |
An integer property which can be used to define a start threshold above which the gamma correction formula shall be used in mvIMPACT::acquire::LUTParameters::gammaMode mvIMPACT::acquire::LUTgmLinearStart. | |
PropertyI | inputValues |
An integer property to define the input values for sampling points for interpolated LUT transformations. | |
PropertyI | outputValues |
An integer property to define the output values for sampling points for interpolated LUT transformations. | |
PropertyI | valueCount |
An integer property to define the number of sampling points for interpolated LUT transformations. | |
Protected Attributes | |
HOBJ | m_hRoot |
Friends | |
class | ImageProcessing |
Properties for configuring settings belonging to a certain LUT (Look Up Table) to be applied to a captured image.
|
inlineinherited |
Returns a unique identifier for the component collection referenced by this object.
This handle will always reference an object of type mvIMPACT::acquire::ComponentList.
|
inlineinherited |
Restores the default for every component of this collection.
Calling this function will restore the default value for every component belonging to this collection.
|
friend |
PropertyI directValues |
An integer property which can be used to directly define a LUT.
This property will provide a complete LUT thus e.g. in a LUT mapping to a 10 bit output this property will store 2^10 (1024) values that can be accessed and modified by the user.
PropertyF gamma |
A float property which can be used to set the gamma value.
Gamma correction is explained e.g. in this Wikipedia article: http://en.wikipedia.org/wiki/Gamma_correction.
The gamma value will be used to calculate the corresponding input -> output transformation LUT.
The following formula will be used:
PropertyF gammaAlpha |
A float property which can be used to set the gammaAlpha value.
Refer to mvIMPACT::acquire::LUTParameters::gamma to see how this parameter affects the resulting LUT data.
PropertyIBoolean gammaInverter |
An enumerated integer property defining whether the calculated gamma correction function shall be inverted or not.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TBoolean.
PropertyILUTGammaMode gammaMode |
An enumerated integer property which can be used to configure the LUT(Look Up Table) gamma mode.
Valid values for this property are defined by the enumeration mvIMPACT::acquire::TLUTGammaMode.
PropertyI gammaStartThreshold |
An integer property which can be used to define a start threshold above which the gamma correction formula shall be used in mvIMPACT::acquire::LUTParameters::gammaMode mvIMPACT::acquire::LUTgmLinearStart.
Values below that threshold will be calculated using linear interpolation.
PropertyI inputValues |
An integer property to define the input values for sampling points for interpolated LUT transformations.
The number of values stored by this property can be changed by writing to the property mvIMPACT::acquire::LUTParameters::valueCount. The documentation of this property also provides some example values and resulting transfer characteristics.
|
protectedinherited |
PropertyI outputValues |
An integer property to define the output values for sampling points for interpolated LUT transformations.
The number of values stored by this property can be changed by writing to the property mvIMPACT::acquire::LUTParameters::valueCount. The documentation of this property also provides some example values and resulting transfer characteristics.
PropertyI valueCount |
An integer property to define the number of sampling points for interpolated LUT transformations.
At least 2 sampling points are needed, the max. number of sampling points is defined by the bit depth of the input image, thus a 8 bit input image can have no more than 2^8 (256) sampling points. if the max. number of sampling points is used, the behaviour is the same a when working with mvIMPACT::acquire::ImageProcessing::LUTMode set to mvIMPACT::acquire::LUTmDirect.
EXAMPLE
Assuming 4 sampling points in mvIMPACT::acquire::LUTimThreshold mode for an 8 to 8 bit transformation where the following values are used:
index | input value | output value |
0 | 0 | 64 |
1 | 128 | 255 |
2 | 192 | 0 |
3 | 255 | 0 |
This will result in the following transfer function characteristic:
The following C++ code would be needed to achieve this behaviour for mono video sources:
Assuming 3 sampling points in mvIMPACT::acquire::LUTimLinear mode for an 8 to 8 bit transformation where the following values are used:
index | input value | output value |
0 | 0 | 64 |
1 | 128 | 255 |
2 | 255 | 0 |
This will result in the following transfer function characteristic:
Assuming 4 sampling points in mvIMPACT::acquire::LUTimCubic mode for an 8 to 8 bit transformation where the following values are used:
index | input value | output value |
0 | 0 | 0 |
1 | 128 | 255 |
2 | 192 | 192 |
3 | 255 | 0 |
This will result in the following transfer function characteristic: