Adobe Systems, Inc.

for_each_pixel
[GIL Algorithms]

std::for_each for image views More...

Functions

template<typename V, typename F>
ADOBE_GIL_NAMESPACE_BEGIN F for_each_pixel (const V &img, F fun)
template<typename VIEW, typename F>
for_each_pixel_position (const VIEW &img, F fun)

Detailed Description

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

Function Documentation

template<typename V, typename F>
ADOBE_GIL_NAMESPACE_BEGIN F for_each_pixel const V &  img,
fun
 

std::for_each for image views

Definition at line 391 of file gil/core/algorithm.hpp.

template<typename VIEW, typename F>
F for_each_pixel_position const VIEW &  img,
fun
 

like for_each_pixel, but passes to the function object pixel locators instead of pixel references

Definition at line 404 of file gil/core/algorithm.hpp.

Copyright © 2006 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google