![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
Generic Image Library: Performance overloads of STL algorithmsBoost , ,
Function Documentation
std::equal(I1,I1,I2) with I1 and I2 being a iterator_from_2d Invoked when one calls std::equal(I1,I1,I2) with I1 and I2 being a iterator_from_2d (which is a 1D iterator over the pixels in an image). Attempts to demote the source and destination iterators to simpler/faster types if the corresponding range is contiguous. 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. If the underlying pixel iterator happens to be a fundamental planar/interleaved pointer, the call may further resolve to memcmp. Otherwise it resolves to copying each row using the underlying pixel iterator
std::fill(I,I,V) with I being a iterator_from_2d Invoked when one calls std::fill(I,I,V) with I being a iterator_from_2d (which is a 1D iterator over the pixels in an image). 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 fill resolves to fill of each row using the underlying pixel iterator, which is still faster
Generated on Sat May 2 13:50:16 2009 for Generic Image Library by ![]() Статья Generic Image Library: Performance overloads of STL algorithms раздела может быть полезна для разработчиков на c++ и boost. Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта. :: Главная :: ::
| ©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
| |