Iterates in a row major fashion over the image and grants read and write access to the pixels.
More...
#include <ImageIterator.h>
|
using | Container = std::vector<unsigned char> |
| Container type storing the pixel values.
|
|
Iterates in a row major fashion over the image and grants read and write access to the pixels.
Potential width padding will be skipped.
◆ ImageIterator()
Constructor.
- Parameters
-
[in] | image | to iterate over. |
◆ getIndex()
int optris::ImageIterator::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::ImageIterator::getX |
( |
| ) |
const |
|
inlinenoexcept |
Returns the x-coordinate of the current pixel.
- Returns
- x-coordinate of the current pixel.
◆ getY()
int optris::ImageIterator::getY |
( |
| ) |
const |
|
inlinenoexcept |
Returns the y-coordinate of the current pixel.
- Returns
- y-coordinate of the current pixel.
◆ hasNext()
bool optris::ImageIterator::hasNext |
( |
| ) |
const |
|
inlinenoexcept |
Returns whether there is a next pixel.
- Returns
- true if there is a next pixel. False otherwise.
◆ setPixel()
Sets the current pixel.
- Parameters
-
The documentation for this class was generated from the following file: