IDS peak IPL  v1.10.0
peak::ipl::PixelLine Class Reference

Represents the values of a horizontal or vertical line of pixels in an image. More...

#include <peak_ipl/types/peak_ipl_pixel_line.hpp>

Inheritance diagram for peak::ipl::PixelLine:
peak::ipl::PixelColumn peak::ipl::PixelRow

Classes

struct  Channel
 Represents the values of the pixel line. More...
 

Public Member Functions

 PixelLine ()=delete
 
 PixelLine (const Image &image, peak::ipl::Orientation orientation, size_t offset)
 Constructor. More...
 
virtual ~PixelLine ()
 Destructor for the PixelLine instance. More...
 
 PixelLine (const PixelLine &other)
 Copy Constructor for a new PixelLine instance. More...
 
PixelLine & operator= (const PixelLine &other)
 Copy assigment for PixelLine instance. More...
 
 PixelLine (PixelLine &&other) noexcept
 Move constructor for PixelLine instance. More...
 
PixelLine & operator= (PixelLine &&other) noexcept
 Move assignment for PixelLine instance. More...
 

Public Attributes

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

Detailed Description

Represents the values of a horizontal or vertical line of pixels in an image.

Constructor & Destructor Documentation

◆ PixelLine() [1/4]

peak::ipl::PixelLine::PixelLine ( )
delete

◆ PixelLine() [2/4]

peak::ipl::PixelLine::PixelLine ( const Image &  image,
peak::ipl::Orientation  orientation,
size_t  offset 
)
inlineexplicit

Constructor.

Parameters
[in]imageThe image to process.
[in]orientationThe orientation of the pixel line.
[in]offsetY offset if orientation = peak::ipl::Orientation::Horizontal; X offset if orientation = peak::ipl::Orientation::Vertical
Exceptions
ImageFormatNotSupportedExceptionimage has a packed pixel format
Since
1.0
1.2 Will throw ImageFormatNotSupportedException if image has a packed pixel format

◆ ~PixelLine()

peak::ipl::PixelLine::~PixelLine ( )
inlinevirtual

Destructor for the PixelLine instance.

Destroys a PixelLine instance.

Since
1.0

◆ PixelLine() [3/4]

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

Copy Constructor for a new PixelLine instance.

Creates a new PixelLine 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

◆ PixelLine() [4/4]

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

Move constructor for PixelLine 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]

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

Copy assigment for PixelLine 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]

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

Move assignment for PixelLine 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::PixelLine::PEAK_IPL_MAYBE_UNUSED = peak::ipl::PixelFormatName PixelFormatName() const

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