Iterates in a row major fashion over the image and grants read access to the pixels.
More...
#include <ImageIterator.h>
|
using | Container = std::vector<unsigned char> |
| Container type storing the pixel values.
|
|
|
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.
|
|
Iterates in a row major fashion over the image and grants read access to the pixels.
Potential width padding will be skipped.
◆ ConstImageIterator()
OTC_SDK_API optris::ConstImageIterator::ConstImageIterator |
( |
const Image & | image | ) |
|
|
explicitnoexcept |
Constructor.
- Parameters
-
[in] | image | to iterate over. |
◆ getIndex()
int optris::ConstImageIterator::getIndex |
( |
| ) |
const |
|
inlinenoexcept |
Returns the current pixel index.
- Returns
- index of the current pixel.
◆ getPixel()
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: