Pixel LookUpTable.
More...
|
|
static bool | operator== (PixelLUT inPixelLUT1, PixelLUT inPixelLUT2) |
|
static bool | operator!= (PixelLUT inPixelLUT1, PixelLUT inPixelLUT2) |
| static PixelLUT | Deserialize (ByteBuffer inBuffer) |
| | De-serialize an PixelLUT buffer.
|
| static PixelLUT | MakePowerLUT (float inExponent, PixelType inInputType, PixelType inOutputType) |
| | Creates LUT for power operation.
|
| static PixelLUT | MakeLogarithmLUT (float inScale, float inOffset, bool inNormalizeZero, PixelType inInputType, PixelType inOutputType) |
| | Creates LUT for logarithm operation on image pixels.
|
| static PixelLUT | MakeGammaCorrectionLUT (float inGamma, PixelType inInputType, PixelType inOutputType, Optional< float > inInputMinValue=null, Optional< float > inInputMaxValue=null, Optional< float > inOutputMinValue=null, Optional< float > inOutputMaxValue=null) |
| | Creates a Gamma Correction LUT object.
|
| static PixelLUT | MakeCustomLUT (LUTOperatorType inLUTFunction, IntPtr inData, PixelType inInputType, PixelType inOutputType) |
| | Creates a Custom LUT.
|
◆ PixelLUT() [1/3]
| oevislib_net.PixelLUT.PixelLUT |
( |
| ) |
|
|
inline |
◆ PixelLUT() [2/3]
| oevislib_net.PixelLUT.PixelLUT |
( |
int | inRows, |
|
|
PixelType | inInputType, |
|
|
PixelType | inOutputType ) |
|
inline |
Constructs a PixelLUT object.
- Parameters
-
| inRows | Number of rows. Range: [1, +inf). |
| inInputType | Input pixel type (defines the number of columns). |
| inOutputType | Output pixel type. |
◆ PixelLUT() [3/3]
| oevislib_net.PixelLUT.PixelLUT |
( |
int | inRows, |
|
|
PixelType | inInputType, |
|
|
PixelType | inOutputType, |
|
|
float[] | inData, |
|
|
bool | inDeepCopy ) |
|
inline |
Constructs a PixelLUT object from existing data.
- Parameters
-
| inRows | Number of rows. Range: [1, +inf). |
| inInputType | Input pixel type (defines the number of columns). |
| inOutputType | Output pixel type. |
| inData | Pointer to existing data. |
| inDeepCopy | Whether to perform a deep copy or not. |
◆ Deserialize()
De-serialize an PixelLUT buffer.
- Parameters
-
| inBuffer | Buffer containing the object. |
- Returns
- Deserialized object.
◆ GetArea()
| int oevislib_net.PixelLUT.GetArea |
( |
| ) |
|
|
inline |
Returns the area of the LUT.
- Returns
- Area.
◆ GetData()
| IntPtr oevislib_net.PixelLUT.GetData |
( |
| ) |
|
|
inline |
Returns a pointer to the internal LUT data.
- Returns
- Pointer to the internal data.
◆ GetHeight()
| int oevislib_net.PixelLUT.GetHeight |
( |
| ) |
|
|
inline |
Returns the height of the LUT.
- Returns
- Height.
◆ GetInputType()
| PixelType oevislib_net.PixelLUT.GetInputType |
( |
| ) |
|
|
inline |
Returns the input type (the images' pixel type when the LUT is applied to them).
It's related to the size of the LUT.
- Returns
- Input type.
◆ GetOutputType()
| PixelType oevislib_net.PixelLUT.GetOutputType |
( |
| ) |
|
|
inline |
Returns the output type when the LUT is applied.
It represents also the type of the LUT values.
- Returns
- Output type.
◆ GetSize()
| Size oevislib_net.PixelLUT.GetSize |
( |
| ) |
|
|
inline |
Returns the size of the LUT.
- Returns
- Size.
◆ GetWidth()
| int oevislib_net.PixelLUT.GetWidth |
( |
| ) |
|
|
inline |
Returns the width of the LUT.
- Returns
- Width.
◆ IsEmpty()
| bool oevislib_net.PixelLUT.IsEmpty |
( |
| ) |
|
|
inline |
Checks whether the LUT is empty.
- Returns
- true if the LUT is empty, false otherwise.
◆ MakeCustomLUT()
| PixelLUT oevislib_net.PixelLUT.MakeCustomLUT |
( |
LUTOperatorType | inLUTFunction, |
|
|
IntPtr | inData, |
|
|
PixelType | inInputType, |
|
|
PixelType | inOutputType ) |
|
inlinestatic |
Creates a Custom LUT.
- Parameters
-
| inLUTFunction | Function to create specific LUT. |
| inData | Data passed as the second parameter to inLUTFunction. |
| inInputType | Input pixel type. |
| inOutputType | Output pixel type. |
- Returns
- Output LUT.
◆ MakeGammaCorrectionLUT()
| PixelLUT oevislib_net.PixelLUT.MakeGammaCorrectionLUT |
( |
float | inGamma, |
|
|
PixelType | inInputType, |
|
|
PixelType | inOutputType, |
|
|
Optional< float > | inInputMinValue = null, |
|
|
Optional< float > | inInputMaxValue = null, |
|
|
Optional< float > | inOutputMinValue = null, |
|
|
Optional< float > | inOutputMaxValue = null ) |
|
inlinestatic |
Creates a Gamma Correction LUT object.
- Parameters
-
| inGamma | Gamma coefficient. |
| inInputType | Input pixel type. |
| inOutputType | Output pixel type. |
| inInputMinValue | Minimum value considered for the input image. If Null, the lowest value based on the input image type is used. |
| inInputMaxValue | Maximum value considered for the input image. If Null, the highest value based on the input image type is used. |
| inOutputMinValue | Minimum value considered for the output image. If Null, the lowest value based on the output image type is used. |
| inOutputMaxValue | Maximum value considered for the output image. If Null, the highest value based on the output image type is used. |
- Returns
- Output LUT.
◆ MakeLogarithmLUT()
| PixelLUT oevislib_net.PixelLUT.MakeLogarithmLUT |
( |
float | inScale, |
|
|
float | inOffset, |
|
|
bool | inNormalizeZero, |
|
|
PixelType | inInputType, |
|
|
PixelType | inOutputType ) |
|
inlinestatic |
Creates LUT for logarithm operation on image pixels.
- Parameters
-
| inScale | Scaling factor. |
| inOffset | Offset factor. |
| inNormalizeZero | Whether the output range should be rescaled to start from 0. |
| inInputType | Input pixel type. |
| inOutputType | Output pixel type. |
- Returns
- Output LUT.
◆ MakePowerLUT()
Creates LUT for power operation.
- Parameters
-
| inExponent | Exponent value. |
| inInputType | Input pixel type. |
| inOutputType | Output pixel type. |
- Returns
- Output LUT.
◆ Serialize()
Serialize the PixelLUT object using flatbuffers.
- Returns
- Buffer where the object is stored.