IDS peak IPL  v1.4.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 ()
 
 PixelLine (const PixelLine &other)=delete
 
PixelLine & operator= (const PixelLine &other)=delete
 
 PixelLine (PixelLine &&other)
 
PixelLine & operator= (PixelLine &&other)
 
peak::ipl::PixelFormatName PixelFormatName () const
 Returns the pixel format of the given pixel line. More...
 
peak::ipl::Orientation Orientation () const
 Returns the orientation of the given pixel line. More...
 
size_t Offset () const
 Returns the offset of the given pixel line. (Vertical: Left - Horizontal: Top). More...
 
std::vector< Channel > Channels () const
 Returns the number of the given pixel line's channels. More...
 

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 packed pixel format
Since
1.0
1.2 Will throw ImageFormatNotSupportedException if image has packed pixel format

◆ ~PixelLine()

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

◆ PixelLine() [3/4]

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

◆ PixelLine() [4/4]

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

Member Function Documentation

◆ Channels()

std::vector< PixelLine::Channel > peak::ipl::PixelLine::Channels ( ) const
inline

Returns the number of the given pixel line's channels.

Returns
Channels
Since
1.0
Exceptions
ExceptionAn internal error has occurred.

◆ Offset()

size_t peak::ipl::PixelLine::Offset ( ) const
inline

Returns the offset of the given pixel line. (Vertical: Left - Horizontal: Top).

Returns
Offset
Since
1.0
Exceptions
ExceptionAn internal error has occurred.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ Orientation()

peak::ipl::Orientation peak::ipl::PixelLine::Orientation ( ) const
inline

Returns the orientation of the given pixel line.

Returns
Orientation
Since
1.0
Exceptions
ExceptionAn internal error has occurred.

◆ PixelFormatName()

peak::ipl::PixelFormatName peak::ipl::PixelLine::PixelFormatName ( ) const
inline

Returns the pixel format of the given pixel line.

Returns
PixelFormatName
Since
1.0
Exceptions
ExceptionAn internal error has occurred.

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