SIMD processing, algorithm for 2x2 binning

slsmith0010_at_yahNOSPAMoo.com
Date: 01/28/05


Date: 27 Jan 2005 16:58:05 -0800


My application does some image processing in C++ (vs.net) using SIMD.
One part sums a bunch of images together and that is done with SIMD
intrinsics, but the other is a 2x2 binning process and I'm not sure how
to take advantage of SIMD to speed that process up.

So that's my question: If I have my image data in a 1D array (although
I know the row size) how can I take advantage of SIMD to do 2x2 spatial
binning?

Thanks in advance.