IDS peak IPL  v1.9.2
peak::ipl::Histogram Class Referencefinal

Stores the histogram values. More...

#include <peak_ipl/algorithm/peak_ipl_histogram.hpp>

Classes

struct  HistogramChannel
 Stores the values of the histogram. More...
 

Public Member Functions

 Histogram ()=delete
 
 Histogram (const Image &image)
 Constructor. More...
 
 ~Histogram ()
 Destructor for the Histogram instance. More...
 
 Histogram (const Histogram &other)
 Copy Constructor for a new Histogram instance. More...
 
Histogram & operator= (const Histogram &other)
 Copy assigment for Histogram instance. More...
 
 Histogram (Histogram &&other) noexcept
 Move constructor for Histogram instance. More...
 
Histogram & operator= (Histogram &&other) noexcept
 Move assignment for Histogram instance. More...
 

Public Attributes

 PEAK_IPL_MAYBE_UNUSED = peak::ipl::PixelFormat PixelFormat() const
 

Detailed Description

Stores the histogram values.

Constructor & Destructor Documentation

◆ Histogram() [1/4]

peak::ipl::Histogram::Histogram ( )
delete

◆ Histogram() [2/4]

peak::ipl::Histogram::Histogram ( const Image &  image)
inlineexplicit

Constructor.

Parameters
[in]imageImage to process.
Exceptions
ImageFormatNotSupportedExceptionimage has a packed pixel format
Since
1.0
1.2 Will throw ImageFormatNotSupportedException if image has a packed pixel format

◆ ~Histogram()

peak::ipl::Histogram::~Histogram ( )
inline

Destructor for the Histogram instance.

Destroys a Histogram instance.

Since
1.0

◆ Histogram() [3/4]

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

Copy Constructor for a new Histogram instance.

Creates a new Histogram 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.0 Deleted
1.8 Implemented as shallow copy

◆ Histogram() [4/4]

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

Move constructor for Histogram instance.

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

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

Member Function Documentation

◆ operator=() [1/2]

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

Copy assigment for Histogram 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.0 Deleted
1.8 Implemented as shallow copy

◆ operator=() [2/2]

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

Move assignment for Histogram instance.

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

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

Member Data Documentation

◆ PEAK_IPL_MAYBE_UNUSED

peak::ipl::Histogram::PEAK_IPL_MAYBE_UNUSED = peak::ipl::PixelFormat PixelFormat() const

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