IDS peak IPL  v1.4.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 ()
 
 ~GammaCorrector ()
 
 GammaCorrector (const GammaCorrector &other)=delete
 
GammaCorrector & operator= (const GammaCorrector &other)=delete
 
 GammaCorrector (GammaCorrector &&other)
 
GammaCorrector & operator= (GammaCorrector &&other)
 
void SetGammaCorrectionValue (float gammaValue)
 Sets the values of the gamma correction. More...
 
float GammaCorrectionValue () const
 Returns the value of the gamma correction. More...
 
float GammaCorrectionMin () const
 Returns the minimum value of the gamma correction. More...
 
float GammaCorrectionMax () const
 Returns the maximum value of the gamma correction. More...
 
bool IsPixelFormatSupported (PixelFormatName pixelFormatName) const
 Returns whether the gamma corrector supports the given pixel format. More...
 
void ProcessInPlace (Image &image) const
 Corrects the gammas of the given image in place i.e. it will change the input image. More...
 
Image Process (const Image &inputImage) const
 Corrects the gammas of the given image. More...
 

Detailed Description

Applies gamma correction to the data.

Constructor & Destructor Documentation

◆ GammaCorrector() [1/3]

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

◆ ~GammaCorrector()

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

◆ GammaCorrector() [2/3]

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

◆ GammaCorrector() [3/3]

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

Member Function Documentation

◆ GammaCorrectionMax()

float peak::ipl::GammaCorrector::GammaCorrectionMax ( ) const
inline

Returns the maximum value of the gamma correction.

Returns
gammaMax The maximum value of the gamma correction.
Since
1.2.2

◆ GammaCorrectionMin()

float peak::ipl::GammaCorrector::GammaCorrectionMin ( ) const
inline

Returns the minimum value of the gamma correction.

Returns
gammaMin The minimum value of the gamma correction.
Since
1.2.2

◆ GammaCorrectionValue()

float peak::ipl::GammaCorrector::GammaCorrectionValue ( ) const
inline

Returns the value of the gamma correction.

Returns
gammaValue The value of the gamma correction.
Since
1.2.2

◆ IsPixelFormatSupported()

bool peak::ipl::GammaCorrector::IsPixelFormatSupported ( PixelFormatName  pixelFormatName) const
inline

Returns whether the gamma corrector supports the given pixel format.

Returns
Flag whether the given pixel format is supported.
Parameters
[in]pixelFormatNameThe pixel format of interest.
Since
1.2.2

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Process()

Image peak::ipl::GammaCorrector::Process ( const Image &  inputImage) const
inline

Corrects the gammas of the given image.

Parameters
[in]inputImageImage to process.
Returns
A new created image containing the gamma corrected pixels.
Exceptions
ImageFormatNotSupportedExceptionimage has unsupported pixel format.
Since
1.2.2

◆ ProcessInPlace()

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

Corrects the gammas of the given image in place i.e. 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 is not supported.
Since
1.2.2

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