oevislib_net  0.14.3.0
Loading...
Searching...
No Matches

Pixel LookUpTable. More...

Inheritance diagram for oevislib_net.PixelLUT:

Public Member Functions

 PixelLUT ()
 Constructs an empty PixelLUT object.
 PixelLUT (int inRows, PixelType inInputType, PixelType inOutputType)
 Constructs a PixelLUT object.
 PixelLUT (int inRows, PixelType inInputType, PixelType inOutputType, float[] inData, bool inDeepCopy)
 Constructs a PixelLUT object from existing data.
Size GetSize ()
 Returns the size of the LUT.
int GetWidth ()
 Returns the width of the LUT.
int GetHeight ()
 Returns the height of the LUT.
int GetArea ()
 Returns the area of the LUT.
PixelType GetInputType ()
 Returns the input type (the images' pixel type when the LUT is applied to them).
PixelType GetOutputType ()
 Returns the output type when the LUT is applied.
IntPtr GetData ()
 Returns a pointer to the internal LUT data.
bool IsEmpty ()
 Checks whether the LUT is empty.
ByteBuffer Serialize ()
 Serialize the PixelLUT object using flatbuffers.
bool Equals (PixelLUT other)
override bool Equals (object obj)
override int GetHashCode ()
override object Clone ()
override void Dispose ()

Static Public Member Functions

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.

Detailed Description

Pixel LookUpTable.

Constructor & Destructor Documentation

◆ PixelLUT() [1/3]

oevislib_net.PixelLUT.PixelLUT ( )
inline

Constructs an empty PixelLUT object.

◆ PixelLUT() [2/3]

oevislib_net.PixelLUT.PixelLUT ( int inRows,
PixelType inInputType,
PixelType inOutputType )
inline

Constructs a PixelLUT object.

Parameters
inRowsNumber of rows. Range: [1, +inf).
inInputTypeInput pixel type (defines the number of columns).
inOutputTypeOutput 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
inRowsNumber of rows. Range: [1, +inf).
inInputTypeInput pixel type (defines the number of columns).
inOutputTypeOutput pixel type.
inDataPointer to existing data.
inDeepCopyWhether to perform a deep copy or not.

Member Function Documentation

◆ Deserialize()

PixelLUT oevislib_net.PixelLUT.Deserialize ( ByteBuffer inBuffer)
inlinestatic

De-serialize an PixelLUT buffer.

Parameters
inBufferBuffer 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
inLUTFunctionFunction to create specific LUT.
inDataData passed as the second parameter to inLUTFunction.
inInputTypeInput pixel type.
inOutputTypeOutput 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
inGammaGamma coefficient.
inInputTypeInput pixel type.
inOutputTypeOutput pixel type.
inInputMinValueMinimum value considered for the input image. If Null, the lowest value based on the input image type is used.
inInputMaxValueMaximum value considered for the input image. If Null, the highest value based on the input image type is used.
inOutputMinValueMinimum value considered for the output image. If Null, the lowest value based on the output image type is used.
inOutputMaxValueMaximum 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
inScaleScaling factor.
inOffsetOffset factor.
inNormalizeZeroWhether the output range should be rescaled to start from 0.
inInputTypeInput pixel type.
inOutputTypeOutput pixel type.
Returns
Output LUT.

◆ MakePowerLUT()

PixelLUT oevislib_net.PixelLUT.MakePowerLUT ( float inExponent,
PixelType inInputType,
PixelType inOutputType )
inlinestatic

Creates LUT for power operation.

Parameters
inExponentExponent value.
inInputTypeInput pixel type.
inOutputTypeOutput pixel type.
Returns
Output LUT.

◆ Serialize()

ByteBuffer oevislib_net.PixelLUT.Serialize ( )
inline

Serialize the PixelLUT object using flatbuffers.

Returns
Buffer where the object is stored.