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

Edge Enhancement for a given image. More...

#include <peak_ipl/algorithm/peak_ipl_edge_enhancement.hpp>

Public Member Functions

 EdgeEnhancement ()
 Constructor for a new EdgeEnhancement instance. More...
 
 ~EdgeEnhancement ()
 Destructor for the EdgeEnhancement instance. More...
 
 EdgeEnhancement (const EdgeEnhancement &other)
 Copy Constructor for a new EdgeEnhancement instance. More...
 
EdgeEnhancement & operator= (const EdgeEnhancement &other)
 Copy assigment for EdgeEnhancement instance. More...
 
 EdgeEnhancement (EdgeEnhancement &&other) noexcept
 Move constructor for EdgeEnhancement instance. More...
 
EdgeEnhancement & operator= (EdgeEnhancement &&other) noexcept
 Move assignment for EdgeEnhancement instance. More...
 
void ProcessInPlace (Image &image) const
 Process an image. More...
 
void SetFactor (std::uint32_t factor)
 Set the edge enhancement factor. More...
 

Public Attributes

 PEAK_IPL_MAYBE_UNUSED = inline Image Process(const Image& image) const
 

Detailed Description

Edge Enhancement for a given image.

This class uses a software filter that emphasizes the edges in the image. The enhancement factor is configurable.

Constructor & Destructor Documentation

◆ EdgeEnhancement() [1/3]

peak::ipl::EdgeEnhancement::EdgeEnhancement ( )
inline

Constructor for a new EdgeEnhancement instance.

Creates a new EdgeEnhancement instance.

Since
1.7

◆ ~EdgeEnhancement()

peak::ipl::EdgeEnhancement::~EdgeEnhancement ( )
inline

Destructor for the EdgeEnhancement instance.

Destroys an EdgeEnhancement instance.

Since
1.7

◆ EdgeEnhancement() [2/3]

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

Copy Constructor for a new EdgeEnhancement instance.

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

◆ EdgeEnhancement() [3/3]

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

Move constructor for EdgeEnhancement instance.

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

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

Member Function Documentation

◆ operator=() [1/2]

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

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

◆ operator=() [2/2]

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

Move assignment for EdgeEnhancement instance.

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

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

◆ ProcessInPlace()

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

Process an image.

To check if it is supported, call #EdgeEnhancement::IsPixelFormatSupported first This function causes a higher CPU load.

Parameters
[in]imageImage to process.
Exceptions
InvalidPixelFormatpixel format isn't supported.
ExceptionAn internal error has occurred.
Since
1.7

◆ SetFactor()

void peak::ipl::EdgeEnhancement::SetFactor ( std::uint32_t  factor)
inline

Set the edge enhancement factor.

Parameters
[in]factorThe factor to set.
Exceptions
ExceptionAn internal error has occurred.
Since
1.7

Member Data Documentation

◆ PEAK_IPL_MAYBE_UNUSED

peak::ipl::EdgeEnhancement::PEAK_IPL_MAYBE_UNUSED = inline Image Process(const Image& image) const

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