• Kazuki Matsuda's avatar
    Implimentation "cv::Mat::forEach" · fa292c3d
    Kazuki Matsuda authored
    I propose forEach method for cv::Mat and cv::Mat_.
    This is solution for the overhead of MatIterator_<_Tp>.
    
    I runs a test that micro opecode runs all over the pixel of cv::Mat_<cv::Point3_<uint8_t>>.
    And this implementation 40% faster than the simple pointer, 80% faster than iterator.
    With OpenMP, 70% faster than simple pointer, 95% faster than iterator (Core i7 920).
    
    Above all, code is more readable.
    
    My test code is here.
        https://gist.github.com/kazuki-ma/8285876
    
    Thanks.
    fa292c3d
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
index.rst Loading commit data...