Applies gamma correction to the data.
More...
#include <peak_ipl/algorithm/peak_ipl_gamma_corrector.hpp>
Applies gamma correction to the data.
◆ GammaCorrector() [1/3]
| peak::ipl::GammaCorrector::GammaCorrector |
( |
| ) |
|
|
inline |
◆ ~GammaCorrector()
| peak::ipl::GammaCorrector::~GammaCorrector |
( |
| ) |
|
|
inline |
◆ 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] | other | The other instance to acquire a reference for. |
- Since
- 1.2.2 Deleted
-
1.8 Implemented as shallow copy
◆ GammaCorrector() [3/3]
Move constructor for GammaCorrector instance.
Moves the instance from other to this. Afterwards other is invalid.
- Parameters
-
| [in] | other | The other instance to move. |
- Since
- 1.2.2
◆ 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] | pixelFormatName | The pixel format of interest. |
- Since
- 1.2.2
◆ operator=() [1/2]
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] | other | The other instance to acquire a reference for. |
- Since
- 1.2.2 Deleted
-
1.8 Implemented as shallow copy
◆ operator=() [2/2]
Move assignment for GammaCorrector instance.
Moves the instance from other to this. Afterwards other is invalid.
- Parameters
-
| [in] | other | The other instance to move. |
- Since
- 1.2.2
◆ Process()
| Image peak::ipl::GammaCorrector::Process |
( |
const Image & |
inputImage | ) |
const |
|
inline |
Corrects the gammas of the given image.
- Parameters
-
| [in] | inputImage | Image to process. |
- Returns
- A new created image containing the gamma-corrected pixels.
- Exceptions
-
- 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] | image | Image to process. |
- Exceptions
-
- Since
- 1.2.2
◆ SetGammaCorrectionValue()
| void peak::ipl::GammaCorrector::SetGammaCorrectionValue |
( |
float |
gammaValue | ) |
|
|
inline |
Sets the values of the gamma correction.
- Parameters
-
| [in] | gammaValue | The value of the gamma correction. |
- Exceptions
-
| InvalidArgument | gammaValue isn't supported. |
- Since
- 1.2.2
The documentation for this class was generated from the following file: