IDS peak IPL  v1.10.0
peak::ipl::GammaCorrector Class Referencefinal

Applies gamma correction to the data. More...

#include <peak_ipl/algorithm/peak_ipl_gamma_corrector.hpp>

Public Member Functions

 GammaCorrector ()
 Constructor for a new GammaCorrector instance. More...
 
 ~GammaCorrector ()
 Destructor for the GammaCorrector instance. More...
 
 GammaCorrector (const GammaCorrector &other)
 Copy Constructor for a new GammaCorrector instance. More...
 
GammaCorrector & operator= (const GammaCorrector &other)
 Copy assigment for GammaCorrector instance. More...
 
 GammaCorrector (GammaCorrector &&other) noexcept
 Move constructor for GammaCorrector instance. More...
 
GammaCorrector & operator= (GammaCorrector &&other) noexcept
 Move assignment for GammaCorrector instance. More...
 
void SetGammaCorrectionValue (float gammaValue)
 Sets the values of the gamma correction. More...
 
void ProcessInPlace (Image &image) const
 Corrects the gammas of the given image in place that is, it will change the input image. More...
 

Public Attributes

 PEAK_IPL_MAYBE_UNUSED = float GammaCorrectionValue() const
 

Detailed Description

Applies gamma correction to the data.

Constructor & Destructor Documentation

◆ GammaCorrector() [1/3]

peak::ipl::GammaCorrector::GammaCorrector ( )
inline

Constructor for a new GammaCorrector instance.

Creates a new GammaCorrector instance.

Since
1.2.2

◆ ~GammaCorrector()

peak::ipl::GammaCorrector::~GammaCorrector ( )
inline

Destructor for the GammaCorrector instance.

Destroys a GammaCorrector instance.

Since
1.2.2

◆ GammaCorrector() [2/3]

peak::ipl::GammaCorrector::GammaCorrector ( const GammaCorrector &  other)
inline

Copy Constructor for a new GammaCorrector instance.

Creates a new GammaCorrector instance.

Note
This only creates a shallow copy. See Shallow copy (since 1.8) for a detailed explanation.
Parameters
[in]otherThe other instance to acquire a reference for.
Since
1.2.2 Deleted
1.8 Implemented as shallow copy

◆ GammaCorrector() [3/3]

peak::ipl::GammaCorrector::GammaCorrector ( GammaCorrector &&  other)
inlinenoexcept

Move constructor for GammaCorrector instance.

Moves the instance from other to this. Afterwards other is invalid.

Parameters
[in]otherThe other instance to move.
Since
1.2.2

Member Function Documentation

◆ operator=() [1/2]

GammaCorrector & peak::ipl::GammaCorrector::operator= ( const GammaCorrector &  other)
inline

Copy assigment for GammaCorrector instance.

Acquires a reference from other to this instance. If this instance already has a reference, it will be destroyed.

Note
See Shallow copy (since 1.8) for a detailed explanation.
Parameters
[in]otherThe other instance to acquire a reference for.
Since
1.2.2 Deleted
1.8 Implemented as shallow copy

◆ operator=() [2/2]

GammaCorrector & peak::ipl::GammaCorrector::operator= ( GammaCorrector &&  other)
inlinenoexcept

Move assignment for GammaCorrector instance.

Moves the instance from other to this. Afterwards other is invalid.

Parameters
[in]otherThe other instance to move.
Since
1.2.2

◆ ProcessInPlace()

void peak::ipl::GammaCorrector::ProcessInPlace ( Image &  image) const
inline

Corrects the gammas of the given image in place that is, it will change the input image.

Parameters
[in]imageImage to process.
Exceptions
ImageFormatNotSupportedExceptionimage has unsupported pixel format.
Since
1.2.2

◆ SetGammaCorrectionValue()

void peak::ipl::GammaCorrector::SetGammaCorrectionValue ( float  gammaValue)
inline

Sets the values of the gamma correction.

Parameters
[in]gammaValueThe value of the gamma correction.
Exceptions
InvalidArgumentgammaValue isn't supported.
Since
1.2.2

Member Data Documentation

◆ PEAK_IPL_MAYBE_UNUSED

peak::ipl::GammaCorrector::PEAK_IPL_MAYBE_UNUSED = float GammaCorrectionValue() const

The documentation for this class was generated from the following file: