Gaussian Blur - extremely slow code execution

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Chalks
Forum Contributor
Posts: 447
Joined: Thu Jul 12, 2007 7:55 am
Location: Indiana

Gaussian Blur - extremely slow code execution

Post 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.
Post Reply