Thermal Camera SDK 10.0.1
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
optris::ConstImageIterator Class Reference

Iterates in a row major fashion over the image and grants read access to the pixels. More...

#include <ImageIterator.h>

Collaboration diagram for optris::ConstImageIterator:
Collaboration graph

Public Types

using Container = std::vector<unsigned char>
 Container type storing the pixel values.
 

Public Member Functions

OTC_SDK_API ConstImageIterator (const Image &image) noexcept
 Constructor.
 
bool hasNext () const noexcept
 Returns whether there is a next pixel.
 
OTC_SDK_API void next ()
 Moves to the next pixel.
 
OTC_SDK_API Pixel getPixel () const noexcept
 Returns the current pixel.
 
int getIndex () const noexcept
 Returns the current pixel index.
 
int getX () const noexcept
 Returns the x-coordinate of the current pixel.
 
int getY () const noexcept
 Returns the y-coordinate of the current pixel.
 

Detailed Description

Iterates in a row major fashion over the image and grants read access to the pixels.

Potential width padding will be skipped.

Constructor & Destructor Documentation

◆ ConstImageIterator()

OTC_SDK_API optris::ConstImageIterator::ConstImageIterator ( const Image & image)
explicitnoexcept

Constructor.

Parameters
[in]imageto iterate over.

Member Function Documentation

◆ getIndex()

int optris::ConstImageIterator::getIndex ( ) const
inlinenoexcept

Returns the current pixel index.

Returns
index of the current pixel.

◆ getPixel()

OTC_SDK_API Pixel optris::ConstImageIterator::getPixel ( ) const
noexcept

Returns the current pixel.

Returns
current pixel.

◆ getX()

int optris::ConstImageIterator::getX ( ) const
inlinenoexcept

Returns the x-coordinate of the current pixel.

Returns
x-coordinate of the current pixel.

◆ getY()

int optris::ConstImageIterator::getY ( ) const
inlinenoexcept

Returns the y-coordinate of the current pixel.

Returns
y-coordinate of the current pixel.

◆ hasNext()

bool optris::ConstImageIterator::hasNext ( ) const
inlinenoexcept

Returns whether there is a next pixel.

Returns
true if there is a next pixel. False otherwise.

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