#include <peak_ipl/algorithm/peak_ipl_binning.hpp>
|
| enum class | BinningMode : uint16_t {
Average = PEAK_IPL_BINNINGMODE_AVERAGE
,
Sum = PEAK_IPL_BINNINGMODE_SUM
} |
| | Mode parameter for the binning algorithm. More...
|
| |
◆ BinningMode
Mode parameter for the binning algorithm.
The enum holding the possible modi.
| Enumerator |
|---|
| Average | Average (mean) of pixels.
|
| Sum | Sum of pixels.
|
◆ Binning() [1/3]
| peak::ipl::Binning::Binning |
( |
| ) |
|
|
inline |
Constructor for a new Binning instance.
Creates a new Binning instance.
- Since
- 1.3.3
◆ ~Binning()
| peak::ipl::Binning::~Binning |
( |
| ) |
|
|
inline |
Destructor for the Binning instance.
Destroys a Binning instance.
- Since
- 1.3.3
◆ Binning() [2/3]
| peak::ipl::Binning::Binning |
( |
const Binning & | other | ) |
|
|
inline |
Copy Constructor for a new Binning instance.
Creates a new Binning 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.3.3 Deleted
-
1.8 Implemented as shallow copy
◆ Binning() [3/3]
| peak::ipl::Binning::Binning |
( |
Binning && | other | ) |
|
|
inlinenoexcept |
Move constructor for Binning instance.
Moves the instance from other to this. Afterwards other is invalid.
- Parameters
-
| [in] | other | The other instance to move. |
- Since
- 1.3.3
◆ BinningMax()
| uint8_t peak::ipl::Binning::BinningMax |
( |
| ) |
const |
|
inline |
Returns the maximum value for the binning.
- Returns
- The maximum value for the binning.
- Since
- 1.3.3
◆ BinningMin()
| uint8_t peak::ipl::Binning::BinningMin |
( |
| ) |
const |
|
inline |
Returns the minimum value for the binning.
- Returns
- The minimum value for the binning.
- Since
- 1.3.3
◆ BinningX()
| uint8_t peak::ipl::Binning::BinningX |
( |
| ) |
const |
|
inline |
Returns the value of the binning in horizontal direction.
- Returns
- The value of the binning in horizontal direction.
- Since
- 1.3.3
◆ BinningY()
| uint8_t peak::ipl::Binning::BinningY |
( |
| ) |
const |
|
inline |
Returns the value of the binning in vertical direction.
- Returns
- The value of the binning in vertical direction.
- Since
- 1.3.3
◆ ExpectedOutputSize()
Returns the size of a binned image given the input size and pixelformat.
- Parameters
-
| [in] | inputSize | The size of the input image. |
| [in] | pixelFormat | The pixelFormat of the input image. |
- Returns
- The size of a binned image
- Exceptions
-
| InvalidArgument | pixelFormat isn't supported. |
- Since
- 1.3.4
◆ IsPixelFormatSupported()
| bool peak::ipl::Binning::IsPixelFormatSupported |
( |
PixelFormatName | pixelFormatName | ) |
const |
|
inline |
Returns whether the binning supports the given pixel format.
- Returns
- Flag whether the given pixel format is supported.
- Parameters
-
| [in] | pixelFormatName | The pixel format of interest. |
- Since
- 1.3.3
◆ Mode()
Returns the value of the binning mode.
- Returns
- The value of the binning mode.
- Since
- 1.3.3
◆ operator=() [1/2]
Move assignment for Binning instance.
Moves the instance from other to this. Afterwards other is invalid.
- Parameters
-
| [in] | other | The other instance to move. |
- Since
- 1.3.3
◆ operator=() [2/2]
Copy assigment for Binning 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.3.3 Deleted
-
1.8 Implemented as shallow copy
◆ Process()
| Image peak::ipl::Binning::Process |
( |
const Image & | inputImage | ) |
const |
|
inline |
Applies the binning on the given image.
- Parameters
-
| [in] | inputImage | Image to process. |
- Returns
- A new created image containing the gamma-corrected pixels.
- Note
- Will not work with packed pixel formats. See Packed pixel format handling for the correct handling of this.
- Exceptions
-
- Since
- 1.3.3
◆ SetBinningX()
| void peak::ipl::Binning::SetBinningX |
( |
uint8_t | value | ) |
|
|
inline |
Sets the values of the binning in horizontal direction.
- Parameters
-
| [in] | value | The value of the binning in horizontal direction. |
- Exceptions
-
| InvalidArgument | value isn't supported. |
- Since
- 1.3.3
◆ SetBinningY()
| void peak::ipl::Binning::SetBinningY |
( |
uint8_t | value | ) |
|
|
inline |
Sets the values of the binning in vertical direction.
- Parameters
-
| [in] | value | The value of the binning in vertical direction. |
- Exceptions
-
| InvalidArgument | value isn't supported. |
- Since
- 1.3.3
◆ SetMode()
Sets the values of the binning mode.
- Parameters
-
| [in] | mode | The value of the binning mode. |
- Exceptions
-
| InvalidArgument | value isn't supported. |
- Since
- 1.3.3
The documentation for this class was generated from the following file: