21.05
|
Iterate over a portion of a Window. More...
#include <WindowIterator.h>
Public Member Functions | |
WindowIterator (const Window &w, const Coordinates &start, const Coordinates &end, L &&lambda_function) | |
Construct a WindowIterator object. More... | |
template<typename M > | |
void | iterate_3D (M &&on_new_row_size) |
Iterate over the lowest 3 dimensions of the window. More... | |
template<typename M > | |
void | iterate_2D (M &&on_new_row_size) |
Iterate over the lowest 2 dimensions of the window. More... | |
void | set_step (size_t dim, int step) |
Change the step used for the iteration. More... | |
const Coordinates & | end_position () const |
Returns the coordinates in absolute coordinates of the end position. More... | |
Iterate over a portion of a Window.
Definition at line 147 of file WindowIterator.h.
|
inline |
Construct a WindowIterator object.
[in] | w | Window to use for the iteration |
[in] | start | Where to start iterating from (In Window coordinates) |
[in] | end | Where to stop iterating (In Window coordinates). |
[in] | lambda_function | Lambda function to call for every iteration between start and end. (It will be called last for end - 1) |
Definition at line 157 of file WindowIterator.h.
|
inline |
Returns the coordinates in absolute coordinates of the end position.
Definition at line 210 of file WindowIterator.h.
|
inline |
Iterate over the lowest 2 dimensions of the window.
[in] | on_new_row_size | Callback to be called before lambda_function every time the width of the row processed changes. |
Definition at line 189 of file WindowIterator.h.
References Dimensions< T >::x(), and Dimensions< T >::y().
Referenced by WindowIterator< L >::iterate_3D().
|
inline |
Iterate over the lowest 3 dimensions of the window.
[in] | on_new_row_size | Callback to be called before lambda_function every time the width of the row processed changes. |
Definition at line 169 of file WindowIterator.h.
References ARM_COMPUTE_PRINTF, Window::Dimension::end(), WindowIterator< L >::iterate_2D(), Window::Dimension::start(), Window::Dimension::step(), Window::x(), Window::y(), Dimensions< T >::z(), and Window::z().
|
inline |
Change the step used for the iteration.
[in] | dim | Dimension to change |
[in] | step | New step to use for the given dimension. |
Definition at line 201 of file WindowIterator.h.
References Window::set_dimension_step(), and arm_compute::cpu::step.