[patch] 2-D correlation
Jules Bergmann
jules at codesourcery.com
Mon Dec 12 13:42:39 UTC 2005
This patch implements and tests 2-D correlation, with a simple C++
implementation.
Also in this patch:
- Add test_assert(), which is essentially the same as assert(), but
not disabled by defining NDEBUG. This way our tests still check
themselves even when the library is configured for performance.
- Move error_db into its own header (tests/error_db.hpp) for common
use (suggested by Don).
- Element-wise "ite", similar to the "?:" operator. For example:
out = ite(bool_view, a_view, b_view);
is equivalent to:
out(i) = bool_view(i) ? a_view(i) : b_view(i);
- Moved "reference" implementations of 1-D and 2-D correlation into
tests/ref_corr.hpp. This is similar to ref_matvec. Doing this will
make it easier to check the output of correlation in other contexts.
For example, if we had a correlation benchmark, it could check values
against the reference to make sure that optimizations were in fact correct.
-- Jules
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: conv2d.diff
URL: <http://sourcerytools.com/pipermail/vsipl++/attachments/20051212/7f31a998/attachment.ksh>
More information about the vsipl++
mailing list