Page 1 of 1

Gaussian Blur - extremely slow code execution

Posted: Mon Apr 11, 2011 3:02 pm
by Chalks
I (for hard to explain reasons) am implementing a Gaussian Blur. These functions create the gaussian matrix. The rest of our code looks almost exactly like this. The major difference, however... is the inner two loops are 19x19 (or whatever is passed into the gaussian matrix thing), instead of 3x3. It's slowing things down far, far more than I expect. The reason we're using 19x19 is because (as I understand it) that's how you get a heavier blur. If I'm missing the concept on how blur works, please enlighten me.

Any ideas/tips?

Thanks.