In reply to post ID 1733
I'm trying to wrap my brain around the convolution algorithms used to make gaussian blur, to see if there's a way to work out a halation blur. Thinking out loud here; bear with me...
Convolution is roughly this:
![http://img15.imageshack.us/img15/7460/convolutionfilter.gif [Image: http://img15.imageshack.us/img15/7460/convolutionfilter.gif]](http://img15.imageshack.us/img15/7460/convolutionfilter.gif)
Apparently blur works by taking the center pixel's color value and summing it with the adjacent pixels' values, weighted based on distance? Something like that.
Where standard blur has the same values at all times, e.g. (25%)(50%)(75%)(CENTER)(75%)(50%)(25%) we would want the values to be variable depending on the value of the center pixel. Thus if center pixel is 255 bright:
(25%)(50%)(75%)(255)(75%)(50%)(25%)
But if it's 128 bright then perhaps:
(9%)(19%)(38%)(128)(38%)(19%)(9%)
There's probably an optimal drop-off curve for any given brightness; determining that would take experimentation.
And rather than merely sum the adjacent pixels, we'd need to enlighten them realistically. That would also take experimentation.
Convolution is roughly this:
![http://img15.imageshack.us/img15/7460/convolutionfilter.gif [Image: http://img15.imageshack.us/img15/7460/convolutionfilter.gif]](http://img15.imageshack.us/img15/7460/convolutionfilter.gif)
Apparently blur works by taking the center pixel's color value and summing it with the adjacent pixels' values, weighted based on distance? Something like that.
Where standard blur has the same values at all times, e.g. (25%)(50%)(75%)(CENTER)(75%)(50%)(25%) we would want the values to be variable depending on the value of the center pixel. Thus if center pixel is 255 bright:
(25%)(50%)(75%)(255)(75%)(50%)(25%)
But if it's 128 bright then perhaps:
(9%)(19%)(38%)(128)(38%)(19%)(9%)
There's probably an optimal drop-off curve for any given brightness; determining that would take experimentation.
And rather than merely sum the adjacent pixels, we'd need to enlighten them realistically. That would also take experimentation.

Show profile
Link to this post![http://img9.imageshack.us/img9/9331/phossimgenvgng.jpg [Image: http://img9.imageshack.us/img9/9331/phossimgenvgng.jpg]](http://img9.imageshack.us/img9/9331/phossimgenvgng.jpg)
![http://img16.imageshack.us/img16/2264/phossimgenvff6.th.jpg [Image: http://img16.imageshack.us/img16/2264/phossimgenvff6.th.jpg]](http://img16.imageshack.us/img16/2264/phossimgenvff6.th.jpg)
![http://img144.imageshack.us/img144/832/710395finalfantasyiii00.th.png [Image: http://img144.imageshack.us/img144/832/710395finalfantasyiii00.th.png]](http://img144.imageshack.us/img144/832/710395finalfantasyiii00.th.png)
![http://img25.imageshack.us/img25/2496/rgbsf3.jpg [Image: http://img25.imageshack.us/img25/2496/rgbsf3.jpg]](http://img25.imageshack.us/img25/2496/rgbsf3.jpg)
![http://img13.imageshack.us/img13/2620/sf3xboxvgascanned101.th.jpg [Image: http://img13.imageshack.us/img13/2620/sf3xboxvgascanned101.th.jpg]](http://img13.imageshack.us/img13/2620/sf3xboxvgascanned101.th.jpg)
![http://img24.imageshack.us/img24/2507/rgbforgotten.jpg [Image: http://img24.imageshack.us/img24/2507/rgbforgotten.jpg]](http://img24.imageshack.us/img24/2507/rgbforgotten.jpg)
![http://img25.imageshack.us/img25/495/forgotteni.th.jpg [Image: http://img25.imageshack.us/img25/495/forgotteni.th.jpg]](http://img25.imageshack.us/img25/495/forgotteni.th.jpg)

![http://img30.imageshack.us/img30/5690/ffvitownphosvi.jpg [Image: http://img30.imageshack.us/img30/5690/ffvitownphosvi.jpg]](http://img30.imageshack.us/img30/5690/ffvitownphosvi.jpg)