Generic Image Library: for_each_pixel

###  | #  |

Functions
for_each_pixel
Image View » Algorithms and Utility Functions » STL-like Algorithms

std::for_each for image views More...

## Functions
template<typename View, typename F>
F | for_each_pixel (View const &view, F fun)

## Detailed Description

std::for_each for image views

std::for_each for any image views

For contiguous images (i.e. images that have no alignment gap at the end of each row) it is more efficient to use the underlying pixel iterator that does not check for the end of rows. For non-contiguous images for_each_pixel resolves to for_each of each row using the underlying pixel iterator, which is still faster