Ask for help on OpenCL programming: Moving Average of from many matrix

Discussion created by rolandman99 on Sep 26, 2010
Latest reply on Sep 27, 2010 by himanshu.gautam


I have a programming problem and want to solve using OpenCL. The problem is computing moving average from matrices

For example: I have 1000 matrices: A, B, C, D, ... (for example each matrix has size 4x4 or bigger)

I want to compute the moving average from these 1000 matrix (for example take Window size=5)

The result I want is

result[0] = (A+B+C+D+E)/5

result[1] = (B+C+D+E+F)/5

...and so on.

Is this kind of problem can be solved using OpenCL?


Thank you very much for help