Class for calculating "evenly spaced" integer indices for data sequence. More...
#include <IntegralImage.h>
Public Member Functions | |
int | end () const |
For testing have we reached the end. More... | |
int | get () const |
Get the index value. More... | |
int | get_next_step () const |
How much the index will be increased with the next next() More... | |
IntIndex (int _res, int _steps) | |
Create IntIndex for indexing _res elements in predefined amount of _steps . More... | |
int | next () |
Take the next integer index step. More... | |
int | operator= (int v) |
Set the integer index to the "grid" value nearest to v . More... | |
Protected Member Functions | |
void | update_next_step () |
Protected Attributes | |
int | estep |
int | index |
int | next_step |
int | res |
int | step |
int | step_remainder |
int | steps |
Class for calculating "evenly spaced" integer indices for data sequence.
If we have a data sequence we want to step through in certain amount of steps, IntIndex can be used for iterating through the steps using fast integer implementation. This class is related to stride iterators.
Definition at line 55 of file IntegralImage.h.
alvar::IntIndex::IntIndex | ( | int | _res, |
int | _steps | ||
) |
Create IntIndex for indexing _res elements in predefined amount of _steps .
_res | The number of elements in the data sequence we want to index. |
_steps | The number of steps to use to cover the _res elements (_steps < _res) |
Definition at line 37 of file IntegralImage.cpp.
int alvar::IntIndex::end | ( | ) | const |
For testing have we reached the end.
Definition at line 62 of file IntegralImage.cpp.
int alvar::IntIndex::get | ( | ) | const |
Get the index value.
Definition at line 56 of file IntegralImage.cpp.
int alvar::IntIndex::get_next_step | ( | ) | const |
How much the index will be increased with the next next()
Definition at line 59 of file IntegralImage.cpp.
int alvar::IntIndex::next | ( | ) |
Take the next integer index step.
Definition at line 51 of file IntegralImage.cpp.
int alvar::IntIndex::operator= | ( | int | v | ) |
Set the integer index to the "grid" value nearest to v .
Definition at line 42 of file IntegralImage.cpp.
|
protected |
Definition at line 28 of file IntegralImage.cpp.
|
protected |
Definition at line 60 of file IntegralImage.h.
|
protected |
Definition at line 57 of file IntegralImage.h.
|
protected |
Definition at line 61 of file IntegralImage.h.
|
protected |
Definition at line 62 of file IntegralImage.h.
|
protected |
Definition at line 58 of file IntegralImage.h.
|
protected |
Definition at line 59 of file IntegralImage.h.
|
protected |
Definition at line 63 of file IntegralImage.h.