Zivid C++ API 2.13.1+18e79e79-1
Zivid::Experimental::PixelMapping Class Reference

Pixel mapping from subsampled to full resolution. More...

#include <Zivid/Experimental/PixelMapping.h>

Public Member Functions

 PixelMapping ()
 
 PixelMapping (const int rowStride, const int colStride, const float rowOffset, const float colOffset)
 
int rowStride () const
 Row stride.
 
int colStride () const
 Col stride.
 
float rowOffset () const
 Offset in y, or row.
 
float colOffset () const
 Offset in x, or column.
 
ZIVID_CORE_EXPORT std::string toString () const
 Get string representation.
 
ZIVID_CORE_EXPORT bool operator== (const PixelMapping &rhs) const
 Check for equality.
 
ZIVID_CORE_EXPORT bool operator!= (const PixelMapping &rhs) const
 Check for inequality.
 

Detailed Description

Pixel mapping from subsampled to full resolution.

Required when mapping an index in a subsampled point cloud to e.g. a full resolution 2D image.

Constructor & Destructor Documentation

◆ PixelMapping() [1/2]

Zivid::Experimental::PixelMapping::PixelMapping ( )
inline

◆ PixelMapping() [2/2]

Zivid::Experimental::PixelMapping::PixelMapping ( const int rowStride,
const int colStride,
const float rowOffset,
const float colOffset )
inline

Member Function Documentation

◆ colOffset()

float Zivid::Experimental::PixelMapping::colOffset ( ) const
inline

Offset in x, or column.

Initialize the column counter to this value.

◆ colStride()

int Zivid::Experimental::PixelMapping::colStride ( ) const
inline

Col stride.

Use it as the increment in a loop when looping through full resolution along columns.

◆ operator!=()

ZIVID_CORE_EXPORT bool Zivid::Experimental::PixelMapping::operator!= ( const PixelMapping & rhs) const

Check for inequality.

◆ operator==()

ZIVID_CORE_EXPORT bool Zivid::Experimental::PixelMapping::operator== ( const PixelMapping & rhs) const

Check for equality.

◆ rowOffset()

float Zivid::Experimental::PixelMapping::rowOffset ( ) const
inline

Offset in y, or row.

Initialize the row counter to this value.

◆ rowStride()

int Zivid::Experimental::PixelMapping::rowStride ( ) const
inline

Row stride.

Use it as the increment in a loop when looping through full resolution along rows.

◆ toString()

ZIVID_CORE_EXPORT std::string Zivid::Experimental::PixelMapping::toString ( ) const

Get string representation.


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