Convolve TOP Normalize Coefficients

Hi TD Community,

I’m wondering if there is a way to understand how normalization, inside Convolve TOP, works.
I tried to interpret it like a “normalization matrix” so something like this:

mat3 test = mat3( x1, x2, x3, y1, y2, y3, z1, z2, z3);

where mat3 test is the matrix with the coefficients.
The normalization matrix will be:

[code]float c1 = x1 + y1 + z1;
float c2 = x2 + y2 + z2;
float c3 = x3 + y3 + z3;

mat3 normMat = mat3( test[x1] / c1, test[x2] / c2, test[x3] / c3,
test[y1] / c1, test[y2] / c2, test[y3] / c3,
test[z1] / c1, test[z2] / c2, test[z3] / c3);[/code]

But it don’t give me the same results of Convolve TOP Normalization and also turns out to be brighter.
So i suppose that Convolve TOP Normalization Coefficients is something else, someone could point me it in some way?

Hi there,

I think it gets normalized by length of all the elements in the matrix combined.
so:

float total = x1+x2+x3+y1+y2+y3+z1+z2+z3;
mat3 normMat = test / total;

Cheers,
tim

Thanks Tim!

This solution gives me the closer result that i was looking for!

Yep, that’s correct. I’ll update the help to say this more clearly